Re: escaping special characters while doing search doesn't seem to work

2004-06-30 Thread Steven Rowe
Hi Polina, Try this (jGuru Lucene FAQ item): http://www.jguru.com/faq/view.jsp?EID=538308> Or, better yet, this (the Lucene Wiki "AnalysisParalysis" page): http://wiki.apache.org/jakarta-lucene/AnalysisParalysis> Steve Polina Litvak wrote: I was trying to search my index for a term of the form a*-b

escaping special characters while doing search doesn't seem to work

2004-06-30 Thread Polina Litvak
I was trying to search my index for a term of the form a*-b* (e.g. ABC-DEFG). While tracing the code I noticed that Lucene breaks this term into two terms, "ABC" and "DEFG". To prevent this, I tried escaping the special character "-" with "\" to form the term "ABC\-DEFG" and now Lucene search can't