Have a look at http://wiki.apache.org/lucene-java/BasicsOfPerformance

Are you opening the IndexSearcher every time you search, even when no documents have changed?

-Grant

On Sep 6, 2007, at 7:41 AM, makkhar wrote:


Hi,

I have an index which contains more than 20K documents. Each document has
the following structure :

field : ID (Index and store) typical value - "1000"
field : parameterName(index and store)          typical value -
"/mcp/data/parent1/parent2/child1/child2/status"
field : parameterValue(index and not store)    typical value - "draft"

When I search for a term which results in "all" the documents getting
returned, the search time is more than 1 sec. I have still not done
hits.doc(), which I understand, would be even worse.

My problem is, I am expecting the search itself to happen in the order of a few milliseconds irrespective of the number of documents it matched. Am I
expecting too much ?
--
View this message in context: http://www.nabble.com/Search- performance-question-tf4391551.html#a12520740
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------
Grant Ingersoll
http://lucene.grantingersoll.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to