public class SearchResultEntry
extends java.lang.Object
implements java.io.Serializable
SearchResult
. Each entry is linked with a single entity.
The isDirectResult
field is true if the searchTerm was found among local properties of the entity
The linkedEntityInfos
collection contains a list of linked entities which contain the searchTerm
The hitInfos
collection contains an information in which field the searchTerm was found (both for local fields and for linked entities)
and also the hitInfo contains a piece highlighted text which includes the search term
Constructor and Description |
---|
SearchResultEntry(EntityInfo entityInfo) |
SearchResultEntry(EntityInfo entityInfo,
java.lang.String instanceName) |
Modifier and Type | Method and Description |
---|---|
void |
addLinkedEntity(EntityInfo linkedEntityInfo) |
EntityInfo |
getEntityInfo() |
java.util.List<HitInfo> |
getHitInfos() |
java.lang.String |
getInstanceName() |
java.util.List<EntityInfo> |
getLinkedEntityInfos() |
boolean |
isDirectResult() |
void |
setDirectResult(boolean directResult) |
void |
setHitInfos(java.util.List<HitInfo> hitInfos) |
public SearchResultEntry(EntityInfo entityInfo)
public SearchResultEntry(EntityInfo entityInfo, java.lang.String instanceName)
public EntityInfo getEntityInfo()
public java.lang.String getInstanceName()
public java.util.List<EntityInfo> getLinkedEntityInfos()
public void addLinkedEntity(EntityInfo linkedEntityInfo)
public java.util.List<HitInfo> getHitInfos()
public void setHitInfos(java.util.List<HitInfo> hitInfos)
public boolean isDirectResult()
public void setDirectResult(boolean directResult)