lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Klaas <mike.kl...@gmail.com>
Subject Re: Search performance question
Date Thu, 06 Sep 2007 21:58:17 GMT

On 6-Sep-07, at 4: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 ?

20K docs is not very many.  I would expect a simply TermQuery to be  
on the order of milliseconds, _after_ the OS has cached the index in  
memory.  Does the time improve after some warmup?

-MIke


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message