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:
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?
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
> 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
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
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
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
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
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
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
: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
: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
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
/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
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
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
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
>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
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
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
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
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
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
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
>
> 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
--
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
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
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
oreDoc s : scoreDocs)
> {
>Document doc = searcher.doc(s.doc);
>System.out.println(doc.get("id") + "\t" + doc.get("name"));
> }
>
>
>
>
> --
> View this message in context:
&
);
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
; 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
>
> >
> > 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
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
>>
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
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
48 matches
Mail list logo