Re: Spatial Search using two separate fields for lat and long

2019-04-13 Thread Alexandre Rafalovitch
Specifically, the pre-processing can be done with UpdateRequestProcessors: https://lucene.apache.org/solr/guide/7_2/update-request-processors.html In your case, you probably want to chain *) CloneUpdate: http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/update/processor/CloneFieldUpdat

Re: Spatial Search using two separate fields for lat and long

2019-04-13 Thread David Smiley
Hi, I think your requirement of exporting back to CSV is fine but it's quite normal for there to be some transformation steps on input and/or output... and that such steps you mostly do yourself (not Solr). That said, one straight-forward solution is to have your spatial field be redundant with t

Re: Spatial search - indexing WKT data

2018-01-17 Thread Gus Heck
It's been a while since I did it, but I'm pretty sure that when I indexed polygons a couple years ago, I just sent WKT text for the field value... I think i do recall some niggle where there was some slight mismatch in wkt accepted by the javascript library I wanted to use and solr. (One was slight

Re: Spatial search (and nested docs)

2018-01-11 Thread Emir Arnautović
Hi Leila, You should be able to pass score parameter that will tell how to combine children’s scores to parent’s score: https://lucene.apache.org/solr/guide/6_6/other-parsers.html#OtherParsers-Scoring Maybe you could change approach and index each cell as a separate doc with layer field and use

Re: Spatial search, nested docs, feature density

2018-01-10 Thread Mikhail Khludnev
The problem itself sounds really challenging, but literally two point from the last question are:- - https://lucene.apache.org/solr/guide/6_6/other-parsers.html#OtherParsers-Scoring - find field in https://lucene.apache.org/solr/guide/6_6/function-queries.html#FunctionQueries-AvailableFunctions

Re: Spatial search (and nested docs)

2018-01-10 Thread Leila Deljkovic
Hi Emir, Thanks for the reply. My problem has been simplified a bit now. https://lucene.apache.org/solr/guide/7_0/uploading-data-with-index-handlers.html#UploadingDatawithIndexHandlers-NestedChildDocuments

Re: Spatial search

2018-01-10 Thread Emir Arnautović
Hi Leila, Maybe I need to refresh my spatial terminology, but I am having troubles following your case. Can you explain a bit more, what is dataset that is indexed and what are query inputs and what should be the result. The one thing that puzzles me the most is “nested documents”. Thanks, Emir

Re: Spatial search with arbitrary rectangle?

2017-08-29 Thread David Smiley
Hi, The "rectangular area" refers to a hypothetical map UI. In this scenario, the UI ought to communicate the lat-lon of each corner. The geofilt and bbox query parsers don't handle that; they only take a point and distance. RE projections: You may or may not need to care depending on exactly w

Re: Spatial Search based on the amount of docs, not the distance

2017-06-28 Thread David Smiley
Deniz didn't mention document-to-document distance sort but he/she didn't say it wasn't that case either. Any way, FYI at the Lucene level with LatLonPoint there is some sophisticated BKD search code to efficiently return the top N distance ordered documents (where you supply N). Although as f

Re: Spatial Search based on the amount of docs, not the distance

2017-06-22 Thread Tim Casey
deniz, I was going to add something here. The reason what you want is probably hard to do is because you are asking solr, which stores a document, to return documents using an attribute of document pairs. As only a though exercise, if you stored record pairs as a single document, you could proba

Re: Spatial Search based on the amount of docs, not the distance

2017-06-21 Thread Erick Erickson
Would it serve to sort by distance? True, if you matched a zillion documents within a 1km radius you'd still perform the distance calcs, but the result would be a manageable number. I have to ask "Why to you care?". Is this an efficiency question (i.e. you want to keep Solr from having to do expen

Re: Spatial Search based on the amount of docs, not the distance

2017-06-21 Thread deniz
it is for sure possible to use d value for limiting the distance, however, it might not be very efficient, as some of the coords may not have any docs around for a large value of d... so it is hard to determine a default value for d. though it sounds like havinga default d and gradual increments

Re: Spatial Search based on the amount of docs, not the distance

2017-06-21 Thread alessandro.benedetti
As any other search you can paginate playing with the 'row' and 'start' parameters ( or cursors if you want to go deep), show only the first K results is your responsibility. Is it not possible in your domain to identify a limit d ( out of that your results will lose meaning ?) You can not match

Re: Spatial Search: can not use FieldCache on a field which is neither indexed nor has doc values: latitudeLongitude_0_coordinate

2017-04-30 Thread David Smiley
Frederick, RE LatLonType: Weird. Is the dynamic field "_coordinate" defined? It should be ensure it has indexed=true on it. I forget if indexed needs to be set on that or on the LLT field that refers to it but to be sure set on both. RE LatLonPointSpatialField: You should use this for sure

Re: Spatial Search: can not use FieldCache on a field which is neither indexed nor has doc values: latitudeLongitude_0_coordinate

2017-04-27 Thread freddy79
It does work with "solr.LatLonPointSpatialField" instead of "solr.LatLonType". But why not with "solr.LatLonType"? -- View this message in context: http://lucene.472066.n3.nabble.com/Spatial-Search-can-not-use-FieldCache-on-a-field-which-is-neither-indexed-nor-has-doc-values-latitude-tp43321

Re: Spatial Search on Postal Code

2016-03-07 Thread Manohar Sripada
spreadsheet with the zipcodes and their guestimated center. > > Fun project! > > > > > Subject: Re: Spatial Search on Postal Code > > > To: solr-user@lucene.apache.org > > > From: emir.arnauto...@sematext.com > > > Date: Fri, 4 Mar 2016 21:18:10 +0100 > >

Re: Spatial Search on Postal Code

2016-03-05 Thread david.w.smi...@gmail.com
s and their guestimated center. > Fun project! > > > Subject: Re: Spatial Search on Postal Code > > To: solr-user@lucene.apache.org > > From: emir.arnauto...@sematext.com > > Date: Fri, 4 Mar 2016 21:18:10 +0100 > > > > Hi Manohar, > > I don't thin

RE: Spatial Search on Postal Code

2016-03-05 Thread steve shepard
rtainly you can buy a spreadsheet with the zipcodes and their guestimated center. Fun project! > Subject: Re: Spatial Search on Postal Code > To: solr-user@lucene.apache.org > From: emir.arnauto...@sematext.com > Date: Fri, 4 Mar 2016 21:18:10 +0100 > > Hi Manohar, > I don&#x

Re: Spatial Search on Postal Code

2016-03-04 Thread Emir Arnautovic
Hi Manohar, I don't think there is such functionality in Solr - you need to do it on client side: 1. find some postal code polygons (you can use open street map - http://wiki.openstreetmap.org/wiki/Key:postal_code) 2. create zip to polygon lookup 3. create code that will expand zip code polygon

Re: Spatial Search on Postal Code

2016-03-04 Thread Manohar Sripada
Thank Erik, Does this zip codes index that you created is a one-to-many mapping from zip code to Lat/Lon points? If so, where did you get this mapping CSV file? Thanks, Manohar On Friday, March 4, 2016, Erik Hatcher wrote: > This is just like an implementation I recently worked on with a custom

Re: Spatial Search on Postal Code

2016-03-04 Thread Manohar Sripada
Thanks Emir, Obviously #2 approach is much better. I know its not straight forward. But, is it really acheivable in Solr? Like building a polygon for a postal code. If so, can you throw some light how to do? Thanks, Manohar On Friday, March 4, 2016, Emir Arnautovic wrote: > Hi Manohar, > This

Re: Spatial Search on Postal Code

2016-03-04 Thread Erik Hatcher
This is just like an implementation I recently worked on with a customer. It’s very much like this sort of thing ;) -

Re: Spatial Search on Postal Code

2016-03-04 Thread Emir Arnautovic
Hi Manohar, This depends on your requirements/usecase. If postal code is interpreted as point than it is expected to have radius that is significantly larger than postal code diameter. In such case you can go with first approach. In order to avoid missing results from postal code in case of sma

Re: Spatial Search killing Solr process

2015-03-19 Thread Henrique O. Santos
Thanks, David. I’m looking at it now. > On Mar 19, 2015, at 4:51 PM, david.w.smi...@gmail.com wrote: > > Hi Henrique, > > Please see the Solr reference guide instead of the “community wiki” you > referenced: > https://cwiki.apache.org/confluence/display/solr/Spatial+Search (you can > download o

Re: Spatial Search killing Solr process

2015-03-19 Thread david.w.smi...@gmail.com
Hi Henrique, Please see the Solr reference guide instead of the “community wiki” you referenced: https://cwiki.apache.org/confluence/display/solr/Spatial+Search (you can download one for 4.10; the online link is always for the latest). For spatial filtering, *especially* at-scale, you really sho

Re: spatial search: find result in bbox OR first result outside bbox

2014-07-25 Thread elisabeth benoit
Thanks a lot for your answer David! I'll check that out. Elisabeth 2014-07-24 20:28 GMT+02:00 david.w.smi...@gmail.com < david.w.smi...@gmail.com>: > Hi Elisabeth, > > Sorry for not responding sooner; I forgot. > > You’re in need of some spatial nearest-neighbor code I wrote but it isn’t > ope

Re: spatial search: find result in bbox OR first result outside bbox

2014-07-24 Thread david.w.smi...@gmail.com
Hi Elisabeth, Sorry for not responding sooner; I forgot. You’re in need of some spatial nearest-neighbor code I wrote but it isn’t open-sourced yet. It works on the RPT grid. Any way, you should consider doing this in two searches: the first query tries the bbox provided, and if that returns no

Re: spatial search, geofilt does not work

2013-08-20 Thread David Smiley (@MITRE.org)
Technically, the query was valid in that it parsed. If it didn't parse then you'd get an error. If the notion of a "default field" didn't exist, and I wish it didn't, then you would most certainly have gotten an error. Perhaps you are using the defaultSearchField feature in the schema; please do

Re: spatial search, geofilt does not work

2013-08-20 Thread Mingfeng Yang
Oh, man. I have been trying to figure out the problem for half day. Probably Solr could use some error msg if the query format is invalid. But, THANKS! David, you probably saved me another half day. Ming- On Mon, Aug 19, 2013 at 10:20 PM, David Smiley (@MITRE.org) < dsmi...@mitre.org> wrote:

Re: spatial search, geofilt does not work

2013-08-19 Thread David Smiley (@MITRE.org)
Thank goodness for Solr's feature of echo'ing params back in the response as it helps diagnose problems like this. In your case, the filter query that Solr is seeing isn't what you (seemed) to have given on the command line: "fq":"!geofilt sfield=author_geo" Clearly wrong. Try escaping the braces

Re: spatial search, geofilt does not work

2013-08-19 Thread Mingfeng Yang
BTW: my schema.xml contains the following related lines. On Mon, Aug 19, 2013 at 2:02 PM, Mingfeng Yang wrote: > My solr index has a field called "author_geo" which contains the author's > location, and when I am trying to get all docs whose author are within 10 > km of 35.0,35.0 using the f

Re: Spatial search question

2013-04-12 Thread David Smiley (@MITRE.org)
Yup, Lance is right. But it won't always work if you have multi-valued data since it wouldn't match a document that had a point both in the ring and the hole. Another approach that internally works faster and addresses the multi-value case is to implement a custom Spatial4j Shape. In this case,

Re: Spatial search question

2013-04-12 Thread Lance Norskog
Outer distance AND NOT inner distance? On 04/12/2013 09:02 AM, kfdroid wrote: We currently do a radius search from a given Lat/Long point and it works great. I have a new requirement to do a search on a larger radius from the same point, but not include the smaller radius. Kind of a donut (toru

Re: Spatial Search with document score as distance between two points

2013-03-21 Thread Chris Hostetter
: q={!func}geodist()&sfield=latlng&pt=28.635308,77.22496&sort=score+asc ... : Problem : For those documents which doesn't have latlng field, value is coming exceptionally large '8763.191'. I'm pretty sure you're seeing the function assume a default lat,lon of "0,0" for docs thta you hav

Re: Spatial Search response time complexity

2012-10-15 Thread Smiley, David W.
Hi TJ. If you use a circle query shape, it's O(N), plus it puts all the points in memory. If you use a rectangle via bbox then I'm not sure but its fast enough that I wouldn't worry about it. If my understanding is correct on Lucene TrieRange fields, it's O(Log(N)). If you want fast filterin

Re: Spatial Search and faceting

2012-02-16 Thread Eric Grobler
Hi William, Thanks for the feedback. I will try the group query and see how the performance with 2 queries is. Best Regards Ericz On Thu, Feb 16, 2012 at 4:06 AM, William Bell wrote: > One way to do it is to group by city and then sort=geodist() asc > > select?group=true&group.field=city&sort

Re: Spatial Search and faceting

2012-02-15 Thread William Bell
One way to do it is to group by city and then sort=geodist() asc select?group=true&group.field=city&sort=geodist() desc&rows=10&fl=city It might require 2 calls to SOLR to get it the way you want. On Wed, Feb 15, 2012 at 5:51 PM, Eric Grobler wrote: > Hi Solr community, > > I am doing a spatial

Re: spatial search or null

2011-12-01 Thread Rob Brown
Recently had this myself... http://wiki.apache.org/solr/SpatialSearch#How_to_combine_with_a_sub-query_to_expand_results -- IntelCompute Web Design and Online Marketing http://www.intelcompute.com -Original Message- From: dan whelan Reply-to: solr-user@lucene.apache.org To: solr-us

Re: Spatial Search problems

2011-08-25 Thread Smiley, David W.
Um, You might try googling LocalSolr or LocalLucene -- dead projects but you insist on using an old Solr/Lucene. Of course if all you need is a bounding box filter than a pair of lat & lon range queries is sufficient. ~ David Smiley On Aug 25, 2011, at 4:01 AM, Javier Heras wrote: > Thanx Dav

Re: Spatial Search problems

2011-08-25 Thread Javier Heras
Thanx David, Just one more question. Am I able to do spatial search with solr1.4? And with lucene 2.9? What's your recomendation? Javier -- View this message in context: http://lucene.472066.n3.nabble.com/Spatial-Search-problems-tp3277945p3283285.html Sent from the Solr - User mailing list arch

Re: Spatial Search problems

2011-08-24 Thread Smiley, David W.
Well that's your problem :-P You need to be using the same version of Lucene for reading & writing. Create your index with Lucene 3.3. FYI I tried indexing the point you said you had trouble with, and with a 300km radius, and it found it. On Aug 24, 2011, at 4:39 AM, Javier Heras wrote: > An

Re: Spatial Search problems

2011-08-24 Thread Javier Heras
And one more thing... should I create the index with the same version of solr that I use to open index for reading??? I create my index with lucene 2.9, and my solr version where Im trying spatial search is 3.3 Thank you very much David -- View this message in context: http://lucene.472066.n3.na

Re: Spatial Search problems

2011-08-24 Thread Javier Heras
Hi David, the thing is that all indexed points are in spain, so distances should always be lower than 1300 Kms. And yes, I'm using solr tutorial scheme.xml, for which tutorial indexes work fine. When I change to my index, it only works when distances are over 4510Kms. The query I run is: http://l

Re: Spatial Search problems

2011-08-23 Thread Smiley, David W.
Could you reproduce a very simple example of this? For example if there is a particular indexed point in your data that should be returned from your query (a query smaller than d=4k10), then reproduce that bug in the Solr example app by supplying a dummy document with this point and running your

Re: Spatial Search and Highlighting

2011-08-01 Thread Bill Bell
I think 4.0 supports fl=geodist() On 8/1/11 3:47 PM, "Ralf Musick" wrote: >Hi David, > >So that "As a temporary workaround for older Solr versions, it's >possible to obtain distances by using geodist or geofilt as the only >scoring part of the main query" >and "Highlighting" do not fit together,

Re: Spatial Search and Highlighting

2011-08-01 Thread Ralf Musick
Hi David, So that "As a temporary workaround for older Solr versions, it's possible to obtain distances by using geodist or geofilt as the only scoring part of the main query" and "Highlighting" do not fit together, right? Ok, than I have to calculate the distance by my own. Thank you very m

Re: Spatial Search and Highlighting

2011-08-01 Thread Smiley, David W.
Ralf, Highlighting (and search relevancy -- the score) is performed on the user query which must be in the "q" parameter. In your case, I see you placed your geospatial query there and you put your user query into a filter query "fq". You have them reversed. You stated that the "returning

Re: Spatial Search and Highlighting

2011-08-01 Thread Ralf Musick
Hi David, an example is: http://localhost:8983/solr/browse?indent=on&hl=on&hl.fl=name,manu&sort=score+asc&sfield=store&json.nl=map&wt=json&rows=10&start=0&q={!func}geodist%28%29&pt=45.17614%2C-93.87341&fq=%28name%20:+%28canon%29%29^8 I have to say I need the calculated distance as a return field

Re: Spatial Search and Highlighting

2011-08-01 Thread Smiley, David W.
Can you demonstrate the bug against the example data? If so, provide the URL please. ~ David On Aug 1, 2011, at 4:00 PM, Ralf Musick wrote: > Hi, > > I combined a spatial distance search with a fulltext search as described > in > http://wiki.apache.org/solr/SpatialSearch#geodist_-_The_distan

Re: Spatial Search with distance as a parameter

2011-07-19 Thread Smiley, David W.
Hi Michael, It appears that you want to index circles (aka point-radius) and you want to do a query that is a point that matches documents where this point is within an indexed circle. I'm working with a couple Lucene/Solr committers on a geospatial module that can do this today against Solr 4

Re: Spatial search with SolrJ 3.1 ? How to

2011-05-19 Thread martin_groenhof
I don't care about the method, I just want results within let's say 10km of a lat,lng ? (I can do this with REST) but don't know how to with a Java API [code]SpatialOptions spatialOptions = new SpatialOptions(company.getLatitude() + "," + company.getLongitude(),

Re: Spatial search with SolrJ 3.1 ? How to

2011-05-19 Thread Yonik Seeley
On Thu, May 19, 2011 at 8:52 AM, martin_groenhof wrote: > How do you construct a query in java for spatial search ? not the default > solr REST interface It depends on what you are trying to do - a spatial request (as currently implemented in Solr) is typically more than just a query... it can be

Re: Spatial search - SOLR 3.1

2011-05-15 Thread Bill Bell
Look up a few lines to see q={!func}geodist() ...&q={!func}geodist()&sfield=store&pt=45.15,-93.85&sort=score asc On 5/11/11 9:25 AM, "Smiley, David W." w

Re: Spatial search - SOLR 3.1

2011-05-12 Thread roySolr
Hello David, It's easy to calculate it by myself but it was nice if SOLR returns distance in the response. I can sort on distance and calculate the distance with PHP to show it to the users. -- View this message in context: http://lucene.472066.n3.nabble.com/Spatial-search-SOLR-3-1-tp2927579p293

Re: Spatial search - SOLR 3.1

2011-05-11 Thread Smiley, David W.
Hi Roy. See this: http://wiki.apache.org/solr/SpatialSearch#Returning_the_distance I recommend returning the point location and calculating the distance yourself -- it's not hard. Getting Solr to return it is a bit of a hack now. ~ David Smiley Author: http://www.packtpub.com/solr-1-4-enterpri

Re: Spatial Search

2011-04-29 Thread Jonas Lanzendörfer
I did the String Solution, works great, thank you! Am 29.04.2011 um 00:25 schrieb Jan Høydahl: > 1) Create an extra String field on your bean as Yonik suggests or > 2) Write an UpdateRequestHandler which reads the doubles and creates the > LatLon from that > > -- > Jan Høydahl, search solution

Re: Spatial Search

2011-04-28 Thread Jan Høydahl
1) Create an extra String field on your bean as Yonik suggests or 2) Write an UpdateRequestHandler which reads the doubles and creates the LatLon from that -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 28. apr. 2011, at 14.44, Yonik Seeley wrote: > On Thu, Apr 28

Re: Spatial Search

2011-04-28 Thread Yonik Seeley
On Thu, Apr 28, 2011 at 5:15 AM, Jonas Lanzendörfer wrote: > I am new to solr and try to use the spatial search feature which was added in > 3.1. In my schema.xml I have 2 double fields for latitude and longitude. How > can I get them into the location field type? I use solrj to fill the index

Re: Spatial Search

2011-02-16 Thread Stefan Matheis
Nishant, correct me if i'm wrong .. but spatial search normally requires geo-information, like latitude and longitude to work? so you would need to fetch this information before putting them into solr. the google maps api offers http://code.google.com/intl/all/apis/maps/documentation/geocoding/#Re

Re: Spatial search - Solr 4.0

2010-12-07 Thread Erick Erickson
What version of solr are you using? What is your configuration? What query are you using? Best Erick On Tue, Dec 7, 2010 at 5:40 PM, Jae Joo wrote: > Hi, > > I am implementing spatial search and found some odd things. As I know that > the returning distance is still being implemented, so I have

Re: Spatial Search

2010-12-01 Thread Erick Erickson
1.4.1 spatial is pretty much superseded by "geospatial" in the current code, you can download a nightly build from here: https://hudson.apache.org/hudson/ Scroll down to "Solr-trunk" and pick a nightly build that suits you. Follow the link through "build artifacts" and checkout/solr/dist and you'l

Re : Spatial Search

2010-12-01 Thread js . vachon
check jteam's spatial search plugin. very easy to install Aisha Zafar a écrit > Hi , > > I am a newbie of solr. I found it really interesting specially spetial > search. I am very interested to go in its depth but i am facing some problem > to use it as i have 1.4.1 version installed on my

Re: Spatial search in Solr 1.5

2010-11-11 Thread Scott K
I just upgraded to a later version of the trunk and noticed my geofilter queries stopped working, apparently because the sfilt function was renamed to geofilt. I realize trunk is not stable, but other than looking at every change, is there an easy way to find changes that are not backward compatib

Re: Spatial search in Solr 1.5

2010-10-13 Thread PeterKerk
ArggghhhI was working in OLD data-config...it now works! :) Thanks, this is a GREAT addition. I do like to know when the final implementation of this feature is implemented (as I understood it might change in the final release). Which issue can I subscribe to, to be informed? Thanks again!!

Re: Spatial search in Solr 1.5

2010-10-13 Thread Yonik Seeley
On Wed, Oct 13, 2010 at 10:06 AM, PeterKerk wrote: > > haha ;) > > But so I DO have the right solr version? > > Anyways...I have added the lines you mentioned, what else can I do? The fact that the geolocation field does not show up in the results means that it's not getting added (i.e. something

Re: Spatial search in Solr 1.5

2010-10-13 Thread PeterKerk
haha ;) But so I DO have the right solr version? Anyways...I have added the lines you mentioned, what else can I do? Thanks again! -- View this message in context: http://lucene.472066.n3.nabble.com/Spatial-search-in-Solr-1-5-tp489948p1694683.html Sent from the Solr - User mailing list archiv

Re: Spatial search in Solr 1.5

2010-10-13 Thread Yonik Seeley
On Wed, Oct 13, 2010 at 9:42 AM, PeterKerk wrote: > Im now thinking I downloaded the wrong solr zip, I tried this one: > https://hudson.apache.org/hudson/job/Solr-trunk/lastSuccessfulBuild/artifact/trunk/solr/dist/apache-solr-4.0-2010-10-12_08-05-48.zip > > In that example scheme > (\apache-solr-4

Re: Spatial search in Solr 1.5

2010-10-13 Thread PeterKerk
Im now thinking I downloaded the wrong solr zip, I tried this one: https://hudson.apache.org/hudson/job/Solr-trunk/lastSuccessfulBuild/artifact/trunk/solr/dist/apache-solr-4.0-2010-10-12_08-05-48.zip In that example scheme (\apache-solr-4.0-2010-10-12_08-05-48\example\example-DIH\solr\db\conf\sch

Re: Spatial search in Solr 1.5

2010-10-13 Thread darren
Does the spatial constraints for laton types work for multivalued latlon fields? Is there an example of it? using a field conjunction with > < operators didn't work, last I checked. > On Wed, Oct 13, 2010 at 7:28 AM, PeterKerk wrote: >> Hi, >> >> Thanks for the quick reply :) >> >> I downloaded t

Re: Spatial search in Solr 1.5

2010-10-13 Thread Yonik Seeley
On Wed, Oct 13, 2010 at 7:28 AM, PeterKerk wrote: > Hi, > > Thanks for the quick reply :) > > I downloaded the latest version from the trunk. Got it up and running, and > got the error below: Hopefully the QuickStart on the wiki all worked for you, but you only got the error when customizing your

Re: Spatial search in Solr 1.5

2010-10-13 Thread PeterKerk
Hi, Thanks for the quick reply :) I downloaded the latest version from the trunk. Got it up and running, and got the error below: URL: http://localhost:8983/solr/db/select/?wt=xml&indent=on&facet=true&fl=id,title,lat,lng,city&facet.field=province_raw&q=*:*&fq={!geofilt%20pt=45.15,-93.85%20sfiel

Re: Spatial search in Solr 1.5

2010-10-12 Thread Yonik Seeley
On Tue, Oct 12, 2010 at 8:07 PM, PeterKerk wrote: > > Ok, so does this actually say: > for now you have to do calculations based on bounding box instead of great > circle? I tried to make the documentation a little simpler... there's - geofilt... filters within a radius of "d" km (i.e. "great c

Re: Spatial search in Solr 1.5

2010-10-12 Thread PeterKerk
Ok, so does this actually say: for now you have to do calculations based on bounding box instead of great circle? And the fact that on top of the page it says "Solr4.0", does that imply I cant use this right now? Or where could I find the latest trunk for this? (and ofcourse this might all change

Re: Spatial search in Solr 1.5

2010-10-12 Thread Yonik Seeley
You may want to check the docs, which were recently updated to reflect the state of trunk: http://wiki.apache.org/solr/SpatialSearch -Yonik http://www.lucidimagination.com On Tue, Oct 12, 2010 at 7:49 PM, PeterKerk wrote: > > Hey Grant, > > Just came accross this post of yours. > > Run a query

Re: Spatial search in Solr 1.5

2010-10-12 Thread PeterKerk
Hey Grant, Just came accross this post of yours. Run a query: http://localhost:8983/solr/select/?q=_val_:"recip(dist(2, store, vector(34.0232,-81.0664)),1,1,0)"&fl=*,score // Note, I just updated this, it used to be point instead of vector and that was wrong. What does your suggested query ac

Re: Spatial Search - Best choice (if any)?

2010-07-16 Thread Dave Searle
I'm also just starting a project requiring spatial indexing so any info would be greatly appreciated. I had a quick look at the wiki last night and it appears solr has it built in in the latest version? Not sure if the patches need applying directly though My requirements are quite simple, I j

Re: Spatial Search - Best choice (if any)?

2010-07-16 Thread Dennis Gearon
I hope that those who know will answer this. I am really interested in it also. TIA. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Fri, 7/16/10, Saïd Radhouani wro

Re: Spatial Search - Best choice ?

2010-07-15 Thread Chris Hostetter
: Subject: Spatial Search - Best choice ? : In-Reply-To: : References: http://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a mailing list, please do not reply to an existing message, instead start a fresh email. Even if you chan

Re: Spatial Search - Best choice ?

2010-07-15 Thread Saïd Radhouani
Thanks for the links, but this makes things even harder :) Do you have any recommendations for one pointer over another? Thanks, -S On Jul 15, 2010, at 1:08 PM, findbestopensource wrote: > Some more pointers to spatial search, > > http://www.jteam.nl/products/spatialsolrplugin.html > http://c

Re: Spatial Search - Best choice ?

2010-07-15 Thread findbestopensource
Some more pointers to spatial search, http://www.jteam.nl/products/spatialsolrplugin.html http://code.google.com/p/spatial-search-lucene/ http://sujitpal.blogspot.com/2008/02/spatial-search-with-lucene.html Regards Aditya www.findbestopensource.com On Thu, Jul 15, 2010 at 3:54 PM, Saïd Radhoua

Re: Spatial search in Solr 1.5

2010-03-16 Thread Grant Ingersoll
On Mar 15, 2010, at 11:36 AM, Jean-Sebastien Vachon wrote: > Hi All, > > I'm trying to figure out how to perform spatial searches using Solr 1.5 (from > the trunk). > > Is the support for spatial search built-in? Almost. Main thing missing right now is filtering. There are still ways to do

Re: Spatial search using R-tree for indexed bounding boxes

2009-03-11 Thread pjaol
There are many spatial solutions out there - R-tree - Quad-Tree - SRID with positional proximity like geohash - Voronoi diagrams etc.. All have their pros & cons as do Cartesian grids. Feel free to contribute the more there are, the more solutions that can be applied to different problems, I use

Re: Spatial search using R-tree for indexed bounding boxes

2009-03-09 Thread Chris Hostetter
: Patrick (of local lucene fame) thinks it is possible to do extent queries with : the cartesian grid method -- essentially you select the "best fit" level and : cell, and that should be set for anything within the extent. The advantage of : this approach is that it is super-fast and scaleable.

Re: Spatial search using R-tree for indexed bounding boxes

2009-03-03 Thread Ryan McKinley
Are there any easily foreseeable problems with implementing an r- tree box indexing/searching extension to Solr, in the spirit of localsolr? If anyone has any pointers I'm all ears. I have implemented an R-Tree based integration for solr. It is pretty ugly and memory intensive, but works