+ helper function to create nested queries
+ function to perform edismax search