On Thu, Jan 20, 2011 at 11:29 AM, Paul Libbrecht <p...@hoplahup.net> wrote: > > Hello list, > > I am hitting a stupid bug where a unit test shows me that QueryParser > analyzes fierciely anything it finds hence... I have to tune the analyzer to > not decompose the terms with fields that should be non-analyzed. > > For indexing, you can choose to have something not_analyzed. > For query-parsing you cannot. > > Why? > > I think it'd be simpler and more understandable to have NOT_ANALYZED be > replaced by NopAnalyzer or something like that. > > Agreeing?
Personally I totally agree... KeywordAnalyzer is more intuitive, as then it works at query-time too. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org