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

Search API: Return sort values per hit #305

Closed
kimchy opened this issue Aug 8, 2010 · 3 comments

Comments

@kimchy
Copy link
Member

commented Aug 8, 2010

Each search hit will now return the sort value(s) that was used for it.

@kimchy

This comment has been minimized.

Copy link
Member Author

commented Aug 8, 2010

implemented.

@otisg

This comment has been minimized.

Copy link

commented Aug 9, 2010

Sorry if this is an naive question, but why is that? Don't all hits for a single search result share the same sort value(s)? In other words, it's the search result that has all of its hits sorted a certain (same) way, no? Thanks.

@kimchy

This comment has been minimized.

Copy link
Member Author

commented Aug 9, 2010

Each search hit for a search request will have a different sort value, this allows to get those values as part of the response (and possibly display them). For example, in the geo_distance sort option, you would get the distane of each hit from the point provided.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.