Skip to content

Conversation

@carlosdelest
Copy link
Member

@carlosdelest carlosdelest commented Jul 19, 2022

Summary

As described in https://github.com/elastic/enterprise-search-team/issues/2292, precision parameter was being sent in precision tuning search preview when precision tuning was disabled:

Capture d’écran 2022-07-19 à 09 41 42

Solution is to avoid sending precision parameter to Search API when precision tuning is not enabled.

Checklist

…en precision tuning is not enabled for an Engine
};

const searchSettingsWithoutNewBoostProp = {
const { ['precision_enabled']: precisionEnabled, ...searchSettingsWithoutNewBoostProp } = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Check precision is being sent, but precision_enabled is not

searchSettings: {
searchField: {},
boosts: {},
precision: 7,
Copy link
Member Author

Choose a reason for hiding this comment

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

Check precision being sent to search

});
});

it("won't send precision on the API call if it is not enabled", async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Add test for precision not being sent

actions.setResultsLoading(true);

const filteredBoosts = removeEmptyValueBoosts(boosts);
const precisionSettings = values.isPrecisionTuningEnabled ? { precision } : {};
Copy link
Member Author

Choose a reason for hiding this comment

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

Actual fix (thanks @afoucret !): Do not send precision when precision tuning is not enabled

@carlosdelest carlosdelest marked this pull request as ready for review July 20, 2022 06:48
@carlosdelest carlosdelest requested a review from a team July 20, 2022 06:48
@carlosdelest carlosdelest added v8.4.0 Team:EnterpriseSearch release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting bug Fixes for quality problems that affect the customer experience labels Jul 20, 2022
@carlosdelest carlosdelest requested a review from efegurkan July 20, 2022 07:05
@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.5MB 1.5MB +39.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

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

lgtm!

@carlosdelest carlosdelest merged commit c43c827 into elastic:main Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants