Fixed a small issue to include needed parameters in the call to lucene from the internal API