Types Exists

edit

Used to check if a type/types exists in an index/indices (available since 0.20).

curl -XHEAD 'http://localhost:9200/twitter/tweet'

The HTTP status code indicates if the type exists or not. A 404 means it does not exist, and 200 means it does.