Class TermVectorsService
org.elasticsearch.index.termvectors.TermVectorsService
public class TermVectorsService
extends
-
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 []
getValues(org.apache.lucene.index.IndexableField[] fields)
Returns an array of values of the field specified as the method parameter.Methods inherited from class java.lang.
, , , , , , , , , ,
-
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 [] 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
-