lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Question about specifying the query analysis at query time
Date Mon, 14 Jun 2010 01:20:59 GMT

: stopword.txt has the same words in the index and query analyzer. The thing
: is, in some search requests (not all of them) want to add some extra
: stopwords (at query time). The 3 fields would have the same extra stopwords.
: I want these extra stopwords to be indexed in the index but that some
: searches never find these words.

I would suggest you write a custom QParser that knows about your special 
stop words, strips them out of the query string, and then delgates to 
another parser (by name)

because really it sounds like what you want is to "cleans" the query 
string regardless of field -- not modify the analysis for all the fields.

-Hoss


Mime
View raw message