Class TermVectorsService
java.lang.Object
org.elasticsearch.index.termvectors.TermVectorsService
public class TermVectorsService
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static org.apache.lucene.index.Fields
fields(org.apache.lucene.index.IndexReader reader)
static TermVectorsResponse
getTermVectors(IndexShard indexShard, TermVectorsRequest request)
static java.lang.String[]
getValues(org.apache.lucene.index.IndexableField[] fields)
Returns an array of values of the field specified as the method parameter.
-
Method Details
-
getTermVectors
public static TermVectorsResponse getTermVectors(IndexShard indexShard, TermVectorsRequest request) -
fields
public static org.apache.lucene.index.Fields fields(org.apache.lucene.index.IndexReader reader) -
getValues
public static java.lang.String[] getValues(org.apache.lucene.index.IndexableField[] fields)Returns an array of values of the field specified as the method parameter. This method returns an empty array when there are no matching fields. It never returns null.- Parameters:
fields
- TheIndexableField
to get the values from- Returns:
- a
String[]
of field values
-