public class ValueSourceRangeFilter extends SolrFilter
| Modifier and Type | Field and Description |
|---|---|
private boolean |
includeLower |
private boolean |
includeUpper |
private java.lang.String |
lowerVal |
private java.lang.String |
upperVal |
private ValueSource |
valueSource |
| Constructor and Description |
|---|
ValueSourceRangeFilter(ValueSource valueSource,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWeight(java.util.Map context,
org.apache.lucene.search.Searcher searcher)
Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context.
|
boolean |
equals(java.lang.Object o) |
org.apache.lucene.search.DocIdSet |
getDocIdSet(java.util.Map context,
org.apache.lucene.index.IndexReader reader) |
java.lang.String |
getLowerVal() |
java.lang.String |
getUpperVal() |
ValueSource |
getValueSource() |
int |
hashCode() |
boolean |
isIncludeLower() |
boolean |
isIncludeUpper() |
java.lang.String |
toString() |
getDocIdSetprivate final ValueSource valueSource
private final java.lang.String lowerVal
private final java.lang.String upperVal
private final boolean includeLower
private final boolean includeUpper
public ValueSourceRangeFilter(ValueSource valueSource, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
public ValueSource getValueSource()
public java.lang.String getLowerVal()
public java.lang.String getUpperVal()
public boolean isIncludeLower()
public boolean isIncludeUpper()
public org.apache.lucene.search.DocIdSet getDocIdSet(java.util.Map context,
org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
getDocIdSet in class SolrFilterjava.io.IOExceptionpublic void createWeight(java.util.Map context,
org.apache.lucene.search.Searcher searcher)
throws java.io.IOException
SolrFiltercreateWeight in class SolrFilterjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object