lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thturk <tahatur...@hotmail.com>
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 = searcher.search(boolQuery, 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: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html

---------------------------------------------------------------------
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