Module to test the complexity of a lucene query and replace field names based on a mapping object.