The second filter simply matches any document with the name of
index.html, completely ignoring the id term that has been added. I
understand that this syntax is incorrect, but unfortunately it's quite
easy to create these filters using the Java API.
Is there any way to either validate a query/filter for 'correctness',
or a setting in ES that will cause these filters/queries to just fail?
What should I do to prevent developers that I am working with from
doing this?
Both are valid formats and works: gist:2643463 · GitHub. The Java
API has statically typed builders for queries and filters, and there is
validity checks on queries and filters.
The second filter simply matches any document with the name of
index.html, completely ignoring the id term that has been added. I
understand that this syntax is incorrect, but unfortunately it's quite
easy to create these filters using the Java API.
Is there any way to either validate a query/filter for 'correctness',
or a setting in ES that will cause these filters/queries to just fail?
What should I do to prevent developers that I am working with from
doing this?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.