lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "david.w.smiley@gmail.com" <david.w.smi...@gmail.com>
Subject Re: Lucene Spatial Question: Is there a primary and a secondary filter?
Date Thu, 02 Oct 2014 23:31:37 GMT
Hi Parth,

Since Lucene 4.7 spatial, there is a “SerializedDVStrategy” for serialized
geometries.  It’s used as a second-pass after RPT (or perhaps
BBoxStrategy).  There was a presentation at FOSS4G about it (I was there
and helped with this one too):
http://vimeo.com/106843184
There’s a small code sample in there.  It’s pretty easy to use.

This article I wrote is also relevant:
http://opensourceconnections.com/blog/2014/04/11/indexing-polygons-in-lucene-with-accuracy/
I’m hoping to have time after the new year to get to the optimization
referenced at the end, but who knows.

~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley

On Thu, Oct 2, 2014 at 12:47 PM, parth_n <nagarkar@asu.edu> 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 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 these regions)?
>
> I am trying to query Lucene such that only the primary filter results are
> returned. With this (since false positives are sometimes okay for faster
> query processing), I can avoid further I/O of accessing the data.
>
> Currently, I have the following code (which was written with the help of
> David Smiley -
>
> http://lucene.472066.n3.nabble.com/Lucene-Spatial-Question-How-to-efficiently-retrieve-all-results-within-a-bounding-box-td4140616.html
> ):
>
> SpatialArgs args = new SpatialArgs(SpatialOperation.Intersects,
> ctx.makeRectangle(minX, maxX, minY, maxY));
> Collector collector = new SimpleCollector();
> searcher.search(strategy.makeQuery(args), collector);
>
> Any reply is much appreciated!
>
> Thanks,
> Parth
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Lucene-Spatial-Question-Is-there-a-primary-and-a-secondary-filter-tp4162357.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message