Commit 4354aae
committed
feat(config): Allow sending
A few versions ago, Elasticsearch introduced an optimization where they
only approximate the total hit count for a query (max of 10,000).
It's of course nice to get better performance, but having hit count
information is also super useful to examine queries for our own
optimization.
This change allows us to enable the [`track_total_hits`](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search#operation-search-track_total_hits) flag on ES
queries, with the similar `api.track_total_hits` boolean in
`pelias.json`.track_total_hits with ES query1 parent 88146c0 commit 4354aae
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
0 commit comments