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
-
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.void
setDefaultDisplay
(String defaultDisplay) void
setEntityType
(String entityType) void
setHighlighting
(Map<String, List<String>> highlighting) void
void
void
setVersion
(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
-