Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D06510254 for ; Tue, 22 Oct 2013 19:57:37 +0000 (UTC) Received: (qmail 96544 invoked by uid 500); 22 Oct 2013 19:55:41 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 96377 invoked by uid 500); 22 Oct 2013 19:55:38 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 96285 invoked by uid 99); 22 Oct 2013 19:55:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 19:55:35 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_IMAGE_ONLY_16,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of impalaherd@googlemail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vb0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 19:55:28 +0000 Received: by mail-vb0-f41.google.com with SMTP id w8so4272606vbj.0 for ; Tue, 22 Oct 2013 12:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZehQECO5s+coTuJh8hS6/GkETdOvMTvRmMmKdSPm6BQ=; b=TyZeq9Cw3rgduZ5GDRXtPv7B3qxLFVKKESIHbogjCHeAzwnZa0Qr5doDYaga5Oxoc9 Ia6Sl8fvOOJGpGCXCsOGymOx2ethRGzk/4roBge3twLRIHlAAvD8RomRYPOXnU8sBytF ZYXYK9oVEvz2yGC19vWdKyv8tfLQWEyot9peNJHSYKOBdylFGcCbmW35OGKLw/7pBL9a OLw0JIt5nMa4XHcWPAJteWJHds4978PchB0xBbZ+2Q5upSloEZ/2mhwW80IXyssgFHQK BVgKETsQGGGD73TlIpXsAA7A2urvjRp/xqImnAzp4CL4wWmAlCwuO3glrCQfydTe0QDw TA7w== MIME-Version: 1.0 X-Received: by 10.52.103.35 with SMTP id ft3mr13794173vdb.5.1382471707820; Tue, 22 Oct 2013 12:55:07 -0700 (PDT) Received: by 10.220.222.68 with HTTP; Tue, 22 Oct 2013 12:55:07 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Oct 2013 20:55:07 +0100 Message-ID: Subject: Re: Spatial Circle Search From: Eric Grobler To: "solr-user@lucene.apache.org" Content-Type: multipart/related; boundary=e89a8ff24d9b0ebf8d04e959c7d6 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff24d9b0ebf8d04e959c7d6 Content-Type: multipart/alternative; boundary=e89a8ff24d9b0ebf8a04e959c7d5 --e89a8ff24d9b0ebf8a04e959c7d5 Content-Type: text/plain; charset=ISO-8859-1 Bill Bell suggested using frange and here is a stackoverflow example: http://stackoverflow.com/questions/10867113/solr-distance-filtering pt=45.15,-93.85&sfield=store&fq={!frange l=5 u=10 cache=false cost=100}geodist()&fq={!bbox d=10} On Tue, Oct 22, 2013 at 7:43 PM, Eric Grobler wrote: > Hi Solr experts, > > fq={!geofilt pt=45.15,-93.85 sfield=store d=5} will return docs with 5 km > (the gray area) > > I want to search in a circle around my location but only between 5 and 10 > km, the blue area. > > Something like: > fq={!geofilt pt=45.15,-93.85 sfield=store *d=[10 TO 100]*} > > [image: Inline image 2] > > Is that possible in Solr? > > Thanks & regards > Ericz > --e89a8ff24d9b0ebf8a04e959c7d5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Bill Bell suggested using frange and here is a stacko= verflow example:


http://stackoverflow.com/questions/1= 0867113/solr-distance-filtering
pt=3D45.15,-93.85&sfield=3Dstore&fq=3D{!frange l=3D5 u=3D10 cache= =3Dfalse cost=3D100}geodist()&fq=3D{!bbox d=3D10}



On Tue, Oct 22, 2= 013 at 7:43 PM, Eric Grobler <impalaherd@googlemail.com> wrote:
Hi = Solr experts,

fq=3D{!geofilt pt=3D45.15,-93.85 sfield=3Dstore d=3D5} will return docs with 5 km (the gray area)

I want to search i= n a circle around my location but only between 5 and 10 km, the blue area.<= br>
Something like:
fq=3D{!geofilt pt=3D45.15,-93.85 sfield=3D= store d=3D[10 TO 100]}

<= img alt=3D"Inline image 2" src=3D"cid:ii_141e17016a65c939">

Is that possible in Solr?

Thank= s & regards
Ericz

--e89a8ff24d9b0ebf8a04e959c7d5-- --e89a8ff24d9b0ebf8d04e959c7d6--