Package fr.inra.lipm.jezlucene.cfg

Examples of fr.inra.lipm.jezlucene.cfg.Configuration


                    logger.debug("Too old file: {}", file.getName());
                    continue;
                }
            }

            final Configuration conf = new Configuration(this.parser);
            conf.addUserFields(this.userFields);
            conf.setFulltext(this.fulltext);
            final Parser myparser = new Parser(conf);
            final List<Document> documents = myparser.parse(file);

            for (final Document doc : documents) {
                logger.debug("Document " + doc.get(conf.getID()));
                final Term docid = new Term(conf.getID(), doc.get(conf.getID()));
                writer.updateDocument(docid, doc);
            }
        }
        writer.close();
    }
View Full Code Here

TOP

Related Classes of fr.inra.lipm.jezlucene.cfg.Configuration

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.