query parser of SpanNearQuery

2016-12-04 Thread Yonghui Zhao
It seems lucene query parser doesn't support SpanNearQuery. Is there any query parser supports SpanNearQuery?

Apply Lucene Query on Bits

2016-12-04 Thread Hendrik Dev
Hi, how to apply a org.apache.lucene.search.Query on a given org.apache.lucene.util.Bits object? Background: I have a subclass of org.apache.lucene.index.FilterLeafReader where i want to filter the livedocs by applying a query on the "Bits". According to javadoc i need also to override numDocs()