AW: Lucene Spatial: sort by best fit

2015-04-01 Thread Simon Rainer
oo, thanks! Cheers, Rainer Von: david.w.smi...@gmail.com [david.w.smi...@gmail.com] Gesendet: Mittwoch, 01. April 2015 21:51 An: java-user@lucene.apache.org Betreff: Re: Lucene Spatial: sort by best fit On Wed, Apr 1, 2015 at 3:21 PM, Simon Rainer wrote:

Re: Lucene Spatial: sort by best fit

2015-04-01 Thread david.w.smi...@gmail.com
it must calculate the center-point from twice as many values 2 -> 4). p.s. I’ve seen your code that uses Lucene spatial on GitHub (our friend Bruce pointed me at it) and commented on a commit but I haven’t seen a response from you. Perhaps you don’t have notifications set up to alert you?

AW: Lucene Spatial: sort by best fit

2015-04-01 Thread Simon Rainer
etreff: Re: Lucene Spatial: sorg by best fit Hi Rainer, The BBoxStrategy is pretty close to this. It does assume indexed rectangles and not other shapes, and it’s limited to one rect value per field, but perhaps this is fine for you nonetheless? See the makeOverlapRatioValueSource() method. If th

Re: Lucene Spatial: sorg by best fit

2015-04-01 Thread david.w.smi...@gmail.com
> I'm trying to implement sorting by 'best fit' in Lucene spatial. I.e. I > want to query my index for documents that intersect a query rectangle, and > get my results sorted by the amount overlap between the query rectangle and > the document shape. I was wondering whether t

Lucene Spatial: sorg by best fit

2015-04-01 Thread Simon Rainer
Hi, I'm trying to implement sorting by 'best fit' in Lucene spatial. I.e. I want to query my index for documents that intersect a query rectangle, and get my results sorted by the amount overlap between the query rectangle and the document shape. I was wondering whether this is

AW: Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-26 Thread Simon Rainer
f: AW: Can't get distance sorting to work in Lucene Spatial 4.10.3 Hi David, thanks for these hints! Unfortunately that didn't change anything yet. I made the fixes that you suggested: val queryPoint = spatialCtx.makePoint(lon, lat) val args = new SpatialArgs(SpatialOpe

AW: Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-25 Thread Simon Rainer
ail.com [david.w.smi...@gmail.com] Gesendet: Mittwoch, 25. Februar 2015 16:25 An: java-user@lucene.apache.org Betreff: Re: Can't get distance sorting to work in Lucene Spatial 4.10.3 Hi Rainer, I see two issues. One is that you call makePoint with latitude (Y) then longitude (X). Spatial4j is X

Re: Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-25 Thread david.w.smi...@gmail.com
still a bug, perhaps start with the SpatialExample.java in a working state and iteratively modify it to work how you want it to, testing each time that the sort works. ~ David On Wed, Feb 25, 2015 at 7:18 AM, Simon Rainer wrote: > Hi! > > I have problems getting distance sorting

Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-25 Thread Simon Rainer
Hi! I have problems getting distance sorting to work in Lucene Spatial. (I'm using v4.10.3.) I'm following the SpatialExample.java from the Lucene docs. My code is below (it's Scala, but translates 1:1 into Java). When I run the query, results don't seem to be affected b

Re: Lucene Spatial Implementation for Points within Polygon.

2014-12-24 Thread david.w.smi...@gmail.com
gon which is present(boundaries intersecting,incomplete), I am printing > exception which is again I am excluding.. This is not the worry.. > > Worry is I am getting very polygons which actually have points inside them. > > Please correct me where I am going wrong. > > > -Ori

RE: Lucene Spatial Implementation for Points within Polygon.

2014-12-24 Thread Ankit.Murarka
:david.w.smi...@gmail.com] Sent: 22 December 2014 19:19 To: java-user@lucene.apache.org Subject: Re: Lucene Spatial Implementation for Points within Polygon. Hello. You have stated the use-case so generically that it’s not clear if you should index the polygon set and query by the point set, or the

Re: Distance between 2 points Lucene Spatial

2014-12-22 Thread david.w.smi...@gmail.com
:david.w.smi...@gmail.com] > Sent: 22 December 2014 19:33 > To: java-user@lucene.apache.org > Subject: Re: Distance between 2 points Lucene Spatial > > Hi Ankit, > > Vincenty is the most accurate one — it is the benchmark for the other 2’s > tests for the true answer. In theo

RE: Distance between 2 points Lucene Spatial

2014-12-22 Thread Ankit.Murarka
December 2014 19:33 To: java-user@lucene.apache.org Subject: Re: Distance between 2 points Lucene Spatial Hi Ankit, Vincenty is the most accurate one — it is the benchmark for the other 2’s tests for the true answer. In theory it produces the same answers as the other 2 simpler formulas you mention

Re: Distance between 2 points Lucene Spatial

2014-12-22 Thread david.w.smi...@gmail.com
/Solr Search Consultant/Developer http://www.linkedin.com/in/davidwsmiley On Mon, Dec 22, 2014 at 12:35 AM, wrote: > > Dear All, > > We are using lucene spatial strategy to find out the distance between a > pair of Lat/Long. > > Given a pair of Lat/Long I need to find the near

Re: Lucene Spatial Implementation for Points within Polygon.

2014-12-22 Thread david.w.smi...@gmail.com
om/in/davidwsmiley On Mon, Dec 22, 2014 at 12:30 AM, wrote: > > Hello Team, > > We are starting off with Lucene Spatial implementation for some of the use > cases: > > A . Given "N" polygons and "M" points, find how many points lie inside > each of the

Distance between 2 points Lucene Spatial

2014-12-21 Thread Ankit.Murarka
Dear All, We are using lucene spatial strategy to find out the distance between a pair of Lat/Long. Given a pair of Lat/Long I need to find the near accurate distance between these 2 points. I have used Haversine, LawOfCosines and Vincernity however unable to decide which will provide the

Lucene Spatial Implementation for Points within Polygon.

2014-12-21 Thread Ankit.Murarka
Hello Team, We are starting off with Lucene Spatial implementation for some of the use cases: A . Given "N" polygons and "M" points, find how many points lie inside each of the polygon. 1st Approach : For A, we indexed Polygons using WKT and using JtsSpatial strategy. I

Re: Lucene spatial for grid clusters

2014-11-06 Thread david.w.smi...@gmail.com
>From an API standpoint, I envision you would supply a rectangular region of interest and some means of specifying the resolution. It could be the so-called “grid level” in lucene spatial (1 is biggest most coarsest, larger numbers yield progressively smaller cells), or it might be expressed

Re: Lucene spatial for grid clusters

2014-11-06 Thread Shahak Nagiel
Thanks, David. In the meantime, care to share any thoughts about your planned implementation? On Thursday, November 6, 2014 8:11 AM, "david.w.smi...@gmail.com" wrote: FYI I plan to implement this in Lucene-spatial & Solr in January. ~ David Smiley Freelance Apache Luce

Re: Lucene spatial for grid clusters

2014-11-06 Thread david.w.smi...@gmail.com
FYI I plan to implement this in Lucene-spatial & Solr in January. ~ David Smiley Freelance Apache Lucene/Solr Search Consultant/Developer http://www.linkedin.com/in/davidwsmiley On Wed, Nov 5, 2014 at 10:52 PM, Shahak Nagiel wrote: > I need a way to perform a spatial aggregation query

Re: Lucene spatial for grid clusters

2014-11-05 Thread Uwe Schindler
Hi, If you would index additional grid ids for the bins, you could facet on them. To me, Elasticsearch's Aggregation Module may also be a good fit. Uwe Am 6. November 2014 04:52:10 MEZ, schrieb Shahak Nagiel : >I need a way to perform a spatial aggregation query against a >potentially large do

Lucene spatial for grid clusters

2014-11-05 Thread Shahak Nagiel
I need a way to perform a spatial aggregation query against a potentially large document store in order to display summary clusters on a map. The query would slice the current map extents (e.g. -180,-90,180,90) into a number of X and Y bins (e.g. 20 x 16) and, for each, seek a summary count, so

Re: Lucene Spatial Question: Is there a primary and a secondary filter?

2014-10-02 Thread david.w.smi...@gmail.com
Freelance Apache Lucene/Solr Search Consultant/Developer http://www.linkedin.com/in/davidwsmiley On Thu, Oct 2, 2014 at 12:47 PM, parth_n wrote: > Hi everyone, > > I have a Lucene Spatial code where I query (bounding box) the given data. > Does Lucene have a primary and a secondary

Lucene Spatial Question: Is there a primary and a secondary filter?

2014-10-02 Thread parth_n
Hi everyone, I have a Lucene Spatial code where I query (bounding box) the given data. Does Lucene have a primary and a secondary filter (like MS SQL or PostGIS) (where the primary filter returns the regions in the index to be looked at, and the secondary filter removes the false positives in

Re: Lucene Spatial Question: Is a tree structure explicitly created in the QuadPrefixTree implementation?

2014-10-01 Thread david.w.smi...@gmail.com
> > Parth > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lucene-Spatial-Question-Is-a-tree-structure-explicitly-created-in-the-QuadPrefixTree-implementation-tp4162038

Lucene Spatial Question: Is a tree structure explicitly created in the QuadPrefixTree implementation?

2014-09-30 Thread parth_n
-- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-Spatial-Question-Is-a-tree-structure-explicitly-created-in-the-QuadPrefixTree-implementation-tp4162038.html Sent from the Lucene - Java Users mailing list archive at Nabble.com

Re: Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-08 Thread david.w.smi...@gmail.com
d SimpleCollector in the source code but > couldn't find them. Am I missing something? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lucene-Spatial-Question-How-to-efficiently-retrieve-all-results-within-a-bounding-box-tp4140616p4140673.html

Re: Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-08 Thread parth_n
e.com/Lucene-Spatial-Question-How-to-efficiently-retrieve-all-results-within-a-bounding-box-tp4140616p4140673.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user-uns

Re: Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-08 Thread david.w.smi...@gmail.com
oreDoc s : scoreDocs) > { >Document doc = searcher.doc(s.doc); >System.out.println(doc.get("id") + "\t" + doc.get("name")); > } > > > > > -- > View this message in context: &

Lucene Spatial Question: How to retrieve all results within a bounding box?

2014-06-07 Thread parth_n
); ScoreDoc[] scoreDocs = topDocs.scoreDocs; for (ScoreDoc s : scoreDocs) { Document doc = searcher.doc(s.doc); System.out.println(doc.get("id") + "\t" + doc.get("name")); } -- View this message in context: http://lucene.472066.n3.nabble.com/

How to use Lucene-spatial

2013-10-23 Thread Smiley, David W.
Hi folks, If anyone reading this is interested in how to use the spatial module in Lucene, you might be interested in a recent two-part blog post by Steven Citron-Pousty on the OpenShift blog: https://www.openshift.com/blogs/free-text-and-spatial-search-with-spatial4j-and-lucene-spatial https

Re: question re lucene spatial toolkit aka LSP aka spatial4j

2012-08-08 Thread David Smiley (@MITRE.org)
I responded to the solr-user thread. - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/question-re-lucene-spatial-toolkit-aka-LSP-aka-spatial4j-tp3999889p425.html Sent from the Lucene

question re lucene spatial toolkit aka LSP aka spatial4j

2012-08-08 Thread solr-user
Hi all. I tried posting this in the Solr users group but didnt get any replies so thought I would try the Lucene group. hopefully someone is using the lucene spatial toolkit aka LSP aka spatial4j, and can answer this question we are using this spatial tool for doing searches. overall, it seems

[Lucene Spatial] Issues with CartesianPolyFilterBuilder.getShapeLoop

2012-01-20 Thread quinton olivier
Hi, I 'm currently working in integrating lucene spatial into the search engine of my customer but I'm facing a problem : If I ask to CartesianPolyFilterBuilder.getShapeLoop the list of areas covering the following bounding box { 45.71342*-0.7 ; 45.71346*0.00096 } (a portion

Lucene Spatial Search Problem: search radius threshold?

2011-04-22 Thread Namyong Park
Hello, I am trying to add spatial search functionality to my application, but having a trouble regarding lucene's spatial search. It's very simple functionality: searching all items within given radius from given starting point. My current starting location is 37.504602,127.049031. When I set

Re: Lucene Spatial Search Problem: search radius threshold?

2011-04-22 Thread 박남용
stances.size()); assertEquals(expected[x], results); for(int i =0 ; i < results; i++){ Document d = hits.doc(i); String name = d.get("name"); double rsLat = NumericUtils.prefixCodedToDouble(d.get(latField)); double rsLng = NumericUtils.prefixCodedToDouble(d.get(lngField)); Double

Lucene Spatial Search Problem: search radius threshold?

2011-04-22 Thread 박남용
Hello, I am trying to add spatial search functionality to my application, but having a trouble regarding lucene's spatial search. It's very simple functionality: searching all items within given radius from given starting point. My current starting location is 37.504602,127.049031. When I set se

Re: Lucene Spatial

2010-03-30 Thread Guillermo Payet
ger there either. What replaces it? Thanks. --G On Tue, Mar 30, 2010 at 03:48:13PM -0400, Grant Ingersoll wrote: > Hi Guillermo, > > I think you will find that Lucene Spatial is going under a significant > rewrite in the coming weeks, so I'm hesitant to recommend you u

Re: Lucene Spatial

2010-03-30 Thread Grant Ingersoll
Hi Guillermo, I think you will find that Lucene Spatial is going under a significant rewrite in the coming weeks, so I'm hesitant to recommend you upgrading to it at this point in time. That being said, the concepts behind Lucene Spatial and LocalLucene aren't all that different, so

Re: Lucene Spatial

2010-03-30 Thread Guillermo Payet
I had seen those, but they don't quite help on our problem of migrating from LocalLucene 2.0 to Lucene Spatial. We don't use Solr. Thanks though. Anybody using Lucene Spatial, without Solr, wanting to share some code for a basic geographical search? --G On Tue, Mar 30, 201

Re: Lucene Spatial

2010-03-30 Thread Isabel Drost
On Sat Guillermo Payet wrote: > Maybe point me to some docs? Is there any sample > code for a basic lucene search using it? A quick Google search for lucene spatial revealed the following articles: http://www.nsshutdown.com/projects/lucene/whitepaper/locallucene_v2.html http://blog.jt

Lucene Spatial

2010-03-27 Thread Guillermo Payet
Hello, We've been using locallucene for years and years in our search engine of family farms: http://www.localharvest.org/ We'd like to upgrade Lucene to 3.0.1, which also means migrating from locallucene to lucene-spatial. However, Lucene spatial seems very different from localluc

Re: LocalLucene/Lucene Spatial

2009-04-20 Thread patrick o'leary
Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > -Original Message- > > From: patrick o'leary [mailto:pj...@pjaol.com] > > Sent: Monday, April 20, 2009 3:33 AM > > To: java-user@lucene.apach

RE: LocalLucene/Lucene Spatial

2009-04-20 Thread Uwe Schindler
; From: patrick o'leary [mailto:pj...@pjaol.com] > Sent: Monday, April 20, 2009 3:33 AM > To: java-user@lucene.apache.org > Subject: Re: LocalLucene/Lucene Spatial > > 1) The only reason for ConstantScoreQuery is because it lets me convert > the > LocalLucene filter to a query

Re: LocalLucene/Lucene Spatial

2009-04-19 Thread patrick o'leary
> > > > > On Mar 18, 2009, at 12:05 PM, Jamie Johnson wrote: > > > > I am working on a project that is already using Lucene (through > Hibernate > >> Search) to perform full text queries and have since come across several > >> sites with information abo

Re: LocalLucene/Lucene Spatial

2009-04-19 Thread John Wang
2009, at 12:05 PM, Jamie Johnson wrote: > > I am working on a project that is already using Lucene (through Hibernate >> Search) to perform full text queries and have since come across several >> sites with information about LocalLucene/Lucene Spatial. I was wondering >>

Re: LocalLucene/Lucene Spatial

2009-03-18 Thread Grant Ingersoll
Lucene (through Hibernate Search) to perform full text queries and have since come across several sites with information about LocalLucene/Lucene Spatial. I was wondering if there was a timeline for having this work implemented that anyone was aware of

LocalLucene/Lucene Spatial

2009-03-18 Thread Jamie Johnson
I am working on a project that is already using Lucene (through Hibernate Search) to perform full text queries and have since come across several sites with information about LocalLucene/Lucene Spatial. I was wondering if there was a timeline for having this work implemented that anyone was aware