Class FulltextSearchResponse.Document
java.lang.Object
ch.tocco.nice2.enterprisesearch.api.FulltextSearchResponse.Document
- Enclosing interface:
FulltextSearchResponse
A data transfer object for a result document (i.e. an entity).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionShort display text of the entity.Entity type of the underlying entity.getId()An ID exists of<entity-type>:<primary-key>.getPk()Primary key of the underlying entity (as string because any type may be a primary key).Version of the entity.voidsetDefaultDisplay(String defaultDisplay) voidsetEntityType(String entityType) voidsetHighlighting(Map<String, List<String>> highlighting) voidvoidvoidsetVersion(Long version) toString()
-
Constructor Details
-
Document
public Document() -
Document
-
-
Method Details
-
getId
An ID exists of<entity-type>:<primary-key>. A unique key over the whole index. -
setId
- See Also:
-
getPk
Primary key of the underlying entity (as string because any type may be a primary key). -
setPk
- See Also:
-
getEntityType
Entity type of the underlying entity. -
setEntityType
- See Also:
-
getDefaultDisplay
Short display text of the entity. -
setDefaultDisplay
- See Also:
-
getVersion
Version of the entity. -
setVersion
- See Also:
-
getHighlighting
-
setHighlighting
-
toString
-