upgrading Solr - org.apache.lucene.search.Filter and acceptDocs

2012-02-25 Thread Jamie Johnson
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

Re: upgrading Solr - org.apache.lucene.search.Filter and acceptDocs

2012-02-25 Thread Yonik Seeley
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

Re: upgrading Solr - org.apache.lucene.search.Filter and acceptDocs

2012-02-25 Thread Jamie Johnson
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) {

Re: upgrading Solr - org.apache.lucene.search.Filter and acceptDocs

2012-02-25 Thread Yonik Seeley
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