mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
intial support for pluggable type mappers
This commit is contained in:
parent
f560383b53
commit
b42245df53
@ -20,7 +20,7 @@
|
|||||||
package org.elasticsearch.index.mapper;
|
package org.elasticsearch.index.mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author kimchy (Shay Banon)
|
* @author kimchy (shay.banon)
|
||||||
*/
|
*/
|
||||||
public interface DocumentMapperParser {
|
public interface DocumentMapperParser {
|
||||||
|
|
||||||
|
@ -155,6 +155,10 @@ public class MapperService extends AbstractIndexComponent implements Iterable<Do
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DocumentMapperParser documentMapperParser() {
|
||||||
|
return this.documentParser;
|
||||||
|
}
|
||||||
|
|
||||||
public void add(String type, String mappingSource) {
|
public void add(String type, String mappingSource) {
|
||||||
add(documentParser.parse(type, mappingSource));
|
add(documentParser.parse(type, mappingSource));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user