Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 2813 invoked from network); 27 Oct 2006 16:02:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 16:02:02 -0000 Received: (qmail 29921 invoked by uid 500); 27 Oct 2006 16:02:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 29729 invoked by uid 500); 27 Oct 2006 16:02:06 -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 29718 invoked by uid 99); 27 Oct 2006 16:02:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 09:02:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.109.24.26] (HELO smtp-vbr6.xs4all.nl) (194.109.24.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 09:01:49 -0700 Received: from k8l.lan (porta.xs4all.nl [80.127.24.69]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id k9RG1Ris059337 for ; Fri, 27 Oct 2006 18:01:27 +0200 (CEST) (envelope-from paul.elschot@xs4all.nl) From: Paul Elschot To: java-user@lucene.apache.org Subject: Re: Scoring documents by position Date: Fri, 27 Oct 2006 18:01:26 +0200 User-Agent: KMail/1.8.2 References: <403D5F429C79EE4199D99529BB153AD13C927E@sv-mail.snowvalley.com> In-Reply-To: <403D5F429C79EE4199D99529BB153AD13C927E@sv-mail.snowvalley.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610271801.26683.paul.elschot@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org On Friday 27 October 2006 11:09, Oliver Donald wrote: > Hi, > > I'm quite new to Lucene but I've managed to get it to return quite > complex results. The problem is that the results aren't bringing up the > most relevant documents first. > > Is it possible to score or boost a result document based on where a > search term appears in a field? Ie, if I search in a title field for > 'OpenGL', is it possible to have results like 'OpenGL Guide' to be > scored highter then 'A Guide to OpenGL' ? SpanFirstQuery does this, but afaik there is no query parser supporting it. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org