Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 12903 invoked from network); 24 Feb 2010 20:23:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 20:23:34 -0000 Received: (qmail 95465 invoked by uid 500); 24 Feb 2010 20:23:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 95392 invoked by uid 500); 24 Feb 2010 20:23:31 -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 95382 invoked by uid 99); 24 Feb 2010 20:23:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 20:23:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcelo.ochoa@gmail.com designates 209.85.221.200 as permitted sender) Received: from [209.85.221.200] (HELO mail-qy0-f200.google.com) (209.85.221.200) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 20:23:22 +0000 Received: by qyk38 with SMTP id 38so739439qyk.21 for ; Wed, 24 Feb 2010 12:23:01 -0800 (PST) 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=kHjeGcd30PDBIAvV+t+11RkIdMogqks65lmVZnRcoCo=; b=MtnXOm8PrGTT0S/ZBLkhqO5V1gBT4jIksViu2pmILwqUCzTSjEk4JjGvPYCO5FK6Cp 3JWQv1k8/8yf048ZQDzCkVZLCKX3I5dfxv4zniEMx+NInQrqcjElY8zR7oQ9JYMhAgJV t9RpqAuWWWTvz6Rm9xlscoeCfuaGyvO1lFAc8= 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=RcqaR+U4T7mOgiF7hnPvOKCjgp2Y+/hhwXl3NyUC8l0BzoXOm/hWlqHbf91nkfXRNz iM083/yeDYrOkTxclh1l4R62mbrmT8CV161QULH37mSIkxhWQGfe9hODyhs/WK2Wf1x0 cTnAvTTSDfP6jFWSJd+JZP+9d2EEHVbSIEn7A= MIME-Version: 1.0 Received: by 10.224.12.141 with SMTP id x13mr18435qax.173.1267042980697; Wed, 24 Feb 2010 12:23:00 -0800 (PST) In-Reply-To: References: Date: Wed, 24 Feb 2010 17:23:00 -0300 Message-ID: <126142c1002241223u162d9bfp949efaafafe48f1b@mail.gmail.com> Subject: Re: If you could have one feature in Lucene... From: Marcelo Ochoa To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org > What would it be? An extended query parser syntax (http://lucene.apache.org/java/2_9_1/queryparsersyntax.html) including geo-location search. For example: hsin (great circle): name:Minneapolis AND _val_:"recip(hsin(0.78, -1.6, lat_rad, lon_rad, 3963.205), 1, 1, 0)"^100 dist (Euclidean, Manhattan, p-norm): name:Minneapolis AND _val_:"recip(dist(2, lat, lon, 44.794, -93.2696), 1, 1, 0)"^100 sqedist (Squared Euclidean): name:Minneapolis AND _val_:"recip(sqedist(lat, lon, 44.794, -93.2696), 1, 1, 0)"^100 ghhdist (Geohash Haversine): name:Minneapolis AND _val_:"recip (ghhsin(geohash(44.79, -93), geohash, 3963.205), 1, 1, 0)"^100 source: http://www.ibm.com/developerworks/java/library/j-spatial/index.html Best regards, Marcelo. -- Marcelo F. Ochoa http://marceloochoa.blogspot.com/ http://marcelo.ochoa.googlepages.com/home ______________ Want to integrate Lucene and Oracle? http://marceloochoa.blogspot.com/2007/09/running-lucene-inside-your-oracle-jvm.html Is Oracle 11g REST ready? http://marceloochoa.blogspot.com/2008/02/is-oracle-11g-rest-ready.html --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org