Re: Analyzer in QueryParser behaves differently from IndexWriter

2013-01-13 Thread Igal @ getRailo.org
thanks Erik. I tried putting the query in "double quotes" and it made some difference but still not exactly what I'm looking for. so what's my best solution? to avoid using the QueryParser and instead "parse" the query myself? is there a different (better) query parser for this situation?

Re: Analyzer in QueryParser behaves differently from IndexWriter

2013-01-13 Thread Erik Hatcher
The analyzer through QueryParser is invoked for each "clause" and thus in your example it's invoked 4 times and thus each invocation only sees one word/term. Erik On Jan 13, 2013, at 2:13, "Igal @ getRailo.org" wrote: > hi, > > I've created an Analyzer that performs a few filtering tasks

Analyzer in QueryParser behaves differently from IndexWriter

2013-01-12 Thread Igal @ getRailo.org
hi, I've created an Analyzer that performs a few filtering tasks, including creating Shingles and term Replacements among other things. I use that Analyzer with IndexWriter and it works as expected. but when I use that same Analyzer with QueryParser (org.apache.lucene.queryparser.classic.Qu