Package org.apache.lucene.gdata.search.config.IndexSchemaField

Examples of org.apache.lucene.gdata.search.config.IndexSchemaField.ContentType


     */
    public static ContentStrategy getFieldStrategy(IndexSchemaField fieldConfig) {
        if (fieldConfig == null)
            throw new IllegalArgumentException(
                    "field configuration must not be null");
        ContentType type = fieldConfig.getContentType();
        if (type == null)
            throw new IllegalArgumentException(
                    "ContentType in IndexSchemaField must not be null");
        fieldConfig.getAnalyzerClass();

View Full Code Here


        return this.strategy.createLuceneField();
    }

    private static ContentStrategy chooseStrategy(final String contentType,
            final IndexSchemaField config) {
        ContentType type = null;
        try {
            type = ContentType.valueOf(contentType==null?"TEXT":contentType.toUpperCase());
        } catch (Throwable e) {
            type = ContentType.TEXT;
        }
View Full Code Here

TOP

Related Classes of org.apache.lucene.gdata.search.config.IndexSchemaField.ContentType

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.