Class TermVectorsService

org.elasticsearch.index.termvectors.TermVectorsService

public class TermVectorsService extends
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.lucene.index.Fields
    fields​(org.apache.lucene.index.IndexReader reader)
     
    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 - The IndexableField to get the values from
      Returns:
      a String[] of field values