cleanup unused term factory
cleanup more calls to Term with String value
move regex to use Object as paramater as well
remove unused method
cleanup
optimize search hit to use Text for type and id
this will reduce serialization string overheads, and faster xcontent(json) generation
Use `ES_CLASSPATH` in the plugin script