fix elasticsearchrelation and httprelation