Re: using custom sort method

2006-04-18 Thread Yang Sun
I have asked the exact same question a few weeks ago. I just follow the customized distance example and loop the results again to get another field and compute the scores. It will be painful if you need more than 3 fields. So far I didn't find any other way to do it. Hope we can see some new

Multiple Indexes Search

2006-04-06 Thread Yang Sun
Hi, Just wondering if there is anyway to search two indexes with relations like in the relational database. For example, in index1 there are fields pid and content. in index2 there are fields cid, record, and pid. I want to search keyword1 in content and keyword2 in record and they should

Lucene Ranking/scoring

2006-03-08 Thread Yang Sun
Hi, Just wondering how I can rank search result by a combination of fields. I know there is a multi-field sort, but it is just a sorting method. It is sorted by the first field and then the second field ... What I need is a weighted combination. For example, I want to assign a weight of 2 to

RE: Lucene Ranking/scoring

2006-03-08 Thread Yang Sun
. If you need to get rid of the tf/idf factors, either write your own ScoreDocComparator, or use a FunctionQuery. -Yonik http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server On 3/8/06, Yang Sun [EMAIL PROTECTED] wrote: Hi, Just wondering how I can rank search result