Elasticsearch 9 · Searching

Full-text search

Find documents whose name matches the text, ranked by relevance.

curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt "https://localhost:9200/products/_search?pretty" -H "Content-Type: application/json" -d '{"query":{"match":{"name":"laptop"}}}'

Official Elasticsearch 9 documentation

More searching commands

All searching commands · Elasticsearch 9 cheatsheet

Was this page helpful?