Hi, First of all, thanks for your attention... I think i've got the solution. Actually earlier, everytime for each query i was creating a different searcher object. Creating searcher object was not taking a lot. But searching everytime using a new searcher was taking time. So For testing, i made it a static one and reused the same. This gave me a lot of improvement. Previously my query was taking approx 25 sec. But now most of the queries are taking time between the 100 and 800 ms. Here also i noticed that the query is taking time only first time. If you fire the same query again it takes very very less. Can anybody tell me the story behibd this.
With Regards......... On 6/26/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: Can you provide some information on your setup? How are you indexing : and searching? Do you have a lot of terms in your query, etc? Have you : done any profiling of your setup to determine where the bottlenecks : are? Are you sure they are in Lucene? what methods are you using for doing the search? (Hits, HitCollector, TopDocs) are you sorting? are you opening a new IndexSearcher for each searcher? what exactly are you timing (a single "search" method call, an iteration over every matching doc id? an iteration over every matching doc to get a stored field?) : : -Grant : : heritrix.lucene wrote: : > Hi, : > I have created an index of 47 Million documents. : > I have 1.28GB RAM. : > When i am doing a search over this index it is taking on average 25 : > sec. Is : > there a way so that i can get results in part of a second... : > I hope there must be some ways.. : > : > Thanks and regards.. : > : : -- : : Grant Ingersoll : Sr. Software Engineer : Center for Natural Language Processing : Syracuse University : School of Information Studies : 335 Hinds Hall : Syracuse, NY 13244 : : http://www.cnlp.org : Voice: 315-443-5484 : Fax: 315-443-6886 : : : --------------------------------------------------------------------- : To unsubscribe, e-mail: [EMAIL PROTECTED] : For additional commands, e-mail: [EMAIL PROTECTED] : -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]