Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 67960 invoked from network); 22 Jan 2010 13:17:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2010 13:17:34 -0000 Received: (qmail 69124 invoked by uid 500); 22 Jan 2010 13:17:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 69045 invoked by uid 500); 22 Jan 2010 13:17:32 -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 69035 invoked by uid 99); 22 Jan 2010 13:17:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 13:17:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rcmuir@gmail.com designates 209.85.222.183 as permitted sender) Received: from [209.85.222.183] (HELO mail-pz0-f183.google.com) (209.85.222.183) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 13:17:22 +0000 Received: by pzk13 with SMTP id 13so100833pzk.29 for ; Fri, 22 Jan 2010 05:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=6w5JYXTpeoTeb8nebqCBu1S1vaHgwqk+P82U56zNPFU=; b=NSsIZUpeFkNqf9qLzEjBb8Hx/d48pshYs3mRvK8FRiUKajbmMZOg3WI1Q7jvXivKYM 6aWNdxjVAdVZq88B7aL6CqUpasxEgiL5odVIWwfBRScSsjfRADMwSYR9GKghn2LbjO/U Q3BYCRoQml7JUxePCm2yw1Ki0qYjHq+UW6W8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=PGJUapNjpOQ6lu3ZhX7qERci+wkTXVj8lbFTr11m/IGkJVFOjtn0KNqZXjjrzk9y1V wEjN8j0rWQncljxCtWM9ewUonrqhB4v+sWcPp08wpFeTzK9HRaNWinNIyuDqQDOlQZuZ xPLMjp8Q26468hbhugemU+QMcp9ISKpxQh3hQ= MIME-Version: 1.0 Received: by 10.114.45.8 with SMTP id s8mr2000520was.85.1264166219065; Fri, 22 Jan 2010 05:16:59 -0800 (PST) In-Reply-To: <49A7BA114AAC6A48B9C44CB06B7B987E08C12002@HYDSVWIN004X.ivycomptech.partygaming.local> References: <49A7BA114AAC6A48B9C44CB06B7B987E08C11F78@HYDSVWIN004X.ivycomptech.partygaming.local> <001301ca9b4d$c89bef10$59d3cd30$@de> <49A7BA114AAC6A48B9C44CB06B7B987E08C12002@HYDSVWIN004X.ivycomptech.partygaming.local> From: Robert Muir Date: Fri, 22 Jan 2010 08:16:39 -0500 Message-ID: <8f0ad1f31001220516j4d513d6fj8eaf603f2a4cdd21@mail.gmail.com> Subject: Re: Applying LUCENE-1606 -- which version To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org the patch won't especially help queries like this. maybe they will be 5 or 6 times faster, but still slow. if you really want to do such queries, consider this: do you really need * to match an INFINITE amount of characters?!?! If not, then consider rewriting input queries like this into FINITE RegExpQuerys, something like .{0,3}poker.* at least, where the first component can only match at most 3 of any character, before it must be a p. you can tweak the 'parameter' 3 until its a reasonable tradeoff between relevance and performance. if, on the other hand, you have 100 million rows and feel its mandatory that * matches an infinite amount of characters in this case, then I recommend storing your data in a different structure that will support such queries. On Fri, Jan 22, 2010 at 5:46 AM, Sriram Muthuswamy Chittathoor wrote: > Thanks for the fast reply. > http://svn.apache.org/repos/asf/lucene/java/branches/flex_1458/ > I used the one above to checkout. =C2=A0Hope it is fine. =C2=A0Will see h= ow it > works out. > > My requirement is that I have a index into a DB row (100 million rows). > On some text fields I want to do =C2=A0contains =C2=A0search fast. =C2=A0= I hope this > will suit my needs. =C2=A0 Something like =C2=A0 screenName:*poker* > > > > -----Original Message----- > From: Uwe Schindler [mailto:uwe@thetaphi.de] > Sent: Friday, January 22, 2010 4:00 PM > To: java-user@lucene.apache.org > Subject: RE: Applying LUCENE-1606 -- which version > > Hi Sriram, > > This patch cannot be applied to 3.0 as it depends on a new Lucene branch > called flex. It depends on features, only added in version 3.1. So it > does not even apply on trunk, you have to checkout the experimental flex > branch first. > > For 3.0 you, may try one of the early patches (the last without -flex in > name) in this issue, but they will never go into lucene 3.1, instead the > flex branch will hopefully merge with trunk, soon. Also the non-flex > patches are not so performant, because the performance increases only > with flexible indexing API. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > >> -----Original Message----- >> From: Sriram Muthuswamy Chittathoor [mailto:sriramc@ivycomptech.com] >> Sent: Friday, January 22, 2010 11:05 AM >> To: java-user@lucene.apache.org >> Subject: Applying LUCENE-1606 -- which version >> >> Hi: >> >> >> >> I am trying to apply this Automata patch on my Lucene 3.0 src code but >> running into issues as it is complaining about failures to apply patch >> to certain files. =C2=A0Is this the right version >> >> To apply to. =C2=A0Please help >> >> >> >> Thanks >> >> >> >> Sriram C >> >> >> >> LUCENE-1606 >> https://issues.apache.org/jira/browse/LUCENE-1606 >> >> >> This email is sent for and on behalf of Ivy Comptech Private Limited. >> Ivy Comptech Private Limited is a limited liability company. >> >> This email and any attachments are confidential, and may be legally >> privileged and protected by copyright. If you are not the intended >> recipient dissemination or copying of this email is prohibited. If you >> have received this in error, please notify the sender by replying by >> email and then delete the email completely from your system. >> Any views or opinions are solely those of the sender. =C2=A0This >> communication is not intended to form a binding contract on behalf of >> Ivy Comptech Private Limited unless expressly indicated to the > contrary >> and properly authorised. Any actions taken on the basis of this email >> are at the recipient's own risk. >> >> Registered office: >> Ivy Comptech Private Limited, Cyber Spazio, Road No. 2, Banjara Hills, >> Hyderabad 500 033, Andhra Pradesh, India. Registered number: 37994. >> Registered in India. A list of members' names is available for >> inspection at the registered office. > > > > --------------------------------------------------------------------- > 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 > > --=20 Robert Muir rcmuir@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org