Class TextMultiValuesToSingleValuesSource


  • public abstract class TextMultiValuesToSingleValuesSource
    extends Object
    A source of SortedDocValues (text doc values) with multiple values per document, where multiple values are "aggregated" into a single value according to a given MultiValueMode.

    Some of this code was copied and adapted from org.elasticsearch.search.MultiValueMode from the Elasticsearch project.

    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getValues

        public org.apache.lucene.index.SortedDocValues getValues​(org.apache.lucene.index.LeafReaderContext ctx)
                                                          throws IOException
        Throws:
        IOException
      • getSortedSetDocValues

        protected abstract org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues​(org.apache.lucene.index.LeafReaderContext ctx)
                                                                                     throws IOException
        Throws:
        IOException
      • select

        protected org.apache.lucene.index.SortedDocValues select​(org.apache.lucene.index.SortedSetDocValues values)
      • select

        protected org.apache.lucene.index.SortedDocValues select​(org.apache.lucene.index.SortedSetDocValues values,
                                                                 ChildDocIds childDocsWithValues)