Thanks for the response.
Someone has an example on how to use a FunctionQuery in a
CustomScoreQuery with the haversin function?
Thanks!
Regards,
Pablo.
On Mon, Aug 24, 2015 at 7:40 PM, Uwe Schindler wrote:
> Hi,
>
> you can use the lucene-expressions module and use the distance function there
>
> The second question if where I should put in place of "???". The API says
> "pass a prior PostingsEnum for possible reuse", but I don't get how to create
> an instance of it.
You can just pass null.
Alan Woodward
www.flax.co.uk
>
> Many thanks!
>
>
> ---
Hi
Given a document in a lucene index, I would like to get a list of terms
in that document and their offsets. I suppose starting with
IndexReader.getTermVector can get me going with this. I have some code
as below (Lucene 5.3) of which I have some questions: