Class ValueSourceRangeFilter

  • public class ValueSourceRangeFilter
    extends SolrFilter
    RangeFilter over a ValueSource.
    • Constructor Detail

      • ValueSourceRangeFilter

        public ValueSourceRangeFilter​(org.apache.lucene.queries.function.ValueSource valueSource,
                                      String lowerVal,
                                      String upperVal,
                                      boolean includeLower,
                                      boolean includeUpper)
    • Method Detail

      • getValueSource

        public org.apache.lucene.queries.function.ValueSource getValueSource()
      • getLowerVal

        public String getLowerVal()
      • getUpperVal

        public String getUpperVal()
      • isIncludeLower

        public boolean isIncludeLower()
      • isIncludeUpper

        public boolean isIncludeUpper()
      • getDocIdSet

        public getDocIdSet​(Map context,
                                                             org.apache.lucene.index.LeafReaderContext readerContext,
                                                             org.apache.lucene.util.Bits acceptDocs)
                                                      throws IOException
        Specified by:
        getDocIdSet in class SolrFilter
      • createWeight

        public void createWeight​(Map context,
                          throws IOException
        Description copied from class: SolrFilter
        Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context. The context object will be passed to getDocIdSet() where this info can be retrieved.
        Specified by:
        createWeight in class SolrFilter
      • toString

        public String toString​(String field)
        Specified by:
        toString in class
      • equals

        public boolean equals​(Object o)
        Specified by:
        equals in class
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class