-
Notifications
You must be signed in to change notification settings - Fork 802
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
How to use track_total_hits ? #1183
Comments
Ow I think I get it, I brain myself between elastic and elastic-dsl docs, it's in the basic one that track_total_hit is implemented, I'll try it tomorrow ^^ |
the proper solution is: s = Search()
s = s.extra(track_total_hits=True) Hope this helps! |
This should really be mentioned in the docs here (or somewhere else obvious). We spend much too much time wondering why we were only getting a max 10,000 hits |
@miff2000 I would accept a PR documenting this. |
@sethmlarson I've put in the PR mentioned above. I added under the Hits section instead as it's the hit total that's affected by it |
The
track_total_hits
is in ES 7, and so is in this lib doc, but I can’t figure out to use itThrows :
Super(Search,self).__init__(**kwargs)
got en unexpected keywordI think it’s because the super init has no kwargs and only 3 required param but how to use it so ?
The text was updated successfully, but these errors were encountered: