public class TermVectorsRequestBuilder extends ActionRequestBuilder<TermVectorsRequest,TermVectorsResponse,TermVectorsRequestBuilder>
Note, the index
, type
and id
are
required.
action, client, request
Constructor and Description |
---|
TermVectorsRequestBuilder(ElasticsearchClient client,
TermVectorsAction action) |
TermVectorsRequestBuilder(ElasticsearchClient client,
TermVectorsAction action,
String index,
String type,
String id)
Constructs a new term vector request builder for a document that will be fetch
from the provided index.
|
Modifier and Type | Method and Description |
---|---|
TermVectorsRequestBuilder |
setDfs(boolean dfs)
Sets whether to use distributed frequencies instead of shard statistics.
|
TermVectorsRequestBuilder |
setDoc(XContentBuilder xContent)
Sets the artificial document from which to generate term vectors.
|
TermVectorsRequestBuilder |
setFieldStatistics(boolean fieldStatistics)
Sets whether to return the field statistics for each term in the shard or skip.
|
TermVectorsRequestBuilder |
setFilterSettings(TermVectorsRequest.FilterSettings filterSettings)
Sets the settings for filtering out terms.
|
TermVectorsRequestBuilder |
setId(String id)
Sets the id of the document.
|
TermVectorsRequestBuilder |
setIndex(String index)
Sets the index where the document is located.
|
TermVectorsRequestBuilder |
setOffsets(boolean offsets)
Sets whether to return the start and stop offsets for each term if they were stored or
skip offsets.
|
TermVectorsRequestBuilder |
setParent(String parent)
Sets the parent id of this document.
|
TermVectorsRequestBuilder |
setPayloads(boolean payloads)
Sets whether to return the payloads for each term or skip.
|
TermVectorsRequestBuilder |
setPerFieldAnalyzer(Map<String,String> perFieldAnalyzer)
Sets the analyzer used at each field when generating term vectors.
|
TermVectorsRequestBuilder |
setPositions(boolean positions)
Sets whether to return the positions for each term if stored or skip.
|
TermVectorsRequestBuilder |
setPreference(String preference)
Sets the preference to execute the search.
|
TermVectorsRequestBuilder |
setRealtime(Boolean realtime)
Sets whether term vectors are generated real-time.
|
TermVectorsRequestBuilder |
setRouting(String routing)
Sets the routing.
|
TermVectorsRequestBuilder |
setSelectedFields(String... fields)
Sets whether to return only term vectors for special selected fields.
|
TermVectorsRequestBuilder |
setTermStatistics(boolean termStatistics)
Sets whether to return the term statistics for each term in the shard or skip.
|
TermVectorsRequestBuilder |
setType(String type)
Sets the type of the document.
|
TermVectorsRequestBuilder |
setVersion(long version) |
TermVectorsRequestBuilder |
setVersionType(VersionType versionType) |
beforeExecute, execute, execute, get, get, get, putHeader, request
public TermVectorsRequestBuilder(ElasticsearchClient client, TermVectorsAction action)
public TermVectorsRequestBuilder(ElasticsearchClient client, TermVectorsAction action, String index, String type, String id)
index
, type
and
id
to specify the document to load.public TermVectorsRequestBuilder setIndex(String index)
public TermVectorsRequestBuilder setType(String type)
public TermVectorsRequestBuilder setId(String id)
public TermVectorsRequestBuilder setDoc(XContentBuilder xContent)
public TermVectorsRequestBuilder setRouting(String routing)
public TermVectorsRequestBuilder setParent(String parent)
public TermVectorsRequestBuilder setPreference(String preference)
public TermVectorsRequestBuilder setOffsets(boolean offsets)
public TermVectorsRequestBuilder setPositions(boolean positions)
public TermVectorsRequestBuilder setPayloads(boolean payloads)
public TermVectorsRequestBuilder setTermStatistics(boolean termStatistics)
public TermVectorsRequestBuilder setFieldStatistics(boolean fieldStatistics)
public TermVectorsRequestBuilder setDfs(boolean dfs)
public TermVectorsRequestBuilder setSelectedFields(String... fields)
public TermVectorsRequestBuilder setRealtime(Boolean realtime)
public TermVectorsRequestBuilder setVersion(long version)
public TermVectorsRequestBuilder setVersionType(VersionType versionType)
public TermVectorsRequestBuilder setPerFieldAnalyzer(Map<String,String> perFieldAnalyzer)
public TermVectorsRequestBuilder setFilterSettings(TermVectorsRequest.FilterSettings filterSettings)
Copyright © 2009–2016. All rights reserved.