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

Re: using DisjunctionMaxQuery

2007-02-12 Thread Chris Hostetter
: First, a quick check on how to use it. : I tried looking for javadocs, and the mailing list archive, but could not : find much. the javadocs seem pretty clear to me... "A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum scor

using DisjunctionMaxQuery

2007-02-11 Thread Mekin Maheshwari
I am trying to use org.apache.lucene.search.DisjunctionMaxQuery First, a quick check on how to use it. I tried looking for javadocs, and the mailing list archive, but could not find much. Here is what I am doing : //finalquery is a boolean query, that has a lot of field specific sub-queries, eac