Re: Solr spatial search - overlapRatio of polygons

2020-01-08 Thread David Smiley
top results that are based on the bounding-box overlap ratio as an > approximation. > > https://lucene.apache.org/solr/guide/8_3/query-re-ranking.html > > -- Forwarded message - > From: Marc > Date: Tue, Jan 7, 2020 at 6:14 AM > Subject: Solr spatial searc

Fwd: Solr spatial search - overlapRatio of polygons

2020-01-08 Thread David Smiley
on. https://lucene.apache.org/solr/guide/8_3/query-re-ranking.html -- Forwarded message - From: Marc Date: Tue, Jan 7, 2020 at 6:14 AM Subject: Solr spatial search - overlapRatio of polygons To: David Smiley Dear Mr Smiley, I have a tricky question concerning the spatial search f

Re: Re: Need urgent help with Solr spatial search using SpatialRecursivePrefixTreeFieldType

2019-10-01 Thread David Smiley
Do you know how URLs are structured? They include name=value pairs separated by ampersands. This takes precedence over the contents of any particular name or value. Consequently looking at your parenthesis doesn't make sense since the open-close span ampersands and thus go to different filter qu

Re: Re: Need urgent help with Solr spatial search using SpatialRecursivePrefixTreeFieldType

2019-10-01 Thread anushka gupta
Thanks, Could you please help me in combining two geofilt fqs as the following gives error, it treats ")" as part of the d parameter and gives error that 'd=80)' is not a valid param: ({!geofilt}&sfield=adminLatLon&pt=33.0198431,-96.6988856&d=80)+OR+({!geofilt}&sfield=adminLatLon&pt=50.2171726,8

Re: SOlr Spatial Search - Filter and sort on multiple cities

2019-10-01 Thread anushka gupta
Thanks, Could you please also let me know how to combine two geofilt fqs because if i use '&' like : admin_directory_search_geolocation?q=david&fq=({!geofilt&sfield=adminLatLon&pt=33.0198431,-96.6988856&d=80})+OR+({!geofilt&sfield=adminLatLon&pt=50.2171726,8.265894&d=80}) then it gives me error a

Re: Re: Need urgent help with Solr spatial search using SpatialRecursivePrefixTreeFieldType

2019-09-30 Thread David Smiley
> But when I combine the two FQs then sorting doesn’t work. > > > > Please help. > > > > > > Best regards, > > Anushka gupta > > > > > > > > *From:* David Smiley > *Sent:* Friday, September 13, 2019 10:29 PM > *To:* Anushka Gupta > *Subj

Re: Re: Need urgent help with Solr spatial search using SpatialRecursivePrefixTreeFieldType

2019-09-30 Thread Tim Casey
https://stackoverflow.com/questions/48348312/solr-7-how-to-do-full-text-search-w-geo-spatial-search On Mon, Sep 30, 2019 at 10:31 AM Anushka Gupta < anushka_gu...@external.mckinsey.com> wrote: > Hi, > > I want to be able to filter on different cities and also sort the res

Re: SOlr Spatial Search - Filter and sort on multiple cities

2019-09-30 Thread Erick Erickson
Well, first of all your first query with the two fq clauses has sort specified with a space, rather than an ampersand (&). Twice. Even if that worked, Solr would only use one I think. It’s really unclear what you’re after. It makes no sense to me to specify two sorts in a single query, which is

SOlr Spatial Search - Filter and sort on multiple cities

2019-09-30 Thread anushka gupta
Hi, I want to be able to filter on different cities and also sort the results based on geoproximity. But sorting doesn’t work: admin_directory_search_geolocation?q=david&fq=({!geofilt+sfield=adminLatLon+pt=33.0198431,-96.6988856+d=80+sort=min(geodist(33.0198431,-96.6988856))})+OR+({!geofilt+sfiel

RE: Re: Need urgent help with Solr spatial search using SpatialRecursivePrefixTreeFieldType

2019-09-30 Thread Anushka Gupta
ine the two FQs then sorting doesn’t work. Please help. Best regards, Anushka gupta From: David Smiley Sent: Friday, September 13, 2019 10:29 PM To: Anushka Gupta Subject: [EXT]Re: Need urgent help with Solr spatial search using SpatialRecursivePrefixTreeFieldType Hello, Please don&#x

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

Spatial Search using two separate fields for lat and long

2019-04-03 Thread Tim Hedlund
Hi all, I'm importing documents (rows in excel file) that includes latitude and longitude fields. I want to use those two separate fields for searching with a bounding box. Is this possible (not using deprecated LatLonType) or do I need to combine them into one single field when indexing? The r

Re: Sorting results for spatial search

2018-02-01 Thread Leila Deljkovic
Hey David, Thanks for your suggestions! I think I’ve got the right behaviour now; I’ve done fq={!parent which=is_parent:true score=total v='+is_parent:false +{!func}density'} desc instead of sort=… Side note: the grid cells can be POLYGON or MULTIPOLYGON, so BBoxField didn’t work when I tried

Re: Sorting results for spatial search

2018-02-01 Thread David Smiley
quote: "The problem is that this includes children that DON’T touch the search area in the sum. How can I only include the shapes from the first query above in my sort?" Unless I'm misunderstanding your intent, I think this is a simple matter of adding the spatial filter to the parent join query y

Sorting results for spatial search

2018-01-31 Thread Leila Deljkovic
Hiya, So I have some nested documents in my index with this kind of structure: { "id": “parent", "gridcell_rpt": "POLYGON((30 10, 40 40, 20 40, 10 20, 30 10))", "density": “30" "_childDocuments_" : [ { "id":"child1", "gridcell_rpt":"MULTI

Sort for spatial search

2018-01-30 Thread Leila Deljkovic
Hiya, So I have some nested documents in my index with this kind of structure: { "id": “parent", "gridcell_rpt": "POLYGON((30 10, 40 40, 20 40, 10 20, 30 10))", "density": “30" "_childDocuments_" : [ { "id":"child1", "gridcell_rpt":"MULTI

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: Solr 7 spatial search and WKT

2018-01-17 Thread Leila Deljkovic
Hi Emir I’ve been following one of the only examples I could find on how to index a POLYGON, which does specify the field as multiValued: Configuration: schema.xml Index a polygon (JavaScript syntax around WKT): {"id":"1", "geo_rpt": "POLYGON((30 10, 10 20, 20 40, 40 40, 30 10))”} Indexing o

Re: Solr 7 spatial search and WKT

2018-01-17 Thread Emir Arnautović
Hi Leila, I haven’t been using spatial in a while and did not test this, but based on error, it seems that multivalue is not supported for this field type. Can you index a single MULTIPOLYGON? Why do you need to have multiple values? Can you flat your geometry to a single MULTIPOLYGON or MULTIGE

Solr 7 spatial search and WKT

2018-01-16 Thread Leila Deljkovic
Hi all, I need to index multiple POLYGONS/MULTIPOLYGONS per document; I’m trying to use multiValued RptWithGeometrySpatialField and I’m getting this error: Exception writing document id leila_test to the index; possible analysis error: DocValuesField "gridcell_rpt" appears more than once in thi

Spatial search - indexing WKT data

2018-01-14 Thread Leila Deljkovic
Hi, I have some data in WKT string format (either POLYGON or MULTIPOLYGON) and I’d like to index it in Solr 7.0. As there are multiple polygons in every WKT string, I’d ideally like to index them multiValued BBoxField (couldn’t find anywhere to confirm, but it looks like multiValued is a valid

Re: Spatial search (and nested docs)

2018-01-11 Thread Emir Arnautović
at puzzles me the most is “nested documents”. >> >> Thanks, >> Emir >> -- >> Monitoring - Log Management - Alerting - Anomaly Detection >> Solr & Elasticsearch Consulting Support Training - http://sematext.com/ >> >> >> >>> On 10 Ja

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

Spatial search, nested docs, feature density

2018-01-10 Thread Leila Deljkovic
Hi, https://lucene.apache.org/solr/guide/7_0/uploading-data-with-index-handlers.html#UploadingDatawithIndexHandlers-NestedChildDocuments I have never used neste

Re: Spatial search (and nested docs)

2018-01-10 Thread Leila Deljkovic
- > Monitoring - Log Management - Alerting - Anomaly Detection > Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > > > >> On 10 Jan 2018, at 04:15, Leila Deljkovic >> wrote: >> >> Hi, >> >> I’m quite new to Solr an

Re: Spatial search

2018-01-10 Thread Emir Arnautović
, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 10 Jan 2018, at 04:15, Leila Deljkovic > wrote: > > Hi, > > I’m quite new to Solr and am interested in using spatial search for &

Spatial search

2018-01-09 Thread Leila Deljkovic
Hi, I’m quite new to Solr and am interested in using spatial search for geospatial data (Solr 7.1). One problem is addressing feature density over a layer and using this to determine if a layer would be a relevant result over a search extent. I’d like to know is it feasible/possible to “split

Re: Spatial search with arbitrary rectangle?

2017-08-29 Thread David Smiley
or false. BTW sorry for my delayed response; I was on vacation. ~ David On Wed, Aug 23, 2017 at 11:21 AM Paweł Kordek wrote: > Hi All > > > I've been skimming through the spatial search docs and came across this > section: > > > > https://lucene.apache.org/solr/guide

Spatial search with arbitrary rectangle?

2017-08-23 Thread Paweł Kordek
Hi All I've been skimming through the spatial search docs and came across this section: https://lucene.apache.org/solr/guide/6_6/spatial-search.html#SpatialSearch-Filteringbyanarbitraryrectangle "Sometimes the spatial search requirement calls for finding everything in a rectan

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

2017-06-28 Thread David Smiley
> for d. >>> >>> though it sounds like havinga default d and gradual increments on its >> value >>> might be a work around for top K results... >>> >>> >>> >>> >>> >>> - >>> Zeki ama calismiyor... Calissa yapar... >>> -- >>> View this message in context: http://lucene.472066.n3. >>> nabble.com/Spatial-Search-based-on-the-amount-of-docs-not-the-distance- >>> tp4342108p4342258.html >>> Sent from the Solr - User mailing list archive at Nabble.com. >>> >>

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

2017-06-22 Thread Tim Casey
t; > > > though it sounds like havinga default d and gradual increments on its > value > > might be a work around for top K results... > > > > > > > > > > > > - > > Zeki ama calismiyor... Calissa yapar... > > -- > > View this

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

2017-06-21 Thread Erick Erickson
gt; might be a work around for top K results... > > > > > > - > Zeki ama calismiyor... Calissa yapar... > -- > View this message in context: http://lucene.472066.n3. > nabble.com/Spatial-Search-based-on-the-amount-of-docs-not-the-distance- > tp4342108p4342258.html > Sent from the Solr - User mailing list archive at Nabble.com. >

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

2017-06-21 Thread deniz
on its value might be a work around for top K results... - Zeki ama calismiyor... Calissa yapar... -- View this message in context: http://lucene.472066.n3.nabble.com/Spatial-Search-based-on-the-amount-of-docs-not-the-distance-tp4342108p4342258.html Sent from the Solr - User mailing list

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

2017-06-21 Thread alessandro.benedetti
return the top K you like. [1] https://cwiki.apache.org/confluence/display/solr/Spatial+Search - --- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director Sease Ltd. - www.sease.io -- View this message in context: http://lucene.472066.n3.nabble.com/Spa

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

2017-06-21 Thread deniz
I am trying to figure out if it is possible to have the spatial search limit itself based on the amount of docs rather than the distance... What I want is, sth like "closest XXX documents from point(x,y)" in dependent from "d" value in the query... would this need a custom

Re: why MULTILINESTRING can contains polygon in solr spatial search

2017-06-02 Thread David Smiley
the polygon ,even > contains. is this a bug? or repair it in advanced version? > > Geometry line = new WKTReader.read(the line wkt text string); > Geometry polygon= new WKTReader.read(the polygon wkt text string); > line.intersects(polygon);//return false > > > &g

why MULTILINESTRING can contains polygon in solr spatial search

2017-06-02 Thread kjdong
ESTRING-can-contains-polygon-in-solr-spatial-search-tp4338593.html Sent from the Solr - User mailing list archive at Nabble.com.

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
s for sure assuming you are using the latest Solr release (6.5.x). You said "Solr version 6.1.0" which doesn't have this field type though. ~ David On Thu, Apr 27, 2017 at 8:26 AM freddy79 wrote: > Hi, > > when doing a query with spatial search i get the error: can not

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-index

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
Hi, when doing a query with spatial search i get the error: can not use FieldCache on a field which is neither indexed nor has doc values: latitudeLongitude_0_coordinate *SOLR Version:* 6.1.0 *schema.xml:* *Query:* http://localhost:8983/solr/career_educationVacancyLocation/select?q=*:*&am

Re: Solr spatial search not returning any results in response element

2016-09-28 Thread Erick Erickson
Should be something like: 1125258 Mumgaon 26.3833,93.4833 1125259 Mummasar 28.2167,74.2833 Then just post it to Solr with post.jar. for testing, just to make things simple, I put the XML file in example/exampledocs/eoe.xml and issued the following from that directory. java -Du

Re: Solr spatial search not returning any results in response element

2016-09-28 Thread Zoomash Team
Hi, Thanks for your reply. What format should xml file be for data import? Will something like below be acceptable to my field definition? 1 Test 123,456 2 Test2 78,89 Thanks AA On 28 September 2016 at 18:38, Erick Erickson wrote: > First, nice job of posting enough inf

Re: Solr spatial search not returning any results in response element

2016-09-28 Thread Erick Erickson
First, nice job of posting enough information to define the problem and allow us to check something! Far too often it takes 3 back-and-forths to get enough info to say anything. Hmm, on the surface that looks OK. I tried using your field definitions, data and query and it works fine on my machine

Solr spatial search not returning any results in response element

2016-09-28 Thread Zoomash Team
down votefavorite <http://stackoverflow.com/questions/39739430/solr-spatial-search-not-returning-any-results-in-response-element#> I am using Solr version 6.2.1 and trying to return closest location for a given latitude and longitude. I have manage to add data into Solr and indexed it. M

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
13:09, Manohar Sripada wrote: Here's my requirement - User enters postal code and provides the radius. I need to find the records with in the radius from the provided postal code. There are few ways I thought through after going through the "Spatial Search" Solr wiki 1. As La

Re: Spatial Search on Postal Code

2016-03-04 Thread Manohar Sripada
da > wrote: > > > > Here's my requirement - User enters postal code and provides the > radius. I > > need to find the records with in the radius from the provided postal > code. > > > > There are few ways I thought through after going through the "Spatia

Re: Spatial Search on Postal Code

2016-03-04 Thread Manohar Sripada
ode. >> >> There are few ways I thought through after going through the "Spatial >> Search" Solr wiki >> >> 1. As Latitude and Longitude positions are required for spatial search. >> Get >> Latitude Longitude position (may be using GeoCoding API) of

Re: Spatial Search on Postal Code

2016-03-04 Thread Erik Hatcher
nters postal code and provides the radius. I > need to find the records with in the radius from the provided postal code. > > There are few ways I thought through after going through the "Spatial > Search" Solr wiki > > 1. As Latitude and Longitude positions are requir

Re: Spatial Search on Postal Code

2016-03-04 Thread Emir Arnautovic
find matches. HTH, Emir On 04.03.2016 13:09, Manohar Sripada wrote: Here's my requirement - User enters postal code and provides the radius. I need to find the records with in the radius from the provided postal code. There are few ways I thought through after going through the "Spat

Spatial Search on Postal Code

2016-03-04 Thread Manohar Sripada
Here's my requirement - User enters postal code and provides the radius. I need to find the records with in the radius from the provided postal code. There are few ways I thought through after going through the "Spatial Search" Solr wiki 1. As Latitude and Longitude positions a

Re: Solr Spatial search with self-intersecting polygons

2015-12-10 Thread david.w.smi...@gmail.com
repairBuffer0. I fixed the links in the ref guide which were recently made out of date, and I added a use of validationRule to the example: https://cwiki.apache.org/confluence/display/solr/Spatial+Search ~ David On Tue, Dec 8, 2015 at 1:04 AM Vishnu perumal wrote: > Hi, > > I’m using Solr 4.

Solr Spatial search with self-intersecting polygons

2015-12-07 Thread Vishnu perumal
Hi, I’m using Solr 4.10.2 with an up to date version of JTS and spatial4j. As field type in my schema.xml i’m using “location_rpt” like the description in the documentation. ( http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4#How_to_Use) location_rpt field type setup: My filter quer

Spatial Search: distance based boosting

2015-09-21 Thread Aman Tandon
Hi, Is there a way in solr to do the distance based boosting using Spatial RPT field? With Regards Aman Tandon

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

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

Spatial Search killing Solr process

2015-03-19 Thread Henrique O. Santos
Hello all, I have a Solr 4.10.3 collection with ~55 million documents (index size about 6GB) with a LatLonType field and a dynamic field for storing the coordinates, like stated here https://wiki.apache.org/solr/SpatialSearch#Schema_Configuration

Solr Spatial search with self-intersecting polygons

2015-02-24 Thread Prateek Sachan
Hi, I'm using Solr 4.10.3 As field type in my schema.xml. I'm using "location_rpt" like the description in the documentation. Everything works good and fine. I'm able to index points and include a POLYGON search in my query. However, it throws an exception in some cases where the Polygon in my

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

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

2014-07-22 Thread elisabeth benoit
Hello, I am using solr 4.2.1. I have the following use case. I should find results inside bbox OR if there is none, first result outside bbox within a 1000 km distance. I was wondering what is the best way to proceed. I was considering doing a geofilt search from the center of my bounding box an

Re: Doing spatial search on multiple location points

2014-03-18 Thread Smiley, David W.
Varun, You could use a function query involving “min” with a comma-separated list of geodist clauses. See https://cwiki.apache.org/confluence/display/solr/Spatial+Search “Boost Nearest Results”. You’d replace the geodist() in there with min(geodist(45.15,-93.85),geodist(50.2,22.3),…) (etc

Re: Doing spatial search on multiple location points

2014-03-18 Thread Varun Gupta
not km). > > ~ David > > On 3/17/14, 9:28 AM, "Varun Gupta" wrote: > > >Hi, > > > >I am trying to find out if solr supports doing a spatial search on > >multiple > >location points. Basically, while querying solr, I will be giving multiple >

Re: Doing spatial search on multiple location points

2014-03-17 Thread Smiley, David W.
INT(x y, x y, x y, x y), d) distErrPct=0" (whereas ‘d’ is distance in degrees, not km). ~ David On 3/17/14, 9:28 AM, "Varun Gupta" wrote: >Hi, > >I am trying to find out if solr supports doing a spatial search on >multiple >location points. Basically, while query

Doing spatial search on multiple location points

2014-03-17 Thread Varun Gupta
Hi, I am trying to find out if solr supports doing a spatial search on multiple location points. Basically, while querying solr, I will be giving multiple lat-long points and solr will be returning documents which are closer to any of the given points. If this is not possible, is there any way

Re: Issue with spatial search

2014-03-11 Thread David Smiley (@MITRE.org)
mailto:ml-node+s472066n4122855...@n3.nabble.com>> Date: Tuesday, March 11, 2014 at 9:45 AM To: "Smiley, David W." mailto:dsmi...@mitre.org>> Subject: Re: Issue with spatial search great.. that worked! What does distErrPct actually control, besides controlling the error per

Re: Issue with spatial search

2014-03-11 Thread Steven Bower
;javascript:;> > > >> > > > > > solr-user@.apache > > > <javascript:;>>" < > > > solr-user@.apache > > > <javascript:;> > >> <mailto: > > > solr-user@.apache > > > <javascript:;

Re: Issue with spatial search

2014-03-10 Thread David Smiley (@MITRE.org)
-user@.apache > <javascript:;>>> >> Date: Monday, March 10, 2014 at 4:23 PM >> To: " > solr-user@.apache > <javascript:;> > > > > solr-user@.apache > <javascript:;>>" < > solr-user@.apache > <javascript:

Re: Issue with spatial search

2014-03-10 Thread Steven Bower
rg >> > Date: Monday, March 10, 2014 at 4:23 PM > To: "solr-user@lucene.apache.org solr-user@lucene.apache.org >" > > <mailto:solr-user@lucene.apache.org >> > Subject: Re: Issue with spatial search > > Minor edit to the KML to adjust color of polyg

Re: Issue with spatial search

2014-03-10 Thread Smiley, David W.
.apache.org<mailto:solr-user@lucene.apache.org>" mailto:solr-user@lucene.apache.org>> Date: Monday, March 10, 2014 at 4:23 PM To: "solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org>" mailto:solr-user@lucene.apache.org>> Subject: Re: Issue wi

Re: Issue with spatial search

2014-03-10 Thread Steven Bower
, Mar 10, 2014 at 4:21 PM, Steven Bower wrote: > >> I am seeing a "error" when doing a spatial search where a particular >> point is showing up within a polygon, but by all methods I've tried that >> point is not within the polygon.. >> >> F

Re: Issue with spatial search

2014-03-10 Thread Steven Bower
Minor edit to the KML to adjust color of polygon On Mon, Mar 10, 2014 at 4:21 PM, Steven Bower wrote: > I am seeing a "error" when doing a spatial search where a particular point > is showing up within a polygon, but by all methods I've tried that point is > not within

Issue with spatial search

2014-03-10 Thread Steven Bower
I am seeing a "error" when doing a spatial search where a particular point is showing up within a polygon, but by all methods I've tried that point is not within the polygon.. First the point is: 41.2299,29.1345 (lat/lon) The polygon is: 31.2719,32.283 31.2179,32.3681

Re: Solr spatial search within the polygon

2014-03-10 Thread javinsnc
Ok David. I give it a shot. Thanks again! -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122647.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr spatial search within the polygon

2014-03-10 Thread David Smiley (@MITRE.org)
ucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122645.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr spatial search within the polygon

2014-03-10 Thread javinsnc
Could you please send me where I can find this .java? What do you refer by "Lucene-spatial module"? Thanks for your time David! -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122642.html Sent from the Solr - Us

Re: Solr spatial search within the polygon

2014-03-10 Thread David Smiley (@MITRE.org)
he > exact type for this field. I think Lucene index fields as String by > default, right? > > Thanks in advance! - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122641.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr spatial search within the polygon

2014-03-10 Thread javinsnc
index the field in Lucene? I need to know the exact type for this field. I think Lucene index fields as String by default, right? Thanks in advance! -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122640.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr spatial search within the polygon

2014-03-10 Thread Smiley, David W.
On 3/10/14, 12:56 PM, "javinsnc" wrote: >>> >>>/*/ >>>/* Document contents */ >>>/*/ >>>I have tried with 3 different content for my documents (lat-lon refers >>>to >>>Madrid, Spain): >> >> Um…. Just to be absolutely sure, are you adding the data in Solr’

Re: Solr spatial search within the polygon

2014-03-10 Thread javinsnc
3.732605 40.531415, >>-3.856201 40.336993, >>-3.493652 40.332806, >>-3.732605 40.531415 >>))) distErrPct=0" >> >>b) >>_Descripcion: This POLYGON (in WKT format, so "longitude latitude") is a >>rectangle out of Madrid, so my point would not be inside them. >>_Result: Query return 0 documents (which is correct). >> >>http://localhost:8983/solr/pisos22/select?q=*%3A*&; >>fl=LOCATION& >>wt=xml& >>indent=true& >>fq=LOCATION:"IsWithin(POLYGON(( >>-4.0594 40.8708, >>-4.0621 40.7211 , >>-3.8095 40.7127, >>-3.8232 40.8687, >>-4.0594 40.8708 >>))) distErrPct=0" >> >>***I also tried modifying the order of lat/lon but I am not able to find >>out >>the solution to make it work. > > The “x y” order looks good. “IsWithin” should work but if all your > indexed data is points then use “Intersects” which is much faster. > > As a sanity check can you simply do a {!geofilt} query with the “pt” set > to madrid and a hundred kilometers or whatever? > > I have tried {!geofilt pt=40.442179,-3.69278 sfield=LOCATION d=100} in FQ > and returned 0 docs :((( > > ~ David -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122623.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr spatial search within the polygon

2014-03-10 Thread Smiley, David W.
On 3/10/14, 12:12 PM, "Smiley, David W." wrote: >> >> >> >>c) I tried no WKT format by adding a comma and using "longitude,latitude" >> >> >> >> 40.442179,-3.69278 >> >> > >That is *wrong*. Remove the comma and it will then be okay. But again, >see my earlier advise on lat & lon

Re: Solr spatial search within the polygon

2014-03-10 Thread Smiley, David W.
On 3/10/14, 6:45 AM, "Javi" wrote: >Hi all. > >I need your help! I have read every post about Spatial in Solr because I >need to check if a point (latitude,longitude) is inside a Polygon. > >/**/ >/* 1. library */ >/**/ > >(1) I use "jts-1.13.jar" and "spatial4j-0.4.1.ja

Re: Solr spatial search within the polygon

2014-03-10 Thread Javi
Hi all. I need your help! I have read every post about Spatial in Solr because I need to check if a point (latitude,longitude) is inside a Polygon. /**/ /* 1. library */ /**/ (1) I use "jts-1.13.jar" and "spatial4j-0.4.1.jar" (I think they are the latest version) /*

Re: Solr spatial search within the polygon

2013-11-20 Thread Smiley, David W.
Dhanesh, > I'm pretty sure that the coordinates are in the right position. > "9.445890,76.540970" is in India, precisely in Kerala state :) My suspicion was wright; you have all of your latitudes and longitudes in the wrong position. Your example that I quote you on above is correct ("lat,lon"

Re: Solr spatial search within the polygon

2013-11-19 Thread Dhanesh Radhakrishnan
Hi David, Thank you for your reply This is my current schema and field type "location_rpt" is a SpatialRecursivePrefixTreeFieldType and Field "location" is a type "location_rpt" and its multiValued Whenever add a document to solr, I'll

Re: Solr spatial search within the polygon

2013-11-19 Thread Smiley, David W.
On 11/19/13 4:06 AM, "Dhanesh Radhakrishnan" wrote: >Hi David, >Thank you so much for the detailed reply. I've checked each and every lat >lng coordinates and its a purely polygon. >After some time I did one change in the lat lng indexing. >Changed the indexing format. > >Initially I indexed t

Re: Solr spatial search within the polygon

2013-11-19 Thread Dhanesh Radhakrishnan
Hi David, Thank you so much for the detailed reply. I've checked each and every lat lng coordinates and its a purely polygon. After some time I did one change in the lat lng indexing. Changed the indexing format. Initially I indexed the latitude and longitude separated by comma Eg:- "location":[

Re: Solr spatial search within the polygon

2013-11-18 Thread Smiley, David W.
en "Intersects" is much faster. IsWithin must look in all places outside your shape (in addition to inside) to attempt to ensure it doesn't include external data. ~ David On 11/15/13 1:36 AM, "Dhanesh Radhakrishnan" wrote: >Hi, >I'm experimenting with solr sp

Solr spatial search within the polygon

2013-11-14 Thread Dhanesh Radhakrishnan
Hi, I'm experimenting with solr spatial search, with plotting points in the map (Latitude and longitude) and based on the value I need to get the result. As the first step I've defined the filed type as And then added the field *location* as type *location_rpt* Indexed the locatio

Re: geo/spatial search performance comparison using different methods

2013-11-06 Thread Smiley, David W.
Any guesses would be wild ones, but I'm pretty sure you'll notice it, assuming the result size isn't trivially small. Also, LatLonType will use much less memory and be more real-time search friendly (i.e. Commit warming will be faster, assuming you do warming queries as everyone should do). To be

Re: geo/spatial search performance comparison using different methods

2013-11-06 Thread T. Kuro Kurosaka
Thank you, David. I believe the field doesn't need to be multivalued. Can you give me some idea how much query-time performance gain we can expect by switching to LatLonType from Solr-2155? On 11/06/2013 09:56 AM, Smiley, David W. wrote: Hi Kuro, I don't know of any benchmarks featuring distanc

Re: geo/spatial search performance comparison using different methods

2013-11-06 Thread Smiley, David W.
Hi Kuro, I don't know of any benchmarks featuring distance-sort performance. Presumably you are using SOLR-2155 because you have multi-valued spatial fields? If so, LatLonType is not an option. SOLR-2155 sorting performance is *probably* about the same as the equivalent in Solr 4 RPT. If you ac

geo/spatial search performance comparison using different methods

2013-11-05 Thread T. Kuro Kurosaka
Are there any performance comparison results available comparing various methods to sort result by distance (not just filtering) on Solr 3 and 4? We are using Solr 3.5 with Solr-2155 patch. I am particularly interested in learning performance difference among Solr 3 LatLongType, Solr-2155 GeoH

Re: Solr 4.5 spatial search - distance and score

2013-09-13 Thread David Smiley (@MITRE.org)
s a geohash type. > > Then, I'd like to know how it can be done today on 4.4 with {!geofilt} and > how it will be done on 4.5 using geodist() > > Thanks in advance. - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in co

Re: Solr 4.5 spatial search - distance and score

2013-09-13 Thread Bill Bell
ne today on 4.4 with {!geofilt} and > how it will be done on 4.5 using geodist() > > Thanks in advance. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-4-5-spatial-search-distance-and-score-tp4089706.html > Sent from the Solr - User mailing list archive at Nabble.com.

Solr 4.5 spatial search - distance and score

2013-09-12 Thread Weber
available again for this kind of field, which is a geohash type. Then, I'd like to know how it can be done today on 4.4 with {!geofilt} and how it will be done on 4.5 using geodist() Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-5-spa

Re: spatial search, geofilt does not work

2013-08-20 Thread David Smiley (@MITRE.org)
quot;author_geo":"34.991199,34.991199", >> > "geodist(author_geo,35,35)":1.2650756688780775}, >> > { >> > "author_geo":"34.991199,34.991199", >> > "geodist(author_geo,35,35)&quo

  1   2   3   >