You need to override this method after calling super.updateDisplayList() if you're creating a custom layout, and then substitute the desired logic.
如果您正在创建定制布局,那么需要在调用 super.updateDisplayList() 之后覆盖该方法,然后替换为希望使用的逻辑。
After you add the documents to the index, don't forget to close the index by calling this method, which guarantees that the index changes are written to the disk.
当我们把文档添加到索引中后,不要忘记关闭索引,这样才保证Lucene把添加的文档写回到硬盘上。下面的一句代码演示了如何关闭索引。
应用推荐