Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Adding spacial search for Solr backend
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xgdlm  
View profile  
 More options Jan 8 2010, 5:52 pm
From: xgdlm <grang...@gmail.com>
Date: Fri, 8 Jan 2010 14:52:29 -0800 (PST)
Local: Fri, Jan 8 2010 5:52 pm
Subject: [Patch] Adding spacial search for Solr backend
Hello all,

Here is a patch to add spacial search to haystack with Solr backend:
http://1cafe.fr/spacial.diff.txt

Patch is build on django-haystack-1.0.1-final.tar.gz.

This patch works with the jteam spacial plugin for Solr:
http://www.jteam.nl/news/spatialsolr

Here is an exemple of a spacial search, for instance searching all the
result within 3km from a center point:
SearchQuerySet().spacial(lat=49.4338870, long=1.0888390, radius=3,
unit='km').order_by('-geo_distance')

Of course this patch is a quick and dirty fix for people who wants to
run spacial queries with haystack. It works well for me, so may be it
will for others.

Regards,

xav


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xgdlm  
View profile  
 More options Jan 9 2010, 8:27 am
From: xgdlm <grang...@gmail.com>
Date: Sat, 9 Jan 2010 05:27:02 -0800 (PST)
Local: Sat, Jan 9 2010 8:27 am
Subject: Re: Adding spacial search for Solr backend
Actually I misspelled "spacial", should be "spatial"
Patch is updated.

and spatial queries should be done like this:

SearchQuerySet().spatial(lat=49.4338870, long=1.0888390, radius=3,
unit='km').order_by('-geo_distance')

xav

On 8 jan, 23:52, xgdlm <grang...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xgdlm  
View profile  
 More options Nov 18 2010, 6:36 pm
From: xgdlm <grang...@gmail.com>
Date: Fri, 19 Nov 2010 00:36:18 +0100
Local: Thurs, Nov 18 2010 6:36 pm
Subject: Re: [django-haystack] Re: Adding spacial search for Solr backend

>> Here is a patch to add spacial search to haystack with Solr backend:http://1cafe.fr/spacial.diff.txt

For those complaining about the down link, patch can be found at :

http://friendpaste.com/6y88Nn4tCyRkBmxOOdg8He

Regards,

xav


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sid  
View profile  
 More options Nov 26 2010, 7:11 pm
From: Sid <sidmitra....@gmail.com>
Date: Fri, 26 Nov 2010 16:11:29 -0800 (PST)
Local: Fri, Nov 26 2010 7:11 pm
Subject: Re: Adding spacial search for Solr backend
Here's a forked version containing those changes.

https://github.com/sidmitra/django-haystack

-Sid

On Nov 19, 4:36 am, xgdlm <grang...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sid  
View profile  
 More options Sep 28 2011, 3:52 am
From: Sid <sidmitra....@gmail.com>
Date: Wed, 28 Sep 2011 00:52:57 -0700 (PDT)
Local: Wed, Sep 28 2011 3:52 am
Subject: Re: Adding spacial search for Solr backend

I've moved the above repository to here, for posterity.

https://github.com/sidmitra/django-haystack-spatialsolrplugin

Here're some notes attached to it:
https://github.com/sidmitra/django-haystack-spatialsolrplugin/wiki/_p...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dominique Guardiola Falco  
View profile  
 More options Sep 28 2011, 6:51 am
From: Dominique Guardiola Falco <dom.guardi...@gmail.com>
Date: Wed, 28 Sep 2011 03:51:41 -0700 (PDT)
Local: Wed, Sep 28 2011 6:51 am
Subject: Re: Adding spacial search for Solr backend

Hi

this is great for everybody,as this solr extension is used by many people
already, why don't you submit it to the main repository ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sid  
View profile  
 More options Sep 29 2011, 3:04 pm
From: Sid <sidmitra....@gmail.com>
Date: Thu, 29 Sep 2011 12:04:29 -0700 (PDT)
Local: Thurs, Sep 29 2011 3:04 pm
Subject: Re: Adding spacial search for Solr backend

- Firstly, i want to implement the changes for Solr 1.3+ . Since solr now
has built in support for Geo stuff, i think that should be natively
supported by haystack now.
I'll send a pull request, after i've done that. Someone else(Samuel Joos)
did send me some changes he did to make it work, which i'll try to commit to
github.

As far as the JTeam SSP is concerned
- Also, I don't think support for an extra plugin like belongs in the main
repository.

- The current code base is haystack 1.1.1 i think, so need to merge in the
latest master and test it out.
-  The plugin jar i used was 1.x, but JTeam seems to have upgraded it to 2.x
so will have to see if there are backward compatible changes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dominique Guardiola Falco  
View profile  
 More options Sep 30 2011, 4:52 am
From: Dominique Guardiola Falco <dom.guardi...@gmail.com>
Date: Fri, 30 Sep 2011 01:52:43 -0700 (PDT)
Local: Fri, Sep 30 2011 4:52 am
Subject: Re: Adding spacial search for Solr backend

Thanks for this explanation Siddartha
I did not check Solr for a while and did not know they had their own geo
support shipping now, good news


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frutik  
View profile  
 More options Nov 4 2011, 9:40 am
From: Frutik <fru...@gmail.com>
Date: Fri, 4 Nov 2011 06:40:52 -0700 (PDT)
Local: Fri, Nov 4 2011 9:40 am
Subject: Re: Adding spacial search for Solr backend
Hi Sid!

I have made port of your patch for solr 3.4 and haystack 2.* and looks
like it works :-)

You can find all stuff on github https://github.com/frutik/django-haystack

Usage example:

from haystack.query import SearchQuerySet
s = SearchQuerySet()
s.spatial(lat=9.671519, long=46.686754000000001, sfield='location',
distance=10)

Hopefully it can be usefull for somebody else

Kind regards,
Andrew

On Sep 29, 9:04 pm, Sid <sidmitra....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sid  
View profile  
 More options Nov 5 2011, 12:05 am
From: Sid <sidmitra....@gmail.com>
Date: Fri, 4 Nov 2011 21:05:15 -0700 (PDT)
Local: Sat, Nov 5 2011 12:05 am
Subject: Re: Adding spacial search for Solr backend

Hi Andrew,

     Can you link to the specific commit with your changes. I only see the
Readme change on your repo. I didn't see any branches with spatial related
commits. Maybe i'm missing something.

Anyways i'd been experimenting with Solr 3.4 + haystack. I just pushed
whatever changes i had last to a separate branch for now "solr34"
https://github.com/sidmitra/django-haystack-spatialsolrplugin/tree/so...

It's not working yet, but i was trying to use the solr built in LatLon
field type. Will work when i'm free next(tricky!). Feel free to share your
code. It'll be a great help seeing your implementation.

I've been thinking of merging my JTeam SSP + this solr34 work into the same
branch. Maybe add a flag to settings.py to figure out what query syntax to
use. They're pretty similar.
Although SSP 2.x, differs from SSP 1.x, so i'd have to maintain 3 syntaxes
slightly different in their own ways. But should be simple enough. Maybe in
the future i can look at geohash etc. as well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »