From d73a459f1e87ee67d1e513812cbe607c40ae1661 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 27 Dec 2010 18:41:28 +0200 Subject: [PATCH] when parent mapping is set, fix setting routing to required --- .../elasticsearch/index/mapper/xcontent/RoutingFieldMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/RoutingFieldMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/RoutingFieldMapper.java index 06b326445de..29285df322a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/RoutingFieldMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/RoutingFieldMapper.java @@ -89,7 +89,7 @@ public class RoutingFieldMapper extends AbstractFieldMapper implements o } public void markAsRequired() { - this.required = required; + this.required = true; } @Override public boolean required() {