回复: How to map lucene scores to range from 0~100?

2014-11-11 Thread Harry Yu
收件人: "java-user"; 主题: Re: How to map lucene scores to range from 0~100? Harry , basically converting score into range 0 to 100 require normalization(dividing each score with highest record and multiply by .100) .but this score does n't represent matching %. On Tue, Nov 11,

How to map lucene scores to range from 0~100?

2014-11-11 Thread Harry Yu
Hi everyone, I met a new trouble. In my system, we should score the doc range from 0 to 100. There are some easy ways to map lucene scores to this scope. Thanks for your help~ Yu

How to improve the performance in Lucene when query is long?

2014-11-10 Thread Harry Yu
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 candi

How to rank by name in the same score when using DisjunctionMaxQuery?

2014-09-22 Thread Harry Yu
Hi everyone, I searched an index with 3 its' fields({"name", "addr", "fullname"}), and used DisjunctionMaxQuery to rank the results by the max score of 3 fields. When the hits have same score, lucene would rank by doc Id(low doc Id would be front). But I don't want rank by doc Id in that ca

回复: Speed up searching in multiple-thread?

2014-09-15 Thread Harry Yu
rvice, include accessing complete data form db, calling REST service etc. Regards, Harry Yu -- 原始邮件 -- 发件人: "Toke Eskildsen";; 发送时间: 2014年9月15日(星期一) 下午4:47 收件人: "java-user@lucene.apache.org"; 主题: Re: Speed up searching in multiple-thread?

回复: Speed up searching in multiple-thread?

2014-09-15 Thread Harry Yu
. Best Regards, Harry Yu -- 原始邮件 -- 发件人: "Michael McCandless";; 发送时间: 2014年9月15日(星期一) 下午3:48 收件人: "Lucene Users"; 主题: Re: Speed up searching in multiple-thread? If you run 30 search threads on a core i5 it's expected there will be big s

Speed up searching in multiple-thread?

2014-09-15 Thread Harry Yu
Dear members at Lucene project, I'm developing poi search application using lucene 4.8 . Recently, I met a trouble that the performance of IndexSearcher.search is bad in multiple-thread environment. According the test results, I found that if thread number is 1, the response time of searching