From 2655c2aa58df53e055d59d383ccfa8241274741a Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sat, 29 Dec 2012 00:46:35 -0800 Subject: [PATCH] fix index xcontent flag with id --- .../org/elasticsearch/index/mapper/internal/IdFieldMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/mapper/internal/IdFieldMapper.java b/src/main/java/org/elasticsearch/index/mapper/internal/IdFieldMapper.java index a6ea07da41d..41ed3668116 100644 --- a/src/main/java/org/elasticsearch/index/mapper/internal/IdFieldMapper.java +++ b/src/main/java/org/elasticsearch/index/mapper/internal/IdFieldMapper.java @@ -324,7 +324,7 @@ public class IdFieldMapper extends AbstractFieldMapper implements Intern builder.field("store", fieldType.stored()); } if (fieldType.indexed() != Defaults.FIELD_TYPE.indexed()) { - builder.field("index", fieldType.indexed()); + builder.field("index", indexTokenizeOptionToString(fieldType.indexed(), fieldType.tokenized())); } if (path != Defaults.PATH) { builder.field("path", path);