You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2010/06/14 03:20:59 UTC

Re: Question about specifying the query analysis at query time

: 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