I tested the solution I gave to you with KeywordAnalyzer and it works as
expected, it's generating a 'field:a field:or field:b' query from the query
'a \OR b'. The same happens for the SimpleAnalyzer.
Now, the problem with StandardAnalyzer, it's actually removing the term 'or'
and 'a' if you type
Thank you for reply but it works in case only Analyzer is SimpleAnalyzer.It
doesnt throw exception but also can not find results too in case the
analyzer is either KeywordAnalyzer or StandartAnalyzer..do you have a clue
that what can be cause of this ? Is it bug maybe or is it the implementation
o
Hi,
You can escape the query parser keywords: Holland \OR Germany
This way the query parser will interpret it as as term instead of a boolean
operator.
Regards,
Adriano Crestani
On Fri, Aug 28, 2009 at 3:51 AM, utuncdemir wrote:
>
> Hello
>
> When search term has word 'OR', Lucene throws an P
Filed a Jira issue:
http://issues.apache.org/jira/browse/LUCENE-573
Tomislav
--
View this message in context:
http://www.nabble.com/ParseException-with-escaped-quotes-in-a-phrase-t1647115.html#a4463298
Sent from the Lucene - Java Developer forum at Nabble.com.
: Looks like QueryParser doesn't handle escaped quotes when inside a phrase:
I believe you are correct. could you file a Jira issue for this,
preferably with your main function converted to a JUnit test function that
can be added to TestQueryParser?
(it doesn't take much to write a JUnit test f