Search in sources :

Example 6 with TermVectorsRequest

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);
}
Also used : TermVectorsRequest(org.elasticsearch.action.termvectors.TermVectorsRequest) MultiTermVectorsRequest(org.elasticsearch.action.termvectors.MultiTermVectorsRequest)

Aggregations

TermVectorsRequest (org.elasticsearch.action.termvectors.TermVectorsRequest)6 IOException (java.io.IOException)3 MultiTermVectorsRequest (org.elasticsearch.action.termvectors.MultiTermVectorsRequest)3 MultiTermVectorsResponse (org.elasticsearch.action.termvectors.MultiTermVectorsResponse)3 TermVectorsResponse (org.elasticsearch.action.termvectors.TermVectorsResponse)3 NodeClient (org.elasticsearch.client.node.NodeClient)2 Strings (org.elasticsearch.common.Strings)2 Settings (org.elasticsearch.common.settings.Settings)2 BaseRestHandler (org.elasticsearch.rest.BaseRestHandler)2 RestController (org.elasticsearch.rest.RestController)2 RestRequest (org.elasticsearch.rest.RestRequest)2 GET (org.elasticsearch.rest.RestRequest.Method.GET)2 POST (org.elasticsearch.rest.RestRequest.Method.POST)2 RestToXContentListener (org.elasticsearch.rest.action.RestToXContentListener)2 HashSet (java.util.HashSet)1 Set (java.util.Set)1 Fields (org.apache.lucene.index.Fields)1 MultiFields (org.apache.lucene.index.MultiFields)1 ElasticsearchException (org.elasticsearch.ElasticsearchException)1 RoutingMissingException (org.elasticsearch.action.RoutingMissingException)1