Command
curl -X GET 'http://localhost:9200/my_index/_search?pretty' -H 'Content-Type: application/json' -d '{"query":{"match":{"name":"John"}}}'
Examples
Match query for users
curl -X GET 'http://localhost:9200/users/_search?pretty' -H 'Content-Type: application/json' -d '{"query":{"match":{"username":"alice"}}}'