Package org.elasticsearch.index.codec.postingsformat

Examples of org.elasticsearch.index.codec.postingsformat.PostingsFormatProvider$Helper


        final FieldMappers indexName = mapperService.indexName(field);
        if (indexName == null) {
            logger.warn("no index mapper found for field: [{}] returning default postings format", field);
            return defaultPostingFormat;
        }
        PostingsFormatProvider postingsFormat = indexName.mapper().postingsFormatProvider();
        return postingsFormat != null ? postingsFormat.get() : defaultPostingFormat;
    }
View Full Code Here


            if (similarityProvider != null) {
                mapper.put("similarityPovider", similarityProvider.name());
                mapper.put("similarity", similarityProvider.get().getClass().getName() );
            }

            PostingsFormatProvider postingsFormatProvider = fieldMapper.postingsFormatProvider();
            if (postingsFormatProvider != null) {
                mapper.put("postingsFormatProvider", postingsFormatProvider.name());
                mapper.put("postingsFormat", postingsFormatProvider.get().getName());
            }

            m.put("mapper", mapper);
        }
        return m;
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.codec.postingsformat.PostingsFormatProvider$Helper

Copyright © 2018 www.massapicom. 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.