Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 17409 invoked from network); 17 May 2010 22:09:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 22:09:42 -0000 Received: (qmail 49530 invoked by uid 500); 17 May 2010 22:09:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 49494 invoked by uid 500); 17 May 2010 22:09:40 -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 49486 invoked by uid 99); 17 May 2010 22:09:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 22:09:40 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of siraj@jobdiva.com designates 64.18.2.217 as permitted sender) Received: from [64.18.2.217] (HELO exprod7og115.obsmtp.com) (64.18.2.217) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 17 May 2010 22:09:31 +0000 Received: from source ([64.147.106.2]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKS/G+gA6rnksB1HSKcUx8WoJDcDMQ2Xvz@postini.com; Mon, 17 May 2010 15:09:10 PDT Received: from [10.10.1.80] (12.111.23.142) by mail.jobdiva.com (10.10.30.148) with Microsoft SMTP Server (TLS) id 8.1.436.0; Mon, 17 May 2010 18:11:21 -0400 Message-ID: <4BF1BE7E.2020809@jobdiva.com> Date: Mon, 17 May 2010 18:09:02 -0400 From: Siraj Haider User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: "java-user@lucene.apache.org" CC: Steven A Rowe Subject: Re: Reverse Searching References: <4BF1A940.3070105@jobdiva.com> <2D127F11DC79714E9B6A43AC9458147F3DCD98E4@suex07-mbx-03.ad.syr.edu> <4BF1B947.6000501@jobdiva.com> <2D127F11DC79714E9B6A43AC9458147F3DCD98E6@suex07-mbx-03.ad.syr.edu> In-Reply-To: <2D127F11DC79714E9B6A43AC9458147F3DCD98E6@suex07-mbx-03.ad.syr.edu> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Steven, Thanks for the information, its very useful. I am definitely going to give it a try and will ask if I get into any problem. thanks -siraj On 5/17/2010 5:59 PM, Steven A Rowe wrote: > Hi Siraj, > > The usual answer to questions like yours ("Will performance of Lucene component X against my N records be good enough?") is "It depends": on the nature of the queries, the nature of the documents, the hardware you run on, etc. That said, if you construct your query objects once and reuse them, it'll likely be extremely fast. > > Here are some benchmarks (which I found by Googling "Lucene MemoryIndex") using PyLucene: > > > > Give it a try! Lucene is pretty easy to get started with. Ask questions if you run into trouble. > > Good luck, > Steve > > On 05/17/2010 at 5:46 PM, Siraj Haider wrote: > >> Hi Steven, >> Thanks for the quick reply. I checked the documentation of MemoryIndex >> and it seems like, you have to create an index in memory with one >> document and will have to run the queries against that single document. >> But my dilemma is, I might have upto 100,000 queries to run against it. >> Do you think this route will give me results in reasonable amount of >> time, i.e. in a few seconds? >> >> thanks >> -siraj >> >> On 5/17/2010 5:21 PM, Steven A Rowe wrote: >> >>> Hi Siraj, >>> >>> Lucene's MemoryIndex can be used to serve this purpose. >>> >>> From>> memory/org/apache/lucene/index/memory/MemoryIndex.html>: >>> >>> [T]his class targets fulltext search of huge numbers >>> of queries over comparatively small transient realtime >>> data (prospective search). >>> >>> MemoryIndex can only hold one document at a time. >>> >>> See also Lucene's InstantiatedIndex, which can hold more than one >>> document at a time: >>> >>> >> >> instantiated/org/apache/lucene/store/instantiated/InstantiatedIndex.htm >> l> >> >>> Steve >>> >>> On 05/17/2010 at 4:38 PM, Siraj Haider wrote: >>> >>> >>>> Hello there, In oracle text search there is a feature to reverse >>>> search using ctxrule. What it does is, you create an index (ctxrule) >>>> on a column having your search criteria(s) and then throw a document >>>> on it and it tells you which criteria(s) it satisfies. Is there >>>> something in Lucene that does that or there are any plans to do that? >>>> >>>> thanks >>>> -siraj >>>> > > --------------------------------------------------------------------- > 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