use only one index for all the documents
added elastic search url for local environment
load the global variable for app config
fixed the method search