Package org.elasticsearch.client.core
Class MultiTermVectorsRequest
java.lang.Object
org.elasticsearch.client.core.MultiTermVectorsRequest
- All Implemented Interfaces:
Validatable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class MultiTermVectorsRequest extends java.lang.Object implements org.elasticsearch.common.xcontent.ToXContentObject, Validatable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMSFields inherited from interface org.elasticsearch.client.Validatable
EMPTY -
Constructor Summary
Constructors Constructor Description MultiTermVectorsRequest()Constructs an empty MultiTermVectorsRequest After that useaddmethod to add individualTermVectorsRequestto it.MultiTermVectorsRequest(java.lang.String[] ids, TermVectorsRequest template)Constructs a MultiTermVectorsRequest from the given document ids and a templateTermVectorsRequest. -
Method Summary
Modifier and Type Method Description voidadd(TermVectorsRequest request)Adds anotherTermVectorsRequestto thisMultiTermVectorsRequestorg.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.client.Validatable
validate
-
Constructor Details
-
MultiTermVectorsRequest
public MultiTermVectorsRequest()Constructs an empty MultiTermVectorsRequest After that useaddmethod to add individualTermVectorsRequestto it. -
MultiTermVectorsRequest
Constructs a MultiTermVectorsRequest from the given document ids and a templateTermVectorsRequest. Used when individual requests share the same index, type and other settings.- Parameters:
ids- - ids of documents for which term vectors are requestedtemplate- - a templateTermVectorsRequestthat allows to set all settings only once for all requests.
-
-
Method Details
-
add
Adds anotherTermVectorsRequestto thisMultiTermVectorsRequest- Parameters:
request- -TermVectorsRequestto add
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-