Relates to #18211 This reverts commit 20aafb1196.
20aafb1196
... and range, and terms...
This commit makes queries and filters parsed the same way using the QueryParser abstraction. This allowed to remove duplicate code that we had for similar queries/filters such as `range`, `prefix` or `term`.