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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MultiTermVectorsRequest()
Constructs an empty MultiTermVectorsRequest After that useadd
method to add individualTermVectorsRequest
to 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 void
add(TermVectorsRequest request)
Adds anotherTermVectorsRequest
to thisMultiTermVectorsRequest
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Constructor Details
-
MultiTermVectorsRequest
public MultiTermVectorsRequest()Constructs an empty MultiTermVectorsRequest After that useadd
method to add individualTermVectorsRequest
to 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 templateTermVectorsRequest
that allows to set all settings only once for all requests.
-
-
Method Details
-
add
Adds anotherTermVectorsRequest
to thisMultiTermVectorsRequest
- Parameters:
request
- -TermVectorsRequest
to 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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-