Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 83433 invoked from network); 23 Jun 2008 08:16:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 08:16:50 -0000 Received: (qmail 40952 invoked by uid 500); 23 Jun 2008 08:16:45 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 40927 invoked by uid 500); 23 Jun 2008 08:16:45 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 40916 invoked by uid 99); 23 Jun 2008 08:16:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 01:16:45 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aditigupta20@gmail.com designates 209.85.142.186 as permitted sender) Received: from [209.85.142.186] (HELO ti-out-0910.google.com) (209.85.142.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 08:15:55 +0000 Received: by ti-out-0910.google.com with SMTP id b8so1071885tic.11 for ; Mon, 23 Jun 2008 01:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=NHyEBfhaKLt7JmbqW+ThS9zdQmq0ERt/Qs4uSx7x428=; b=vmROlIp7tD/x8VvhYISawv9lOAEIwcsJ8/wp4JVTYRwQrl4C0s4uC0Asi8Thnd9j06 sOy576vQEQ8XEFAoxRsSLZ9DUjJg84hq4mUZgc6RxVCDSnsGu5olqUFBRkpx7VMN3pvb Zd6wt6foupJIrBtjgcQq7t7G2UHLDDstBnIhc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=gs4aItODxLd90Iwr87qNvERRIIASY+M0bN7Co3o/RHxnFCEcAN3rBfdidBus5fMbEU Slne8HB1PE1lz9LCVjB+tqbYcKs/sWo8uwlIf2F/WZNOI7JInvwqDFm0jE0WxCnAH0Wo 7EeBSI0gkibHLrxW1lyQgB/v9m79oHD4UwhlY= Received: by 10.110.47.17 with SMTP id u17mr5531256tiu.49.1214208972692; Mon, 23 Jun 2008 01:16:12 -0700 (PDT) Received: by 10.110.10.14 with HTTP; Mon, 23 Jun 2008 01:16:12 -0700 (PDT) Message-ID: <6fc71b230806230116g1b71b4cfgad8f5f8ddfac9433@mail.gmail.com> Date: Mon, 23 Jun 2008 13:46:12 +0530 From: "Aditi Goyal" To: java-user@lucene.apache.org Subject: Re: lucene search options In-Reply-To: <6fc71b230806230108v43ebc613h262e0f8f531ef04@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14213_25106154.1214208972690" References: <6fc71b230806222321k16dd8574u6feab56912189900@mail.gmail.com> <200806231633.11295.daniel@nuix.com> <6fc71b230806222336g17e26d3dr275b25f2252c852b@mail.gmail.com> <68959F25CDEBCB4F917D5A253291D73E07ECD647D8@BLRKECMBX06.ad.infosys.com> <6fc71b230806230053u1de94c39qd2db576402c61eca@mail.gmail.com> <68959F25CDEBCB4F917D5A253291D73E07ECD647DF@BLRKECMBX06.ad.infosys.com> <68959F25CDEBCB4F917D5A253291D73E07ECD647EC@BLRKECMBX06.ad.infosys.com> <6fc71b230806230108v43ebc613h262e0f8f531ef04@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_14213_25106154.1214208972690 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I am using MultiFieldQueryParser. Can I use setAllowLeadingWildCard with MultiFieldQueryParser?I am doing the following: parser = lucene.MultiFieldQueryParser(fields, analyzer ) parser.setAllowLeadingWildcard(True) query = parser.parse(command) And I am getting this error: ERROR (, TypeError("descriptor 'parse' requires a 'QueryParser' object but received a 'str'",), ) Thanks a lot Aditi > On Mon, Jun 23, 2008 at 1:33 PM, Allahbaksh Mohammedali Asadullah < > Allahbaksh_Asadullah@infosys.com> wrote: > >> Hi Aditi, >> Sorry for typo. You cannot edit it alone. >> Warm Regards, >> Allahbaksh >> >> Allahbaksh Mohammedali Asadullah, >> Software Engineering & Technology Labs, >> Infosys Technolgies Limited, Electronics City, >> Hosur Road, Bangalore 560 100, India. >> *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. >> Fax: +91-80-28520362 | Mobile: +91-9845505322. >> http://setlabs/slim/ >> http://allahbaksh.blogspot.com >> >> >> -----Original Message----- >> From: Allahbaksh Mohammedali Asadullah [mailto: >> Allahbaksh_Asadullah@infosys.com] >> Sent: Monday, June 23, 2008 1:25 PM >> To: java-user@lucene.apache.org >> Subject: RE: lucene search options >> >> Yes Aditi You can use it alone. >> Warm regards, >> Allahbaksh >> >> Allahbaksh Mohammedali Asadullah, >> Software Engineering & Technology Labs, >> Infosys Technolgies Limited, Electronics City, >> Hosur Road, Bangalore 560 100, India. >> *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. >> Fax: +91-80-28520362 | Mobile: +91-9845505322. >> http://setlabs/slim/ >> http://allahbaksh.blogspot.com >> >> >> -----Original Message----- >> From: Aditi Goyal [mailto:aditigupta20@gmail.com] >> Sent: Monday, June 23, 2008 1:24 PM >> To: java-user@lucene.apache.org >> Subject: Re: lucene search options >> >> Thank you Allahbaksh for taking so much pains. The link says it cannot be >> used alone. >> >> Note: The NOT operator cannot be used with just one term. For example, the >> following search will return no results: >> >> NOT "jakarta apache" >> Thanks, >> Aditi >> >> >> On Mon, Jun 23, 2008 at 1:10 PM, Allahbaksh Mohammedali Asadullah < >> Allahbaksh_Asadullah@infosys.com> wrote: >> >> > Hi Aditi, >> > You can search using NOT operator. You can go through below link for >> Query >> > details http://lucene.apache.org/java/docs/queryparsersyntax.html >> > Warm Regards, >> > Allahbaksh >> > >> > Allahbaksh Mohammedali Asadullah, >> > Software Engineering & Technology Labs, >> > Infosys Technolgies Limited, Electronics City, >> > Hosur Road, Bangalore 560 100, India. >> > *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. >> > Fax: +91-80-28520362 | Mobile: +91-9845505322. >> > http://setlabs/slim/ >> > http://allahbaksh.blogspot.com >> > >> > >> > -----Original Message----- >> > From: Aditi Goyal [mailto:aditigupta20@gmail.com] >> > Sent: Monday, June 23, 2008 12:06 PM >> > To: java-user@lucene.apache.org >> > Subject: Re: lucene search options >> > >> > Thanks a lot Daniel, I will try this option. :) >> > Is there a way to search for not equal to query alone? >> > >> > On Mon, Jun 23, 2008 at 12:03 PM, Daniel Noll wrote: >> > >> > > On Monday 23 June 2008 16:21:17 Aditi Goyal wrote: >> > > > I think wildcard (*) cannot be used in the beginning :( >> > > >> > > Wrong: >> > > >> > > >> > > >> > >> http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/queryParser/QueryParser.html#setAllowLeadingWildcard(boolean) >> < >> http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/queryParser/QueryParser.html#setAllowLeadingWildcard%28boolean%29 >> > >> > < >> > >> http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/queryParser/QueryParser.html#setAllowLeadingWildcard%28boolean%29 >> > > >> > > >> > > Daniel >> > > >> > > --------------------------------------------------------------------- >> > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> > > For additional commands, e-mail: java-user-help@lucene.apache.org >> > > >> > > >> > >> > **************** CAUTION - Disclaimer ***************** >> > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended >> > solely >> > for the use of the addressee(s). If you are not the intended recipient, >> > please >> > notify the sender by e-mail and delete the original message. Further, >> you >> > are not >> > to copy, disclose, or distribute this e-mail or its contents to any >> other >> > person and >> > any such actions are unlawful. This e-mail may contain viruses. Infosys >> has >> > taken >> > every reasonable precaution to minimize this risk, but is not liable for >> > any damage >> > you may sustain as a result of any virus in this e-mail. You should >> carry >> > out your >> > own virus checks before opening the e-mail or attachment. Infosys >> reserves >> > the >> > right to monitor and review the content of all messages sent to or from >> > this e-mail >> > address. Messages sent to or from this e-mail address may be stored on >> the >> > Infosys e-mail system. >> > ***INFOSYS******** End of Disclaimer ********INFOSYS*** >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> > For additional commands, e-mail: java-user-help@lucene.apache.org >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > ------=_Part_14213_25106154.1214208972690--