lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danil Ε’ORIN <>
Subject Re: Optimizing multi fields searches
Date Fri, 15 Oct 2010 09:14:34 GMT
Try to create a Filter on ID-like field, and use it in search() method.
It should be much faster.

On Fri, Oct 15, 2010 at 03:34, eoey <> wrote:
> I have documents with 10 indexed fields and 10 million documents.
> One of the index fields has ID-type value which is almost unique. when I
> search with that almost-unique field it comes up in 12ms, but if I add
> another criteria to the search it's very slow, like 5 secs.
> I don't use QueryParser but I created my own queries with BooleanQuery of
> course. Is there anyway to optimize this? How can I influence Lucene to
> search index that yields less documents first and followed by the other
> indexes (the same concept used by some RDBMS that collects indexes
> statistics/histogram)?
> Thanks.
> --
> View this message in context:
> Sent from the Lucene - General mailing list archive at

View raw message