Quellcode durchsuchen

Hide .geoip_databases index (#72377)

Hidden index will no longer be target for wildcard (*) queries, this way we can avoid accidentally downloading huge amount of data
Przemko Robakowski vor 4 Jahren
Ursprung
Commit
e32a2f59b1

+ 1 - 0
modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/IngestGeoIpPlugin.java

@@ -166,6 +166,7 @@ public class IngestGeoIpPlugin extends Plugin implements IngestPlugin, SystemInd
                 .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1)
                 .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0)
                 .put(IndexMetadata.SETTING_AUTO_EXPAND_REPLICAS, "0-1")
+                .put(IndexMetadata.SETTING_INDEX_HIDDEN, true)
                 .build())
             .setOrigin("geoip")
             .setVersionMetaKey("version")