lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
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):
There’s a small code sample in there.  It’s pretty easy to use.

This article I wrote is also relevant:
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

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 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 -
> ):
> SpatialArgs args = new SpatialArgs(SpatialOperation.Intersects,
> ctx.makeRectangle(minX, maxX, minY, maxY));
> Collector collector = new SimpleCollector();
>, collector);
> Any reply is much appreciated!
> Thanks,
> Parth
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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