mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#881 - Split DocPropertyType.STRING into KEYWORD and TEXT ... for ElasticSearch 5.x support
This commit is contained in:
@@ -1386,12 +1386,12 @@ public class BeanProperty implements ElPropertyValue, Property {
|
||||
public void docStoreMapping(DocMappingBuilder mapping, String prefix) {
|
||||
|
||||
if (mapping.includesProperty(prefix, name)) {
|
||||
|
||||
DocPropertyType type = scalarType.getDocType();
|
||||
if (isKeywordType(type, docOptions)) {
|
||||
DocPropertyOptions options = docOptions.copy();
|
||||
if (isKeywordType(type, options)) {
|
||||
type = DocPropertyType.KEYWORD;
|
||||
}
|
||||
mapping.add(new DocPropertyMapping(name, type, docOptions));
|
||||
mapping.add(new DocPropertyMapping(name, type, options));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user