Package play

Examples of play.Configuration.asMap()


     * @param indexName
     */
    private void loadMappingFromConfig(String indexName) {
        Configuration mappingConfig = application.configuration().getConfig("elasticsearch." + indexName + ".mappings");
        if (mappingConfig != null) {
            Map<String, Object> mappings = mappingConfig.asMap();
            for (String indexType : mappings.keySet()) {
                IndexQueryPath indexQueryPath = new IndexQueryPath(indexName, indexType);
                if (mappings.get(indexType) instanceof String) {
                    indexMappings.put(indexQueryPath, (String) mappings.get(indexType));
                } else {
View Full Code Here


     * @param indexName
     */
    private void loadMappingFromConfig(String indexName) {
        Configuration mappingConfig = application.configuration().getConfig("elasticsearch." + indexName + ".mappings");
        if (mappingConfig != null) {
            Map<String, Object> mappings = mappingConfig.asMap();
            for (String indexType : mappings.keySet()) {
                IndexQueryPath indexQueryPath = new IndexQueryPath(indexName, indexType);
                if (mappings.get(indexType) instanceof String) {
                    indexMappings.put(indexQueryPath, (String) mappings.get(indexType));
                } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.