Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 54361 invoked from network); 31 Aug 2009 12:51:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Aug 2009 12:51:01 -0000 Received: (qmail 54242 invoked by uid 500); 31 Aug 2009 12:51:01 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 54161 invoked by uid 500); 31 Aug 2009 12:51:00 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 54152 invoked by uid 99); 31 Aug 2009 12:51:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 12:51:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 12:50:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mi6L8-0003EE-L6 for java-dev@lucene.apache.org; Mon, 31 Aug 2009 05:50:30 -0700 Message-ID: <25222972.post@talk.nabble.com> Date: Mon, 31 Aug 2009 05:50:30 -0700 (PDT) From: utuncdemir To: java-dev@lucene.apache.org Subject: Re: ParseException In-Reply-To: <55e2bf7e0908280906h60655ef7w89c3a1996ca0fcc7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: camoka@gmail.com References: <25185575.post@talk.nabble.com> <55e2bf7e0908280906h60655ef7w89c3a1996ca0fcc7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 of these analyzers so it is working as how it should ? Adriano Crestani-2 wrote: > > 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 ParseException but here >> the >> term 'OR' is not searched for to be interpreted by condition in query >> intentionally.The needs is simple to get the lucene document which has >> text >> for example ' Holland OR Germany '.in other words when i search for >> 'Holland >> OR Germany' for example, i dont want the lucene documents which contains >> either text 'Holland' or 'Germany'.I want simply the document which has >> exactly containing the text ' Holland OR Germany '.I want the 'OR' term >> interpreted as usual string not search operator in Lucene. >> >> When i try same with Luke, also i am having same problem there. >> >> How can i avoid this and make Lucene interpret search operators in its >> own >> implementation as simple text ? >> >> Thank you in advance. >> -- >> View this message in context: >> http://www.nabble.com/ParseException-tp25185575p25185575.html >> Sent from the Lucene - Java Developer mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-dev-help@lucene.apache.org >> >> > > -- View this message in context: http://www.nabble.com/ParseException-tp25185575p25222972.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org