simple-query-expansion

I would like to implement a simple query expansion in the elasticsearch environment. Assuming that the document is indexed, send a query using a bash script in the local where elasticsearch is installed and return the result