Sent parameters into elasticsearch class instead of breaking them up beforehand.
Created different queries for explorer depending on the endpoint being queried.