Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 72271 invoked from network); 17 Feb 2006 18:43:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 18:43:20 -0000 Received: (qmail 5562 invoked by uid 500); 17 Feb 2006 18:43:14 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 5532 invoked by uid 500); 17 Feb 2006 18:43:13 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 5520 invoked by uid 99); 17 Feb 2006 18:43:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 10:43:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mike@curtin.com designates 205.158.62.64 as permitted sender) Received: from [205.158.62.64] (HELO ws6-6.us4.outblaze.com) (205.158.62.64) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Feb 2006 10:43:13 -0800 Received: (qmail 23463 invoked from network); 17 Feb 2006 18:34:31 -0000 Received: from unknown (HELO ?10.1.1.2?) (mike@curtin.com@68.73.12.6) by ws6-6.us4.outblaze.com with SMTP; 17 Feb 2006 18:34:31 -0000 Message-ID: <43F6165C.7080003@curtin.com> Date: Fri, 17 Feb 2006 13:30:52 -0500 From: "Michael D. Curtin" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Custom Sorting References: <20060217182752.33342.qmail@web37412.mail.mud.yahoo.com> In-Reply-To: <20060217182752.33342.qmail@web37412.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N SOME ONE wrote: > Hi, > > I am using MultiFieldQueryParser (Lucene 1.9) to > search title and body fields in the documents. The > requirement is that documents with title match should > be returned before the documents with body match. > Using the default scoring, title matches do come > before the body matches. But, I also need the > documents with title matches sorted by date, and > documents with body matches sorted by date. i.e there > will be two groups of docs in the results, one with > title match and the other with just body match, the > first group of docs should come before the second > group, and each group should be sorted by date. Would it work to run 2 searches, one with only the title criteria and then another with only the body criteria? --MDC --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org