Allow index: "no" for _type

fixes #2696
This commit is contained in:
Shay Banon 2013-02-26 22:06:34 +01:00
parent 7c53d22ce9
commit 1e937fd5d1
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class TypeFieldMapper extends AbstractFieldMapper<String> implements Inte
builder.field("store", fieldType.stored()); builder.field("store", fieldType.stored());
} }
if (fieldType.indexed() != Defaults.FIELD_TYPE.indexed()) { if (fieldType.indexed() != Defaults.FIELD_TYPE.indexed()) {
builder.field("index", fieldType.indexed()); builder.field("index", indexTokenizeOptionToString(fieldType.indexed(), fieldType.tokenized()));
} }
builder.endObject(); builder.endObject();
return builder; return builder;