add cleardb command to rake
add default value {} for query parameter
add get_mapping function to esclient
fix method call to findall
move test occurences in fixtures folder
modify hash that es can index it as a document