Re: FieldCacheTermsFilter performance

2013-01-21 Thread emmanuel Gosse
Hi, We have about 120 filters, half is selective but some filters are "boolean". It's easy to find where the difference comes. binarySearchLookup in DocTermsIndexImpl versus StringIndex : In StringIndex, just a comparaison between Strings : int cmp = lookup[mid].compareTo(key); In DocTermsIn

RE: FieldCacheTermsFilter performance

2013-01-20 Thread Uwe Schindler
Hi, in Lucene 4.0 I would recommend to use TermsFilter (from queries module), not FieldCacheTermsFilter, because the term dictionary is much faster and it is in this case better to use the posting lists, instead of scanning all documents (which FCTermsCache does). How many filter terms do you h