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

Default search params for ignore_unavailable and rest_total_hits_as_int #50953

Merged
merged 9 commits into from
Nov 26, 2019

Conversation

lukasolson
Copy link
Member

Summary

Adds defaults to the new search service:

  • ignore_unavailable: true, so search requests against missing indices return an empty result rather than failing
  • rest_total_hits_as_int: true, so that the total number of hits is returned as a number rather than a range

See https://www.elastic.co/guide/en/elasticsearch/reference/7.4/search-search.html for a description of these Elasticsearch parameters.

Checklist

@lukasolson lukasolson added Feature:Search Querying infrastructure in Kibana v8.0.0 Team:AppArch release_note:skip Skip the PR/issue when compiling release notes v7.6.0 labels Nov 18, 2019
@lukasolson lukasolson requested a review from a team as a code owner November 18, 2019 18:58
@lukasolson lukasolson self-assigned this Nov 18, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@stacey-gammon stacey-gammon left a comment

Choose a reason for hiding this comment

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

code review only, LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@lukasolson lukasolson merged commit 320fa5a into elastic:master Nov 26, 2019
lukasolson added a commit to lukasolson/kibana that referenced this pull request Nov 26, 2019
…nt (elastic#50953)

* Default search params for ignore_unavailable and rest_total_hits_as_int

* Update code with options arg

* Fix filter matches index for filters with partial meta

* Fix tests
@lukasolson
Copy link
Member Author

7.x (7.6.0): 3b1e06f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants