From 622c03bb5e6143afc924df75b8a60aa8538b9037 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Fri, 21 Jun 2019 15:55:18 +1000 Subject: [PATCH] Add index.percolator.map_unmapped_fields_as_text index setting Relates: https://github.com/elastic/elasticsearch/pull/28060 --- .../IndexSettings/Settings/FixedIndexSettings.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Nest/IndexModules/IndexSettings/Settings/FixedIndexSettings.cs b/src/Nest/IndexModules/IndexSettings/Settings/FixedIndexSettings.cs index 854f4ce7b68..3f0a84356f6 100644 --- a/src/Nest/IndexModules/IndexSettings/Settings/FixedIndexSettings.cs +++ b/src/Nest/IndexModules/IndexSettings/Settings/FixedIndexSettings.cs @@ -9,5 +9,12 @@ public static class FixedIndexSettings public const string NumberOfRoutingShards = "index.number_of_routing_shards"; public const string NumberOfShards = "index.number_of_shards"; public const string RoutingPartitionSize = "index.routing_partition_size"; + + /// + /// If a field referred to in a percolator query does not exist, + /// it will be handled as a default text field so that adding the percolator query doesn't fail. + /// Defaults to false + /// + public const string PercolatorMapUnmappedFieldsAsText = "index.percolator.map_unmapped_fields_as_text"; } }