Class TermVectorsResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.core.RefCounted

public class TermVectorsResponse extends ActionResponse implements org.elasticsearch.common.xcontent.ToXContentObject
  • Constructor Details

    • TermVectorsResponse

      public TermVectorsResponse(String index, String type, String id)
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getFields

      public org.apache.lucene.index.Fields getFields() throws IOException
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • setTookInMillis

      public void setTookInMillis(long tookInMillis)
    • getTook

      public org.elasticsearch.core.TimeValue getTook()
    • isExists

      public boolean isExists()
    • setExists

      public void setExists(boolean exists)
    • setFields

      public void setFields(org.apache.lucene.index.Fields termVectorsByField, Set<String> selectedFields, EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields) throws IOException
      Throws:
      IOException
    • setFields

      public void setFields(org.apache.lucene.index.Fields termVectorsByField, Set<String> selectedFields, EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields, TermVectorsFilter termVectorsFilter) throws IOException
      Throws:
      IOException
    • setTermVectorsField

      public void setTermVectorsField(BytesStreamOutput output)
    • setHeader

      public void setHeader(BytesReference header)
    • setDocVersion

      public void setDocVersion(long version)
    • getVersion

      public Long getVersion()
    • getIndex

      public String getIndex()
    • getType

      public String getType()
    • getId

      public String getId()
    • isArtificial

      public boolean isArtificial()
    • setArtificial

      public void setArtificial(boolean artificial)