use of org.elasticsearch.action.termvectors.TermVectorsRequest in project elasticsearch by elastic.
the class IndicesRequestIT method testTermVector.
public void testTermVector() {
String termVectorShardAction = TermVectorsAction.NAME + "[s]";
interceptTransportActions(termVectorShardAction);
TermVectorsRequest termVectorsRequest = new TermVectorsRequest(randomIndexOrAlias(), "type", "id");
internalCluster().coordOnlyNodeClient().termVectors(termVectorsRequest).actionGet();
clearInterceptedActions();
assertSameIndices(termVectorsRequest, termVectorShardAction);
}
Aggregations