lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Improve Search Speed
Date Wed, 15 Aug 2018 14:31:14 GMT

In general, the speed of the Lucene search depends on several aspects, one of those is of
course the underlying hardware its IO performance. To improve search performance, one way
is to use SSDs or increase the available file system cache of your operating system. Full
text search engines are fast, because they only return the best-ranking results first (by
using priority queues). Further increasing the result window size will slow down searches.
So try to improve the relevancy by using better or more specific queries and apply filters
instead of increasing the result set size. To do this we, need more information about the
type of documents or queries you are using.


Uwe Schindler
Achterdiek 19, D-28357 Bremen

> -----Original Message-----
> From: thturk <>
> Sent: Wednesday, August 15, 2018 3:44 PM
> To:
> Subject: Improve Search Speed
> Hey i am new in Lucene  and  i want to search indexes in *100 *ms;
> FileSize is* 2gb* and  indexes are seperated via some type( 6 files ) and
> there are *20m records* in file
> i set searcher and  reader in the constructor
> and  i have boolean query which include fuzzy query and  wildcard query.
> everything is fine and  working  but
> *int resultSize = 100;
> TopDocs results =, resultSize);
> for (ScoreDoc docTemp : results.scoreDocs) {
>     Document doc = searcher.doc(docTemp.doc);
>     addresses.add(helper.fillFields(_doc));
> }*
> Here is my code and there are records more than resultSize but when I
> increase this number search takes longer but the documents which I am
> looking for can be in another part of same index. It's because of ordering
> as I understand the documents with same Score order by some field but that
> order is not returning me correct result .
> Or can I increase my search performance?
> --
> Sent from:
> f532864.html
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message