On Tue, Aug 25, 2009 at 2:52 PM, Anders Rask <anr...@gmail.com> wrote:

> Hi everyone,
>
> I have a question regarding the removal of documents from the doc list and
> set.
>
> I have created a SearchComponent for geo search which uses the new
> NumericRangeQuery
> in Lucene. In the prepare function it creates a query which only returns
> results located in
> a given long/lat box.
> What I would like to do now is to go through these results in the process
> function and remove
> all those that are not located within the circle given by the box.
>

Essentially you want to filter the results by the NumericRangeQuery that you
have created. You can just specify that query as a filter to searcher.search
method, no?

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to