weavejester/clucy — pull request #8 by babilen (2012-03-14 15:07:28+00:00)
Title: Update to Lucene 3.5.0

Hi,

the three commits essentially upgrades clucy to use Lucene 3.5.0. The most intrusive change is that the index is no longer a struct, but the actual index object. This is due to a change in Lucene 3.5.0 in that index optimization calls are discouraged. See [LUCENE-3454](https://issues.apache.org/jira/browse/LUCENE-3454) for a discussion of this change, which has been summarised in the release notes as:

"Renamed IndexWriter.optimize to forceMerge to discourage use of this method since it is horribly
costly and rarely justified anymore."

The index can still be manually "optimized" by calling forceMerge directly, which should probably be documented in the README. It might even make sense to introduce a wrapper function force-merge [index max-segments] around [IndexWriter.forceMerge]( http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/api/all/org/apache/lucene/index/IndexWriter.html#forceMerge(int)), but I haven't done that yet.

Thank you and may you have a nice day!