Class FulltextSearchResponse.Document

java.lang.Object
ch.tocco.nice2.enterprisesearch.api.FulltextSearchResponse.Document
Enclosing interface:
FulltextSearchResponse

public static class FulltextSearchResponse.Document extends Object
A data transfer object for a result document (i.e. an entity).
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      An ID exists of <entity-type>:<primary-key>. A unique key over the whole index.
    • setId

      public void setId(String id)
      See Also:
    • getPk

      public String getPk()
      Primary key of the underlying entity (as string because any type may be a primary key).
    • setPk

      public void setPk(String pk)
      See Also:
    • getEntityType

      public String getEntityType()
      Entity type of the underlying entity.
    • setEntityType

      public void setEntityType(String entityType)
      See Also:
    • getDefaultDisplay

      public String getDefaultDisplay()
      Short display text of the entity.
    • setDefaultDisplay

      public void setDefaultDisplay(String defaultDisplay)
      See Also:
    • getVersion

      public Long getVersion()
      Version of the entity.
    • setVersion

      public void setVersion(Long version)
      See Also:
    • getHighlighting

      public Map<String,List<String>> getHighlighting()
    • setHighlighting

      public void setHighlighting(Map<String,List<String>> highlighting)
    • toString

      public String toString()
      Overrides:
      toString in class Object