Re: how to increase the performance!!!

2007-11-26 Thread Erick Erickson
Do all your docs match your query? in which case iterating over the Hits object is very inefficient (see the docs Grant points you to). Erick On Nov 26, 2007 10:04 AM, Shakti_Sareen <[EMAIL PROTECTED]> wrote: > Hi all, > > The size of the folder where I am keeping the index files is 160 MB > > c

Re: how to increase the performance!!!

2007-11-26 Thread Grant Ingersoll
Are you opening your Searcher every time you query? Are your documents really large? Have you worked through http://wiki.apache.org/lucene-java/BasicsOfPerformance ? -Grant On Nov 26, 2007, at 10:04 AM, Shakti_Sareen wrote: Hi all, The size of the folder where I am keeping the index fil

RE: how to increase the performance!!!

2007-11-26 Thread Shakti_Sareen
Hi all, The size of the folder where I am keeping the index files is 160 MB containing 3277 documents. That's not too much. If you are doing things right, search should not take much time. Below is the code : String sNumber = null; hits = searcher.search(query); for (int i = 0;i < hits

RE: how to increase the performance!!!

2007-11-26 Thread Chhabra, Kapil
Hi Shakti, > I am using Searching is taking a lot of time. What do you mean by a lot of time? How much time is it taking? There are a lot of factors that affect the search speed. > The size of the folder where I am keeping the index files is 160 MB containing 3277 documents. That's not too much.