Re: Lucene 5.3.0 GeoPointDistanceQuery

2015-09-21 Thread Pablo Mincz
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

Re: offsets of a term in a document

2015-09-21 Thread Alan Woodward
> > 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! > > > ---

offsets of a term in a document

2015-09-21 Thread Ziqi Zhang
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: