Skip to content

Instantly share code, notes, and snippets.

@chris-huffman
Last active June 12, 2020 18:48
Show Gist options
  • Save chris-huffman/1a9fd64d714911b1ea8eaf282a0e6ca4 to your computer and use it in GitHub Desktop.
Save chris-huffman/1a9fd64d714911b1ea8eaf282a0e6ca4 to your computer and use it in GitHub Desktop.
CLI Commands to Interact with ElasticSearch (v6)
#Show indexes
curl 127.0.0.1:9200/_cat/indices
#Update max_result_window to avoid error about "Result window is too large"
curl -XPUT "http://localhost:9200/magento2_product_1_v2/_settings" -d '{ "index" : { "max_result_window" : 500000 } }' -H "Content-Type: application/json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment