support for backward compatibility issue on addIndexNoOptimize

Description

For Lucene version 3.1 and above, addIndexNoOptimize method has been changed to addIndex, and maybeMerge needs to be called explicitly. We need to handle this case:

https://issues.apache.org/jira/browse/LUCENE-2455

Environment

None

Status

Assignee

John Wang

Reporter

John Wang

Labels

None

Fix versions

Priority

Major
Configure