Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33338 invoked from network); 18 Sep 2005 17:39:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2005 17:39:05 -0000 Received: (qmail 93688 invoked by uid 500); 18 Sep 2005 17:39:01 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 93657 invoked by uid 500); 18 Sep 2005 17:39:01 -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 93643 invoked by uid 99); 18 Sep 2005 17:39:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2005 10:39:01 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_20_30,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jeff.rodenburg@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO zproxy.gmail.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2005 10:39:10 -0700 Received: by zproxy.gmail.com with SMTP id q3so334399nzb for ; Sun, 18 Sep 2005 10:38:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=GKvVsQ32U5Q73YKvWrY9ZlL/KnM7GNuN4/GYwdoQQJUzdtq46pPug64dqV2AXbyDGuzQey38id2IFdF3573aQmoytz9lcXMFq0ulllAedIH8b43mBwxHsfvL9SMsOLxm2EFrBpzp592eEFPVFN9xrVvX0t3XS/X0MM9qRkUz9bs= Received: by 10.54.18.50 with SMTP id 50mr628547wrr; Sun, 18 Sep 2005 10:38:58 -0700 (PDT) Received: by 10.54.13.32 with HTTP; Sun, 18 Sep 2005 10:38:58 -0700 (PDT) Message-ID: <50f4333605091810383656c257@mail.gmail.com> Date: Sun, 18 Sep 2005 10:38:58 -0700 From: Jeff Rodenburg Reply-To: jeff.rodenburg@gmail.com To: java-user@lucene.apache.org Subject: Re: Sort by relevance+distance In-Reply-To: <20050918162428.84944.qmail@web51809.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11387_19539292.1127065138448" References: <20050918162428.84944.qmail@web51809.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11387_19539292.1127065138448 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline trimming the post further: On 9/18/05, James Huang wrote: >=20 > >The problem is quite generic, I believe. What I like to do is similar to= =20 > LIA-ch6, i.e. to find a "good Chinese Hunan-style restaurant near me." I= =20 > prefer Hunan-style; however, if a good Human-style one is 12 miles, where= =20 > there is a Shanghai-style only 2 miles, I may want to take that instead. = So=20 > it's not a simple multi-sorting problem, it's an empirical ordering and t= he=20 > parameters may have to be experimented. Thus far, I'm happy with that=20 > formula I gave earlier. Now I have to find a way to customize the scoring during search (using Hits= ,=20 > not customized HitsCollector). Help is desparately needed here! >=20 /**************************************************************************= ***********/ The typical approach (from what I know) to implementing an affect on scorin= g=20 is to do field boosting. The difficulty in this scenario is the distance=20 factor, which sounds as if it's determined at run-time, plus the trickiness= =20 of field boosting based on the values of the field. I've looked at this as= =20 well, and it's not a simple problem to solve. How are you determining if something is "near me"? Is it a calculation at= =20 run-time, i.e. latitude, longitude, and geometric math? What options do you= =20 have to determine distance? ------=_Part_11387_19539292.1127065138448--