| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | --:api: multi-term-vectors:request: MultiTermVectorsRequest:response: MultiTermVectorsResponse:tvrequest: TermVectorsRequest--[id="{upid}-{api}"]=== Multi Term Vectors APIMulti Term Vectors API allows to get multiple term vectors at once.[id="{upid}-{api}-request"]==== Multi Term Vectors RequestThere are two ways to create a +{request}+.The first way is to create an empty +{request}+, and then add individual<<java-rest-high-document-term-vectors, term vectors requests>> to it.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Create an empty +{request}+.<2> Add the first +{tvrequest}+ to the +{request}+.<3> Add the second +{tvrequest}+ for an artificial doc to the +{request}+.The second way can be used when all term vectors requests share the samearguments, such as index, type, and other settings. In this case, a template+{tvrequest}+ can be created with all necessary settings set, andthis template request can be passed to +{request}+ along with alldocuments' ids for which to execute these requests.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-template]--------------------------------------------------<1> Create a template +{tvrequest}+.<2> Pass documents' ids and the template to the +{request}+.include::../execution.asciidoc[][id="{upid}-{api}-response"]==== Multi Term Vectors Response+{response}+ allows to get the list of term vectors responses,each of which can be inspected as described in<<java-rest-high-document-term-vectors>>.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Get a list of `TermVectorsResponse`
 |