Simple tool to check the accuracy of elasticsearch query results.
go get -u github.com/rodrigo-brito/elasticsearch-query-test
Usage:
elasticsearch-query-test [flags]
Flags:
-e, --expectation string expectation file eg. dir/custom_expect.csv (default "expectations.csv")
-u, --url string search base url eg. http://myhost.com/search (default "http://localhost")
-
Fill the
expectations.csv
file with test casessearch_term
: input search termresult_field
: source field that the result will be comparedresult_value
: expected result valueresult_position
: expected position of the resultdescription
: (optional) description of the expected result