lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chrisbamford <chrisbamf...@chrisbamford.plus.com>
Subject RE: Filtering question - solved
Date Thu, 19 Mar 2015 22:54:38 GMT
Hi Uwe, Shai and Ian

Thanks for your help with this - I played around with your suggestions 
and have got it to work perfectly.  The problem was that the 
CachingWrapperFilter was not passing the acceptDocs through to my custom 
Filter, so I simply removed it.

Best regards

- Chris

On 16.03.2015 12:48, Uwe Schindler wrote:
> Hi,
>
> 
> http://lucene.apache.org/core/4_10_3/core/org/apache/lucene/search/FieldCacheDocIdSet.html
>
> You just have to implement the "protected boolean matchDoc(int
> docId)" method. You should return this DocIdSet from your filter
> instead of the manual code you created.
>
> Uwe
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message