天天看点

Lucene 7.5.0 构造IndexWriter对象(二)

构造一个IndexWriter对象的流程总体分为下面三个部分:

  • 设置索引目录Directory
  • 设置IndexWriter的配置信息IndexWriterConfig
  • 调用IndexWriter的构造函数

  在文章构造IndexWriter对象(一)中我们讲到了设置IndexWriter的配置信息IndexWriterConfig中不可配置的内容,接着我们继续介绍可配置的内容。

看这里:https://www.amazingkoala.com.cn/Lucene/Index/2019/1114/107.html

继续阅读