mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
The only usage of `MappedFieldType#extractTerm` comes from `SpanTermQueryBuilder` which attempts to extract a single term from a generic Query obtained from calling `MappedFieldType#termQuery`. We can move this logic directly within its only caller, and instead of using instanceof checks, we can rely on the query visitor API. This additionally allows us to remove one of the leftover usages of TermInSetQuery#getTermData which is deprecated in Lucene |
||
---|---|---|
.. | ||
src/javaRestTest/java/org/elasticsearch/upgrades | ||
build.gradle |