mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 17:39:15 +00:00
Support true|false for the 'store' parameter in mappings, closes #775.
This commit is contained in:
parent
6d108e77f1
commit
09006f17c3
@ -129,7 +129,12 @@ public class XContentTypeParsers {
|
||||
} else if ("yes".equals(store)) {
|
||||
return Field.Store.YES;
|
||||
} else {
|
||||
throw new MapperParsingException("Wrong value for store [" + store + "] for field [" + fieldName + "]");
|
||||
boolean value = nodeBooleanValue(store);
|
||||
if (value) {
|
||||
return Field.Store.YES;
|
||||
} else {
|
||||
return Field.Store.NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user