Class SearchResultRow

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.cloudant.v1.model.SearchResultRow
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class SearchResultRow extends com.ibm.cloud.sdk.core.service.model.GenericModel
Schema for a row of the result of a query search operation.
  • Method Details

    • getDoc

      public Document getDoc()
      Gets the doc. Schema for a document.
      Returns:
      the doc
    • getFields

      public Map<String,Object> getFields()
      Gets the fields. Schema for the fields returned by a query search operation, a map of field name to value.
      Returns:
      the fields
    • getHighlights

      public Map<String,List<String>> getHighlights()
      Gets the highlights. Returns the context in which a search term was mentioned so that you can display more emphasized results to a user.
      Returns:
      the highlights
    • getId

      public String getId()
      Gets the id. Schema for a document ID.
      Returns:
      the id