You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by chrisbamford <ch...@chrisbamford.plus.com> on 2015/03/19 23:54:38 UTC

RE: Filtering question - solved

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