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

Sort by score #4466

Merged
merged 6 commits into from
Aug 11, 2015
Merged

Sort by score #4466

merged 6 commits into from
Aug 11, 2015

Conversation

BigFunger
Copy link
Contributor

This fixes #3973
This fixes #4111
This fixes #4538
Replaces PR #4012

When using segmented indexes, no score is returned. When sorting by _score, need to force the courier to only request a single segment for all data.

@BigFunger BigFunger added bug Fixes for quality problems that affect the customer experience review v4.2.0 labels Jul 22, 2015
@BigFunger BigFunger removed the bug Fixes for quality problems that affect the customer experience label Jul 22, 2015
* @param {number}
*/
SegmentedReq.prototype.setMaxSegments = function (maxSegments) {
this._maxSegments = _.parseInt(maxSegments);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we had a rule in jshint about adding base 10 to parseInt. In any event, you should do it.

Also, what happens when we set _maxSegments to 0?

@w33ble
Copy link
Contributor

w33ble commented Jul 24, 2015

I take issue with this closing #4111....

screenshot 2015-07-24 14 13 22

@w33ble w33ble assigned BigFunger and unassigned w33ble Jul 24, 2015
BigFunger added a commit that referenced this pull request Aug 11, 2015
@BigFunger BigFunger merged commit a96e14b into elastic:master Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants