IndexWriter lets users specify an optional index deletion policy.
IndexWriter允许用户指定可选索引删除策略。
IndexWriter exposes several fields that control how indices are buffered in the memory and written to disk.
IndexWriter公开了几个控制如何在内存中缓存索引并写入磁盘的字段。
IndexWriter creates a lock file for the directory to prevent index corruption by simultaneous index updates.
IndexWriter创建一个目录锁定文件,以通过同步索引更新保护索引不受破坏。
This statement creates an instance of the IndexWriter class, which is a key component in the indexing process.
这条语句创建了类IndexWriter的一个实例,该类也是Lucene索引机制里面的一个关键类。
It determines the minimum number of documents that have to be buffered in the RAM before IndexWriter writes them to disk.
它决定了内存中的文档数至少达到多少才能将它们写回磁盘。
The fourth line cleans up the index. IndexWriter physically deletes from the disk the documents that have been marked as deleted.
第4行对索引进行清理,清理过程中将把所有标记为删除的文档物理删除。
This function is passed the IndexWriter, which is the directory to start from and the file extension to match candidate files against.
此函数传递IndexWriter,即起始目录以及候选文件要匹配的文件扩展名。
Fortunately, Lucene's IndexWriter class exposes three parameters to let you adjust the size of the buffer and the frequency of the disk writes.
幸运的是,Lucene的类IndexWriter提供了三个参数用来调整缓冲区的大小以及往磁盘上写索引文件的频率。
Fortunately, Lucene's IndexWriter class exposes three parameters to let you adjust the size of the buffer and the frequency of the disk writes.
幸运的是,Lucene的类IndexWriter提供了三个参数用来调整缓冲区的大小以及往磁盘上写索引文件的频率。
应用推荐