Get multiple term vectors | Elasticsearch API documentation (original) (raw)
Dismiss highlight Show more
Path parameters
- The name of the index that contains the documents.
Query parameters
- A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body
- fields
string | array[string]
A comma-separated list or wildcard expressions of fields to include in the statistics. It is used as the default list unless a specific field list is provided in thecompletion_fields
orfielddata_fields
parameters. - If
true
, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - If
true
, the response includes term offsets. - If
true
, the response includes term payloads. - If
true
, the response includes term positions. - The node or shard the operation should be performed on. It is random by default.
- If true, the request is real-time as opposed to near-real-time.
- A custom value used to route operations to a specific shard.
- If true, the response includes term frequency and document frequency.
- If
true
, returns the document version as part of a hit. - The version type.
Values areinternal
,external
,external_gte
, orforce
.
application/json
Body
- An array of existing or artificial documents.
Hide docs attributes Show docs attributes object- An artificial document (a document not present in the index) for which you want to retrieve term vectors.
- fields
string | array[string] - If
true
, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - Hide filter attributes Show filter attributes object
* Ignore words which occur in more than this many docs. Defaults to unbounded.
* The maximum number of terms that must be returned per field.
* Ignore words with more than this frequency in the source doc. It defaults to unbounded.
* The maximum word length above which words will be ignored. Defaults to unbounded.
* Ignore terms which do not occur in at least this many docs.
* Ignore words with less than this frequency in the source doc.
* The minimum word length below which words will be ignored. - If
true
, the response includes term offsets. - If
true
, the response includes term payloads. - If
true
, the response includes term positions. - If true, the response includes term frequency and document frequency.
- Values are
internal
,external
,external_gte
, orforce
.
- A simplified syntax to specify documents by their ID if they're in the same index.
Responses
- 200 application/json
Hide response attribute Show response attribute object- docs
array[object] Required
Hide docs attributes Show docs attributes object
* Hide term_vectors attribute Show term_vectors attribute object
* *
object Additional properties
Hide * attributes Show * attributes object
* Hide field_statistics attributes Show field_statistics attributes object
* doc_count
number Required
* sum_doc_freq
number Required
* Hide terms attribute Show terms attribute object
* *
object Additional properties
* Cause and details about a request failure. This class defines the properties common to all error types. Additional details are also provided, that depend on the error type.
Hide error attributes Show error attributes object
* The type of error
* #### reason string | null
A human-readable explanation of the error, in English.
* The server stack trace. Present only if theerror_trace=true
parameter was sent with the request.
* Cause and details about a request failure. This class defines the properties common to all error types. Additional details are also provided, that depend on the error type.
* Cause and details about a request failure. This class defines the properties common to all error types. Additional details are also provided, that depend on the error type.
Cause and details about a request failure. This class defines the properties common to all error types. Additional details are also provided, that depend on the error type.
* Cause and details about a request failure. This class defines the properties common to all error types. Additional details are also provided, that depend on the error type.
Cause and details about a request failure. This class defines the properties common to all error types. Additional details are also provided, that depend on the error type.
- docs