Hi Lokesh

IIUC each document (like for example a shop description) has a longitude and a latitude associated with.

The user search input are some keywords and the the user's geo location.

The keywords you use to search for the documents and the users's geo location you would like to use for sorting the search results set, whereas the sorting would depend which locations are the nearest to the user's geo location.

Is this your use case?

Thanks

Michael

Am 03.04.22 um 20:12 schrieb Lokesh Mavale:
Hi Team,

I am little bit familiar with Lucene, and I have a problem statement in
hand to score each document based on the value of the field.

Value will be of type
GeoPoint {
Lat
  Long
}

And in the qry I will be getting other pair of lat, long and distance from
that lat long.
I have figured out on calculating distance of lat long on the basis of
input params
But I am having hard time in implementing such custom scoring function.
Any help / pointers/ examples / sample code snippets  will be
of great help.

Looking forward to hearing from you.

Thank you so much in advance!

Regards,
Lokesh



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to