Interface Document

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultDocument

public interface Document extends Serializable
This interface represents a search result document.
  • Method Details

    • getFieldNames

      Collection<String> getFieldNames()
      Returns the field names defined in this document.
      Returns:
      the field names defined in this document
    • getFieldValue

      Object getFieldValue(String fieldName)
      Returns the value or collection of values for a given field.
      Returns:
      the value or collection of values for a given field
    • getFields

      Map<String,Object> getFields()
      Returns the fields defined in this document.
      Returns:
      the fields defined in this document
    • getTags

      Set<String> getTags()
      Returns the tags defined in this document.
      Returns:
      the tags defined in this document