Class TermVectorsService
java.lang.Object
org.elasticsearch.index.termvectors.TermVectorsService
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.index.Fields
fields(org.apache.lucene.index.IndexReader reader)
static TermVectorsResponse
getTermVectors(IndexShard indexShard, TermVectorsRequest request)
static String[]
getValues(org.apache.lucene.index.IndexableField[] fields)
Returns an array of values of the field specified as the method parameter.
-
Method Details
-
getTermVectors
-
fields
public static org.apache.lucene.index.Fields fields(org.apache.lucene.index.IndexReader reader) -
getValues
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
-