Class IndexResult


  • public class IndexResult
    extends Object
    Represents an individual document in an IndexResponse
    • Constructor Detail

      • IndexResult

        public IndexResult()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public String getId()
        The indexed document's id
        Returns:
        the document id
      • getErrors

        public List<String> getErrors()
        List of errors, if any, while indexing the document
        Returns:
        list of errors
      • setId

        public IndexResult setId​(String id)
        The indexed document's id
        Parameters:
        id - the document id
        Returns:
        this.
      • setErrors

        public IndexResult setErrors​(List<String> errors)
        List of errors, if any, while indexing the document
        Parameters:
        errors - list of errors
        Returns:
        this.