public class SpanQueryFilter extends SpanFilter
QueryWrapperFilter
. Namely,
the position information for each matching document is stored.
This filter does not cache. See the CachingSpanFilter
for a wrapper that
caches.Modifier | Constructor and Description |
---|---|
protected |
SpanQueryFilter() |
|
SpanQueryFilter(SpanQuery query)
Constructs a filter which only matches documents matching
query . |
Modifier and Type | Method and Description |
---|---|
SpanFilterResult |
bitSpans(IndexReader reader)
Returns a SpanFilterResult with true for documents which should be permitted in
search results, and false for those that should not and Spans for where the true docs match.
|
boolean |
equals(java.lang.Object o) |
DocIdSet |
getDocIdSet(IndexReader reader) |
SpanQuery |
getQuery() |
int |
hashCode() |
java.lang.String |
toString() |
protected SpanQuery query
public DocIdSet getDocIdSet(IndexReader reader) throws java.io.IOException
getDocIdSet
in class Filter
java.io.IOException
DocIdBitSet
public SpanFilterResult bitSpans(IndexReader reader) throws java.io.IOException
SpanFilter
bitSpans
in class SpanFilter
reader
- The IndexReader
to load position and DocIdSet information fromSpanFilterResult
java.io.IOException
- if there was an issue accessing the necessary informationpublic SpanQuery getQuery()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.