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 Score by overlap area

2014-05-11 Thread quercus
Hi, I have the same requirement for an application that I'm working on and I'm wondering if you were able to make it work as per David's comment? Thanks. geoport wrote > Hi, > i am using solr 4.6 and i´ve indexed bounding boxes. Now, i want to test > the "area overlap sorting" > link >

Re: Spatial maxDistErr changes

2014-04-03 Thread Steven Bower
Thanks... I noticed that.. I tried to send a mail to your Mitre address and it got returned... Not sure if you've locked something new down but if you are interested we are looking to hire for our search team at Bloomberg LP steve On Wed, Apr 2, 2014 at 11:20 AM, David Smiley wrote: > Good q

Re: Spatial maxDistErr changes

2014-04-02 Thread David Smiley
Good question Steve, You'll have to re-index right off. ~ David p.s. Sorry I didn't reply sooner; I just switched jobs and reconfigured my mailing list subscriptions Steven Bower wrote > If am only indexing point shapes and I want to change the maxDistErr from > 0.09 (1m res) to 0.00045 wi

Re: Spatial Score by overlap area

2014-02-11 Thread Smiley, David W.
Hi, BBoxStrategy is still only in “trunk” (not the 4x branch). And furthermore… the Solr portion, a FieldType, is over in Spatial-Solr-Sandbox — https://github.com/ryantxu/spatial-solr-sandbox/blob/master/LSE/src/main/ja va/org/apache/solr/spatial/pending/BBoxFieldType.java It should be quite eas

Re: Spatial Circle Search

2013-10-22 Thread Eric Grobler
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

Re: Spatial Distance Range

2013-10-22 Thread Eric Grobler
Hi Bill, I found what you were refering too :-) http://stackoverflow.com/questions/10867113/solr-distance-filtering Thanks! On Tue, Oct 22, 2013 at 3:20 PM, Bill Bell wrote: > Yes frange works > > Bill Bell > Sent from mobile > > > > On Oct 22, 2013, at 8:17 AM, Eric Grobler > wrote: > > >

Re: Spatial Distance Range

2013-10-22 Thread Eric Grobler
This question was badly phrased. I asked it again under the heading "Spatial Circle Search" On Tue, Oct 22, 2013 at 3:17 PM, Eric Grobler wrote: > Hi Everyone, > > Normally one would search for documents where the location is within a > specified distance, for example widthin 5 km: > fq={!geofi

Re: Spatial Distance Range

2013-10-22 Thread Eric Grobler
Hi Everyone, To explain this better, fq={!geofilt pt=45.15,-93.85 sfield=store d=5} will search the gray area. I want to search in a circle around my location but between 5 and 10 km, the blue area. [image: Inline image 1] Regards Ericz On Tue, Oct 22, 2013 at 3:17 PM, Eric Grobler wrote: >

Re: Spatial Distance Range

2013-10-22 Thread Eric Grobler
Hi Bill, > Yes frange works Do you mean range specifying kilometers? Regards Eric On Tue, Oct 22, 2013 at 3:20 PM, Bill Bell wrote: > Yes frange works > > Bill Bell > Sent from mobile > > > > On Oct 22, 2013, at 8:17 AM, Eric Grobler > wrote: > > > > Hi Everyone, > > > > Normally one would s

Re: Spatial Distance Range

2013-10-22 Thread Bill Bell
Yes frange works Bill Bell Sent from mobile > On Oct 22, 2013, at 8:17 AM, Eric Grobler wrote: > > Hi Everyone, > > Normally one would search for documents where the location is within a > specified distance, for example widthin 5 km: > fq={!geofilt pt=45.15,-93.85 sfield=store > d=5}

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+Dataimport full import results in OutOfMemory for a rectangle defining a line

2013-01-22 Thread Javier Molina
Hi David, You made my day by fixing https://issues.apache.org/jira/browse/LUCENE-4550, THANKS!. I already applied a custom "binary patch" to my set up. As it happens, the project I am working on is getting ready for another production release, Implementing BBoxStrategy it is not an option at thi

Re: Spatial+Dataimport full import results in OutOfMemory for a rectangle defining a line

2013-01-22 Thread David Smiley (@MITRE.org)
Javier Molina wrote > This very wide rectangle will cause an OutOfMemoryError > > -180 3 180 3.016668 > > While this one, slightly taller will work fine. > > -180 3 180 3.5 Due to the bug, the accuracy computing algorithm believes the width for both of these is 0. That algorithm also l

Re: Spatial+Dataimport full import results in OutOfMemory for a rectangle defining a line

2013-01-21 Thread Javier Molina
Re: overlapping latitudes/longitudes, I think it was a mixup of sentences. At the end you pointed out where the problem was. After doing more testing I see the issue not only depends on the longitudes but it is also affected by latitudes. For example This very wide rectangle will cause an OutOf

Re: Spatial+Dataimport full import results in OutOfMemory for a rectangle defining a line

2013-01-21 Thread David Smiley (@MITRE.org)
Javier, I didn't point out anything about overlapping latitudes or longitudes. I pointed out that your rectangle is extremely wide. It's 359.98 degrees wide out of a maximum possibility of 360 even. That's wide! Wether it crosses the dateline or not doesn't trigger the bug; its tri

Re: Spatial+Dataimport full import results in OutOfMemory for a rectangle defining a line

2013-01-21 Thread Javier Molina
Thanks for your reply David. After doing more testing I found that overlapping latitudes or longitudes was not the issue as you point out. The values presented are extreme but they are correct, our solution should allow a user to define a box in a map, a box crossing the 180 meridian is also vali

Re: Spatial+Dataimport full import results in OutOfMemory for a rectangle defining a line

2013-01-21 Thread David Smiley (@MITRE.org)
Javier, Your minX is slightly greater than maxX, which is interpreted as a line that wraps nearly the entire globe. Is that what you intended? If this is what you intended, then you got bitten by this unfixed bug: https://issues.apache.org/jira/browse/LUCENE-4550 As a work-around, you could spli

Re: Spatial filter in solr 4.0 - "Intersects" operation with parameters

2013-01-02 Thread David Smiley (@MITRE.org)
Mladen, FYI I just committed this to 4.x: https://issues.apache.org/jira/browse/SOLR-4230 ~ David mladen micevic wrote > Hi, > I went through example for spatial search in Solr 4.0 > (http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4) > Both indexing and searching work fine. > > Examp

Re: Spatial filter in solr 4.0 - "Intersects" operation with parameters

2012-12-26 Thread David Smiley (@MITRE.org)
It's unusual to have Solr be the first point of entry into a service. Usually it's fronted with a web application that has the business logic that knows how to map the request to the search back-end. Given your further questions, almost anything could work without much trouble: * A standard servl

Re: Spatial filter in solr 4.0 - "Intersects" operation with parameters

2012-12-26 Thread mladen micevic
Thank you David for your quick response. I was thinking yesterday about my problem. Caller should not be aware of internals of my Solr configuration (filed name, operation). Caller can describe search area with center point and radius and I need to translate input parameters into Solr query. Now,

Re: Spatial filter in solr 4.0 - "Intersects" operation with parameters

2012-12-25 Thread David Smiley (@MITRE.org)
Hi Mladen, Despite some similarities at first glance, the Solr 4 spatial fields are not implemented with Solr query parsers, unlike Solr 3 spatial. Everything in quotes is handled by the field type. What you're looking for is for the Solr 3 geospatial functions to be adapted to support the Solr

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 Solr 3.1: filter by viewport

2011-05-24 Thread Smiley, David W.
Hi Zac. The syntax in your example is odd, I didn't know you could do that. Except it doesn't quite work as you show. You could file a bug. As an alternative that might suffice, use the point-radius arguments in which Solr will take the minimum-bounding-box for. See {!bbox} http://wiki.apache.

RE: Spatial Solr 3.1: filter by viewport

2011-05-23 Thread Zac Smith
It looks like someone asked this question a few months ago and didn't get an answer either ... http://lucene.472066.n3.nabble.com/Spatial-Solr-Representing-a-bounding-box-and-searching-for-it-tc2447262.html#none I really thought this would be a pretty simple question to answer? Is there no way

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 query parinsg error: org.apache.lucene.queryParser.ParseException

2010-12-02 Thread Dennis Gearon
It WORKED Thank you so much everybody! I feel like jumping up and down like 'Hiro' on Heroes Dennis Gearon - Original Message - From: "Dennis Gearon" To: Sent: Wednesday, December 01, 2010 7:51 PM Subject: spatial query parinsg error: org.apache.lucene.queryParser.ParseException

Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException

2010-12-01 Thread Dennis Gearon
;http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036' EARTH has a Right To Life, otherwise we all die. - Original Message From: Jean-Sebastien Vachon To: solr-user@lucene.apache.org Sent: Wed, December 1, 2010 8:50:58 PM Subject: Re: spatial query

Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException

2010-12-01 Thread Jean-Sebastien Vachon
I just saw the parameter 'lng' in your query... I believe it should be 'long'. Give it a try if the link I sent you is not working - Original Message - From: "Dennis Gearon" To: Sent: Wednesday, December 01, 2010 11:39 PM Subject: R

Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException

2010-12-01 Thread Dennis Gearon
December 1, 2010 7:12:20 PM Subject: Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException Try this... http://localhost:8080/solr/select?wt=json&indent=true&q={!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}title:Art%20Loft -

Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException

2010-12-01 Thread Jean-Sebastien Vachon
Try this... http://localhost:8080/solr/select?wt=json&indent=true&q={!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}title:Art%20Loft - Original Message - From: "Dennis Gearon" To: Sent: Wednesday, December 01, 2010 7:51 PM Subject: spatial query parin

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

2010-10-23 Thread Grant Ingersoll
On Oct 20, 2010, at 12:14 PM, Pradeep Singh wrote: > Thanks for your response Grant. > > I already have the bounding box based implementation in place. And on a > document base of around 350K it is super fast. > > What about a document base of millions of documents? While a tier based > approac

Re: Spatial

2010-10-20 Thread Pradeep Singh
Thanks for your response Grant. I already have the bounding box based implementation in place. And on a document base of around 350K it is super fast. What about a document base of millions of documents? While a tier based approach will narrow down the document space significantly this concern mi

Re: Spatial

2010-10-19 Thread Grant Ingersoll
On Oct 19, 2010, at 6:23 PM, Pradeep Singh wrote: > https://issues.apache.org/jira/browse/LUCENE-2519 > > If I change my code as per 2519 > > to have this - > > public double[] coords(double latitude, double longitude) { >double rlat = Math.toRadians(latitude); >double rlong = Math.to

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

  1   2   >