如何优化Solr索引 [英] How to optimize solr indexes
本文介绍了如何优化Solr索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行solr/admin页面时,我得到了此信息,它显示了optimize = true,但是我没有在配置文件中设置optimize = true,而不是它如何优化索引. 以及如何将其设置为false.
when i run solr/admin page i got this information, it shows optimize=true, but i have not set optimize=true in configuration file than how it is optimizing the indexes. and how can i set it to false then .
Schema Information
Unique Key: UID_PK
Default Search Field: text
numDocs: 2881
maxDoc: 2881
numTerms: 41960
version: 1309429290159
optimized: true
current: true
hasDeletions: false
directory: org.apache.lucene.store.SimpleFSDirectory:org.apache.lucene.store.SimpleFSDirectory@ C:\apache-solr-1.4.0\example\example-DIH\solr\db\data\index
lastModified: 2011-06-30T10:25:04.89Z
推荐答案
它没有说"optimize = true",或者说它将优化某些内容".它表示您的索引当前已优化.那就不同了,它仅描述了索引的当前状态.
It doesnt say "optimize = true" or that it will "optimize something". It says that your index is currently optimized. Thats a difference it describes only the current status of your index.
查找这种东西的最佳方法是:
The best way to lookup this kind of thing is:
- 插入几行
- 查找此值,它将显示为优化"
- 删除一行
- 再次查询该值,它会说未优化"
这篇关于如何优化Solr索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文