lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markharw00d <>
Subject Re: Preventing "killer" queries
Date Tue, 07 Feb 2006 20:18:27 GMT
[Answering my own question]

I think a reasonable solution is to have a generic analyzer for use at 
query-time that can wrap my application's choice of analyzer and 
automatically filter out what it sees as stop words. It would initialize 
itself from an IndexReader and create a StopFilter for those terms 
greater than a given document frequency.

This approach seems reasonable because:
a) The stop word filter is automatically adaptive and doesn't need 
manual tuning.
b) I can live with the disk space overhead of the few "killer" terms 
which will make it into the index.
c) "Silent" failure (ie removal of terms from query) is probably 
generally preferable to the throw-an-exception approach taken by 
BooleanQuery if clause limits are exceeded.

To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message