lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thturk <>
Subject Improve Search Speed
Date Wed, 15 Aug 2018 13:44:26 GMT
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);                    
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:

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

View raw message