: I could easily go through and add query's but I have a feeling I should
: use a filter somewhere. What are the best practices when deciding what
: to do?

the list archives will have a lot of discussion on this (mainly along the
lines of "should i use a Filter?" in general the deciding factors should

1) does the critera in question need to affect scoring -- ie: if you are
searching for new articles with the word "software" and you only want
articles maped to the stock tickers AAPL or IBM, do you care what the term
frequency of the "stockTicker" field is for each document, or what hte
document frequency for those particular tickers are? ... if so a Filter
won't help you.

2) is the criteria somehting that is reused a lot, and would therfor
make sense to cache independend of the users input -- ie: if a user
is searching for "flash ram" products and they and lots of other users
want to restict to "instock:true" products then a cached Filter could be
really handy.


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

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupjava-user @
postedJul 31, '06 at 1:34p
activeAug 2, '06 at 8:14p



site design / logo © 2022 Grokbase