Class MultiTermVectorsRequest

java.lang.Object
org.elasticsearch.client.core.MultiTermVectorsRequest
All Implemented Interfaces:
Validatable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class MultiTermVectorsRequest extends Object implements org.elasticsearch.xcontent.ToXContentObject, Validatable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS

    Fields inherited from interface org.elasticsearch.client.Validatable

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an empty MultiTermVectorsRequest After that use add method to add individual TermVectorsRequest to it.
    Constructs a MultiTermVectorsRequest from the given document ids and a template TermVectorsRequest.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds another TermVectorsRequest to this MultiTermVectorsRequest
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment

    Methods inherited from interface org.elasticsearch.client.Validatable

    validate
  • Constructor Details

    • MultiTermVectorsRequest

      public MultiTermVectorsRequest()
      Constructs an empty MultiTermVectorsRequest After that use add method to add individual TermVectorsRequest to it.
    • MultiTermVectorsRequest

      public MultiTermVectorsRequest(String[] ids, TermVectorsRequest template)
      Constructs a MultiTermVectorsRequest from the given document ids and a template TermVectorsRequest. Used when individual requests share the same index, type and other settings.
      Parameters:
      ids - - ids of documents for which term vectors are requested
      template - - a template TermVectorsRequest that allows to set all settings only once for all requests.
  • Method Details

    • add

      public void add(TermVectorsRequest request)
      Adds another TermVectorsRequest to this MultiTermVectorsRequest
      Parameters:
      request - - TermVectorsRequest to add
    • toXContent

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