Fix URL bug and add default configuration into Elasticsearch plugin