Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33594 invoked from network); 21 May 2009 14:17:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 14:17:40 -0000 Received: (qmail 26712 invoked by uid 500); 21 May 2009 14:17:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 26637 invoked by uid 500); 21 May 2009 14:17:50 -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 26627 invoked by uid 99); 21 May 2009 14:17:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 14:17:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.221.107 as permitted sender) Received: from [209.85.221.107] (HELO mail-qy0-f107.google.com) (209.85.221.107) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 14:17:41 +0000 Received: by qyk5 with SMTP id 5so1606787qyk.29 for ; Thu, 21 May 2009 07:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=W7KIa2c/T4Fv11ZmlKDOBX64N2DqM3rF6hKs3lfJCUA=; b=KHDcj9QU8hEe0RhCRehQVCVtuwX6E0E4oiDfUMb9UoWM2CNywqVbfrf8QMC72Najml vc4tj5Rs5p7cnUYV7b72LNp/V2+d6PsOSWulMG416iNwerndOC1nqrB0jasDfzxv8rXL 5WipDcJtwBaKQcvlSyRyniaM3sRODf/c2Vd30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=V8KMXa1ddTDj96hVqXn2KYXrMLzqKOnI4qr7G4UxlCypQhFvrH1M7GndfwZQU/zcnQ OgRKbBpCup/q8J5VXYZTyAMXV/A8FQp8/d9C+naAtLrVvdasDQLQDb9E2i67t3ySfsMt W0J2SQKIP1vUfNvXAhUN7y0gfAFK6XMna5+1k= MIME-Version: 1.0 Received: by 10.220.72.194 with SMTP id n2mr2838265vcj.36.1242915439524; Thu, 21 May 2009 07:17:19 -0700 (PDT) In-Reply-To: <23648418.post@talk.nabble.com> References: <23647738.post@talk.nabble.com> <401658.50329.qm@web38805.mail.mud.yahoo.com> <23648418.post@talk.nabble.com> Date: Thu, 21 May 2009 10:17:19 -0400 Message-ID: <359a92830905210717x61b13f11nabef7647d81cd63a@mail.gmail.com> Subject: Re: About sort questions From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016364edd44424267046a6ccda6 X-Virus-Checked: Checked by ClamAV on apache.org --0016364edd44424267046a6ccda6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I suspect that your boost values are too small to really influencethe scores very much. Have you tried using boost values of, say, d:5^100 OR uid:10^10 OR lang:lisp ? But if you have specific documents that you *know* you want in specific places, why play around with boosting at all? You can use something like (untested pseudo code) TermDocs td = blah blah blah td.seek(new Term("uid", "5")); if (td.next()) { Document doc = IndexReader.document(td.doc()); ...now do whatever you want with the document } Note that this just gets the first doc with matching terms, but from your mail I'm assuming you're working with unique IDs.... Best Erick On Thu, May 21, 2009 at 2:15 AM, hacklisp wrote: > > Hi,balasubramanian Thanks for your reply. > > Both first:25 and second:90 perhaps include 'java' or not. > > I have set doc#90's boost is 3.15 and doc#25's boost is 1.0. I think that > is > key. I try to set query term boost to proper value, but it is not fix. to > one is okay, but another not. > > > balasubramanian sudaakeran wrote: > > > > > > My guess that this can happen when your document matches more than one > > condition. For example first:25 could match lang:java as well?? > > > > > > > > > > ----- Original Message ---- > > From: hacklisp > > To: java-user@lucene.apache.org > > Sent: Thursday, May 21, 2009 10:03:52 AM > > Subject: About sort questions > > > > > > I search 'lisp' with lucene application using the following query > > string: > > uid:5^3 OR uid:10^2 OR lang:lisp > > I hope result as following: > > > > first:5 (which id is 5) > > second:10 (which id is 10) > > others:other results sort according to relevance. > > > > it is always ok, but sometimes not, the second will display before the > > first. > > for example: > > uid:90^3 OR uid:25^2 OR lang:java > > first:25 (which id is 5) > > second:90 (which id is 10) > > others:other results sort according to relevance. > > > > I hope search to return results strictly according to my input order. > > Anyone can understand me? thanks in advance. > > Any point will be appreciate. > > -- > > View this message in context: > > http://www.nabble.com/About-sort-questions-tp23647738p23647738.html > > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/About-sort-questions-tp23647738p23648418.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --0016364edd44424267046a6ccda6--