lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Speed of fuzzy searches
Date Thu, 02 Apr 2009 15:24:42 GMT
This seems really odd, especially with an index that size. The
first question is usually "Do you open an IndexReader for
each query?" If you do, be aware that opening a reader/searcher
is expensive, and the first few queries through the system are
slow as the caches are built up.

The second question is, have you looked at:

the section "How can I speed up searching"

which also points you here:


On Thu, Apr 2, 2009 at 12:16 PM, Matt Schraeder <> wrote:

> I've got a simple Lucene index and search built for testing purposes.
> So far everything seems great. Most searches take 0.02 seconds or less.
> Searches with 4-5 terms take 0.25 seconds or less.  However, once I
> began playing with fuzzy searches everything seemed to really slow down.
>  A fuzzy search seems to take vastly longer time, 6 seconds for a single
> term such as "cow~" and 24 seconds for fuzzy searches of multiple
> terms.
> Is there anything I can do to speed up fuzzy searches or are they by
> default just simply slow?
> My index is only 6.1M, with ~18000 documents.  Each document has 5
> fields, a combination of text and keywords. I'm afraid that when I begin
> to scale up to have more fields it will only make the problem worse.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message