RE: Filtering question

2015-03-16 Thread chrisbamford
Hi Uwe I was just composing an email to you, so here it is! 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. Yes, I tried that, see below ... Sorry about earlier, I did mana

RE: Filtering question

2015-03-16 Thread Uwe Schindler
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 - Uwe Schindler H.-H.-

RE: Filtering question

2015-03-16 Thread chrisbamford
Hi Uwe I have downloaded Lucene 5.0.0 source to look at the Filters you mention. DocValuesTermsFilter looks promising, however I cannot find FieldCacheDocIdSet anywhere in Lucene 4.10.2 or in 5.0.0. Where should I be looking? I take your point about brute-forcing the DocValues search and a