hasUncommittedChanges

Returns true if there may be changes that have not been committed. There are cases where this may return true when there are no actual "real" changes to the index, for example if you've deleted by Term or Query but that Term or Query does not match any documents. Also, if a merge kicked off as a result of flushing a new segment during .commit, or a concurrent merged finished, this method may return true right after you had just called .commit.