> For the complete documentation index, see [llms.txt](https://learnsql.gitbook.io/lernmysql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnsql.gitbook.io/lernmysql/de-xem-type-ok.md).

# Để xem type, để tìm type (ok)

Xem type

curl -XGET '<http://localhost:9200/product/_doc/1?pretty>'

Tìm type

```
curl -XPOST 'localhost:9200/product/_search?pretty' -H 'Content-Type: application/json' -d '
{
  "query": { "match_all": {} }
}'
Example:
curl -XPOST 'localhost:9200/ypvn-post-1/_search?pretty' -H 'Content-Type: application/json' -d ' { "query": { "match_all": {} } }'
```

![](/files/-MPqolaOYpykp68qd9Yz)
