Package org.apache.lucene.gdata.search.analysis

Examples of org.apache.lucene.gdata.search.analysis.ContentStrategy


        int addedFields = 0;
        for (IndexSchemaField field : fields) {
            /*
             * get the strategy to process the field
             */
            ContentStrategy strategy = ContentStrategy.getFieldStrategy(field);
            if (LOG.isInfoEnabled())
                LOG.info("Process indexable for " + field);
            try {
                /*
                 * get the indexable via the factory method to enable new /
                 * different implementation of the interface (this could be a
                 * faster dom impl e.g. dom4j)
                 */
                strategy.processIndexable(Indexable.getIndexable(this.entry));
                addedFields++;
            } catch (NotIndexableException e) {
                LOG.warn("Can not create field for " + field+" field will be skipped -- reason: ", e);
                continue;
            }
View Full Code Here

TOP

Related Classes of org.apache.lucene.gdata.search.analysis.ContentStrategy

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.