Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr geofilt() query returns score as 1 all the time [DATASOLR-510] #627

spring-projects-issues opened this issue Mar 4, 2019 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Mar 4, 2019

Vigneshwaran opened DATASOLR-510 and commented

There is no way to add score=kilometers or score=miles in geodist query using spring-boot-data-solr. Without adding it, geodist query returns score as 1 always.

Please refer this URL for more details with query sample

Affects: 4.0.5 (Lovelace SR5)

Reference URL:

Copy link

@spring-projects-issues spring-projects-issues commented Mar 11, 2019

Christoph Strobl commented

Thanks for bringing that up - I've just pushed a branch that uses Metric from Distance#getMetric() to set the local score property for non Metric#NEUTRAL metrics.
One may use Metrics#MILES and Metrics#KILOMETERS out of the box or provide a custom Metric from which getAbbreviation() will be used for score. This allows to specify eg. distance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants