Re: Lucene QueryParser/Analyzer inconsistency

2014-06-19 Thread Luis Pureza
Unfortunately I spoke too soon. While the original example seems to have been fixed, I'm still getting some unexpected results. As per your suggestion, I modified the Analyzer to: @Override protected TokenStreamComponents createComponents(String field, Reader in) { NormalizeCharMa

Re: Lucene QueryParser/Analyzer inconsistency

2014-06-18 Thread Luis Pureza
Thanks, that did work. On Tue, Jun 17, 2014 at 8:49 PM, Jack Krupansky wrote: > Yeah, this is kind of tricky and confusing! Here's what happens: > > 1. The query parser "parses" the input string into individual source > terms, each delimited by white space. The escape is removed in this > proc

Re: Lucene QueryParser/Analyzer inconsistency

2014-06-17 Thread Jack Krupansky
Yeah, this is kind of tricky and confusing! Here's what happens: 1. The query parser "parses" the input string into individual source terms, each delimited by white space. The escape is removed in this process, but... no analyzer has been called at this stage. 2. The query parser (generator)