Get multiple term vectors

  • POST also GET /{index}/_mtermvectors
  • POST also GET /_mtermvectors

Get multiple term vectors with a single request. You can specify existing documents by index and ID or provide artificial documents in the body of the request. You can specify the index in the request body or request URI. The response contains a docs array with all the fetched termvectors. Each element has the structure provided by the termvectors API.

Artificial documents

You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. The mapping used is determined by the specified _index.

  • Index privileges: read

Path Parameters

index string IndexName optional

The name of the index that contains the documents.

Leave it out to use /_mtermvectors.

Response