简体   繁体   English

Indexwriter类中的Forcemerge函数

[英]Forcemerge function in Indexwriter class

I wanted to know about a function in Solr3.5.0 in the IndexWriter class. 我想知道IndexWriter类中Solr3.5.0中的函数。 can anyone let me know what exactly the forceMerge() function does. 任何人都可以让我知道forceMerge()函数究竟是什么。 Does it optimize the segments? 它是否优化了细分市场?

Thanks, 谢谢,

Jeyaprakash Jeyaprakash

Yes, forceMerge is the successor of optimize . 是的, forceMergeoptimize的继承者。 There are two main reasons for this renaming: 这次重命名有两个主要原因:

  • Lucene multi-segment performance has increased a lot over the last years, Lucene多段业绩在过去几年中有了很大增长,
  • Giving a less cool name to this method will prevent users from thinking that this method does some kind of magic and that any index is sub-optimal until this method has been called. 给这个方法一个不太酷的名称将阻止用户认为这个方法有某种魔力,并且在调用此方法之前任何索引都是次优的。

You can read more about this renaming at https://issues.apache.org/jira/browse/LUCENE-3454 您可以在https://issues.apache.org/jira/browse/LUCENE-3454上阅读有关此重命名的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM