Commit edb23bd
committed
Skip old queries on search shards
Changes the `search_shards` api to skip sending unsupported queries,
instead sending `match_all` which should make it "fail open", returning
"this shard can match this query" for all unsupported queries.
This is *weird*, but it's useful for systems that build the query
internally inside of elasticsearch and can fall back to filtering
outside of lucene. Which is *exactly* what ESQL does.1 parent f2cf76f commit edb23bd
File tree
1 file changed
+11
-1
lines changed- server/src/main/java/org/elasticsearch/action/search
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
| |||
0 commit comments