lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Øie <>
Subject Re: Peculiar Behavior with Field queries
Date Mon, 17 Jun 2002 14:16:23 GMT
one of the reasons to use stopwords is to reduce indexsize, so an analyzer 
that doesnt stop words, but stop you from searching on them would give the 
worst of both worlds i think... if size reduction is the reason for wanting 
stopwords it is somewhat contradicting the idea of phase searches...

if you accepts som losses a phases search could still be usefull if the query 
also are passed into the same stopanalyzer.

orgtxt : "nearly all the kings men" stripped for the stopword "the" and "all" 
would perhaps still match a phrase search for "nearly all the kings" if the 
samewords was stripped out of the query as well... i havent tested but it 
sounds logical....

mvh karl øie

> I guess one option would be to create an Analyzer to use when creating the
> index that would not eliminate the stop words, then a change the
> QueryParser.jj to use this analyzer when searching for phrases.
> For all other queries you could use a different analyzer that would
> eliminate the stop words.
> I don't find this a problem personally as long as you tell the person that
> you have eliminated these terms from what they are searching for. As an
> example, in Google they tell you which terms were just common words that
> have been eliminated from your query string.
> --Peter

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

View raw message