Hi Harry,

May be you can use BooleanQuery#setMinimumNumberShouldMatch method. What 
happens when you use set it to half of the numTerms?

ahmet


On Tuesday, November 11, 2014 8:35 AM, Harry Yu <[email protected]> wrote:
Hi everyone,



I have been using Lucene to build a POI searching & geocoding system. After 
test, I found that when query is long(above 10 terms). And the speed of 
searching is too slow near to 1s. I think the bottleneck is that I used OR to 
generate my BooleanQuery. It would get plenty of candidates documents. And it 
would also consume too many time to score and rank.

I changed to use AND to generate my BooleanQuery. But it decrease the accuracy 
of hits. So I want to find a solution to reduce candidate documents and do not 
decrease the accuracy in this situation.

Thanks for your help!‍



------------------
Harry YuInstitute of Remote Sensing and Geographic Information System.
School of Earth and Space Sciences, Peking University;
Beijing, China, 100871;
Email: [email protected] OR [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to