Added configurable value for maxThreadStates in lucene index