To ES community,
I have a large org to support where newbie users issue random/ adhoc
queries across all indexes and fields slowing down the server. While we
are working on ramping up the storage etc -- i feel the need to restrict
queries unless it is well defined. A well defined query would be the one
which specifies and index(1) and a field name (2).
Requrement to restrict queries based on Index name (1) is captured in ER: https://github.com/elastic/elasticsearch/issues/6470
For restricting queries based on field name (2), the way i understand, i
can use "index.query.default_field" to point to insignificant column. This
forces users to write correct queries for meaningful result. Would this
approach work? Cons?
Details:
To try (2), i queried template on my instance but i do not see the
parameter "index.query.default_field". Below is the command i execute.
curl -XGET 'localhost:9200/_template?pretty'
To ES community,
I have a large org to support where newbie users issue random/ adhoc
queries across all indexes and fields slowing down the server. While we
are working on ramping up the storage etc -- i feel the need to restrict
queries unless it is well defined. A well defined query would be the one
which specifies and index(1) and a field name (2).
Requrement to restrict queries based on Index name (1) is captured in ER: Disable searching across all indices · Issue #6470 · elastic/elasticsearch · GitHub
For restricting queries based on field name (2), the way i understand, i
can use "index.query.default_field" to point to insignificant column.
This forces users to write correct queries for meaningful result. Would
this approach work? Cons?
Details:
To try (2), i queried template on my instance but i do not see the
parameter "index.query.default_field". Below is the command i execute.
curl -XGET 'localhost:9200/_template?pretty'
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.