I'm trying to upgrade an application I have from an old snapshot of
solr to the latest stable trunk and see that the constructor for
Filter has changed, specifically there is another parameter named
acceptDocs, the API says the following
acceptDocs - Bits that represent the allowable docs to
On Sat, Feb 25, 2012 at 3:16 PM, Jamie Johnson jej2...@gmail.com wrote:
I'm trying to upgrade an application I have from an old snapshot of
solr to the latest stable trunk and see that the constructor for
Filter has changed, specifically there is another parameter named
acceptDocs, the API
I am assuming you meant should not be returned right? I basically
return a filtered doc id set and do the following
return new FilteredDocIdSet(startingFilter.getDocIdSet(readerCtx, acceptDocs)) {
@Override
public boolean match(int doc) {
On Sat, Feb 25, 2012 at 3:37 PM, Jamie Johnson jej2...@gmail.com wrote:
I.e. just do if(!acceptDocs.get(doc)) return false; at
the top?
Yep, that should do it.
-Yonik
lucenerevolution.com - Lucene/Solr Open Source Search Conference.
Boston May 7-10