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

WAND optimization with a numeric track_total_hits parameter #2976

Closed
apavlychev opened this issue Dec 14, 2023 · 0 comments · Fixed by #2977
Closed

WAND optimization with a numeric track_total_hits parameter #2976

apavlychev opened this issue Dec 14, 2023 · 0 comments · Fixed by #2977

Comments

@apavlychev
Copy link
Contributor

apavlychev commented Dec 14, 2023

Hello!
How to set track_total_hits equal a numeric value (100) via elastic4s in a case WAND optimization.

GET my-index-000001/_search
{
  "track_total_hits": 100,
  "query": {
    "match": {
      "user.id": "elkbee"
    }
  }
}

P.S. materials
https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-your-data.html#track-total-hits
https://www.elastic.co/blog/faster-retrieval-of-top-hits-in-elasticsearch-with-block-max-wand

@apavlychev apavlychev changed the title WAND optimization with numeric track_total_hits parameter WAND optimization with a numeric track_total_hits parameter Dec 14, 2023
apavlychev added a commit to apavlychev/elastic4s that referenced this issue Dec 18, 2023
sksamuel pushed a commit that referenced this issue Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant