DEV Community

Mallikarjun H T
Mallikarjun H T

Posted on

ES - Index API - part 4

Indices Stats

curl -X GET "localhost:9200/_stats?pretty"
Enter fullscreen mode Exit fullscreen mode

Indices Segments

curl -X GET "localhost:9200/test/_segments?pretty"

curl -X GET "localhost:9200/test/_segments?verbose=true&pretty"

Enter fullscreen mode Exit fullscreen mode

Indices Recovery

curl -X GET "localhost:9200/_recovery?human&pretty"

curl -X GET "localhost:9200/_recovery?human&detailed=true&pretty"

Enter fullscreen mode Exit fullscreen mode

Indices Shard Stores

# return information of only index test
curl -X GET "localhost:9200/test/_shard_stores?pretty"
# return information of only test1 and test2 indices
curl -X GET "localhost:9200/test1,test2/_shard_stores?pretty"
# return information of all indices
curl -X GET "localhost:9200/_shard_stores?pretty"

Enter fullscreen mode Exit fullscreen mode

Clear Cache

curl -X POST "localhost:9200/twitter/_cache/clear?pretty"
Enter fullscreen mode Exit fullscreen mode

Flush

curl -X POST "localhost:9200/twitter/_flush?pretty"

Enter fullscreen mode Exit fullscreen mode

Synced Flush

curl -X POST "localhost:9200/twitter/_flush/synced?pretty"

Enter fullscreen mode Exit fullscreen mode

Refresh

curl -X POST "localhost:9200/twitter/_refresh?pretty"

Enter fullscreen mode Exit fullscreen mode

Force Merge

curl -X POST "localhost:9200/twitter/_forcemerge?pretty"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)