Package org.apache.lucene.index

Examples of org.apache.lucene.index.BlurIndexWriter.addDocument()


  }

  private void doWrite() throws CorruptIndexException, LockObtainFailedException, IOException {
    IndexWriterConfig conf = new IndexWriterConfig(Version.LUCENE_43, new KeywordAnalyzer());
    BlurIndexWriter writer = new BlurIndexWriter(directory, conf);
    writer.addDocument(getDoc());
    writer.close();
  }

  private Document getDoc() {
    return new Document();
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.