fix index xcontent flag with id

This commit is contained in:
Shay Banon 2012-12-29 00:46:35 -08:00
parent 9a8d558e51
commit 2655c2aa58
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ public class IdFieldMapper extends AbstractFieldMapper<String> 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);