Re: Query beginning with special characters

2013-01-13 Thread Hankyu Kim
I'm working with Lucene 4.0 and I didn't use lucene's QueryParser, so setAllowLeadingWildcard() is irrelevant. I also realised the issue wasn't with querying, but it was indexing whihch left the terms with leading special character out. My goal was to do a fuzzymatch by creating a trigram index. T

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