Commit b084119
authored
Lucene Query objects can hang around for longer than a single search,
for example as the key in a Query cache. This means that they should
not hold references to anything that is only expected to exist for the
duration of a single search request.
SourceConfirmedTextQuery holds a lambda to load data during query
execution. This commit changes one of the constructor calls to avoid
capturing unnecessary references to the SearchExecutionContext, an
object which is expected to be short-lived.
1 parent 207a425 commit b084119
File tree
2 files changed
+7
-2
lines changed- docs/changelog
- modules/mapper-extras/src/main/java/org/elasticsearch/index/mapper/extras
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
298 | 300 | | |
299 | | - | |
300 | | - | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
0 commit comments