Commit fd2a1d1
authored
Add pre-searcher creation hook in Engine (elastic#131633)
This adds a notifier method that offers access to the source and scope
of a searcher that we're about to create. This is useful so implementers
can reset stats based on the source and scope combination (the existing
acquireSearcherSupplier only offers access to the scope)1 parent 4468239 commit fd2a1d1
File tree
1 file changed
+5
-0
lines changed- server/src/main/java/org/elasticsearch/index/engine
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
956 | 959 | | |
957 | 960 | | |
958 | 961 | | |
| |||
971 | 974 | | |
972 | 975 | | |
973 | 976 | | |
| 977 | + | |
974 | 978 | | |
975 | 979 | | |
976 | 980 | | |
| |||
1023 | 1027 | | |
1024 | 1028 | | |
1025 | 1029 | | |
| 1030 | + | |
1026 | 1031 | | |
1027 | 1032 | | |
1028 | 1033 | | |
| |||
0 commit comments