Re: Max score of two fields

2005-11-14 Thread Lasse L
I forgot to mention that I never have to search in the old_name alone. I either search in current_name alone or current_name OR old_name. Realizing that, lead me to the simple solution of duplicating whatever I put into a current field into the old fields too. So the info in the fields with old_ p

Re: Max score of two fields

2005-11-12 Thread Erik Hatcher
On 11 Nov 2005, at 20:32, Yonik Seeley wrote: It doesn't seem like a custom Similarity would work. Always returning 1.0 for coord would still rank a doc higher if both current_name and old_name matched. Oops - you're right. I was merely considering the coordination factor as the issue, ne

Re: Max score of two fields

2005-11-11 Thread Yonik Seeley
It doesn't seem like a custom Similarity would work. Always returning 1.0 for coord would still rank a doc higher if both current_name and old_name matched. -Yonik Now hiring -- http://forms.cnet.com/slink?231706 On 11/11/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > I believe if you create a cu

Re: Max score of two fields

2005-11-11 Thread Erik Hatcher
On 11 Nov 2005, at 13:27, Lasse L wrote: I am indexing persons that has the usual fields name, address etc. I need to keep track of which name and addresses are active now and which ones are old. I do that by having a two sets of fields e.g.: current_name and old_name When I search for a per

Re: Max score of two fields

2005-11-11 Thread Chris Hostetter
: There is no way around using a separate Scorer for this. : You can make (could have made) the scorer by starting from : DisjunctionSumScorer.java here: : http://svn.apache.org/viewcvs.cgi/lucene/java/trunk/src/java/org/apache/lucene/search/ : and rewrite it into a DisjunctionMaxScorer. Coincid

Re: Max score of two fields

2005-11-11 Thread Paul Elschot
Lasse, On Friday 11 November 2005 19:27, Lasse L wrote: > I am indexing persons that has the usual fields name, address etc. > I need to keep track of which name and addresses are active now and > which ones are old. > I do that by having a two sets of fields e.g.: current_name and old_name > > W

Max score of two fields

2005-11-11 Thread Lasse L
I am indexing persons that has the usual fields name, address etc. I need to keep track of which name and addresses are active now and which ones are old. I do that by having a two sets of fields e.g.: current_name and old_name When I search for a person and I search in just the current fields ran