Skip to content

no need for custom sort when sort by _score#4012

Closed
babadofar wants to merge 1 commit intoelastic:masterfrom
babadofar:fixSort
Closed

no need for custom sort when sort by _score#4012
babadofar wants to merge 1 commit intoelastic:masterfrom
babadofar:fixSort

Conversation

@babadofar
Copy link

This fixes #3973.
No tests or such, but it works for me ;)

@babadofar
Copy link
Author

I was about to add a test but I'm having a hard time finding any tests for the discover controller? What to do?

@rashidkpc
Copy link
Contributor

Yeah, test coverage for discover is pretty bad, we need to break that controller apart. Once we get a chance to repro #3973 we should be fine to merge this

@babadofar
Copy link
Author

So, the reasoning behind this is that when you sort by _score, there is no need to use the createHitSortFn function, as the results are already sorted. I'm no big fan of giving user options to sort score ascending myself, but, of course, we are all different people with our own personal point of view.

This may perhaps be related to #4111

@ghost
Copy link

ghost commented Jun 16, 2015

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then say 'jenkins, test it'.

@rashidkpc
Copy link
Contributor

@spalger with your recent work on _source sorting, is this still needed?

@spalger
Copy link
Contributor

spalger commented Jun 24, 2015

I think that @babadofar is right, #4111 will likely fix this. My recent work has been circling this but hasn't addressed this yet. On master I get this:
image

@spalger spalger assigned BigFunger and unassigned spalger Jun 24, 2015
@spalger spalger added the review label Jun 24, 2015
@spalger
Copy link
Contributor

spalger commented Jun 24, 2015

@BigFunger as you work on #4111 will you check if we do or don't need to add this?

@BigFunger BigFunger mentioned this pull request Jul 22, 2015
@BigFunger
Copy link
Contributor

Replaced by #4466

@BigFunger BigFunger closed this Jul 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discover tab should sort by score when index pattern doesn't contain time-based data

4 participants