Advertisement
Anatolyukropov

Elastic Curl query

Aug 19th, 2022 (edited)
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. curl -i -H "Accept: application/json" -H "Content-Type: application/json" -XPOST "localhost:9200/course/_search" -d '{"query":{"match":{"orgUnitIds": 45423}}}'
  2.  
  3.  
  4. -- просмотр работы эластика
  5. curl -k localhost:9200/_cat/health?v
  6.  
  7. -- просмотр перечня индексов в эластике
  8. curl -k localhost:9200/_cat/indices?v
  9.  
  10. http://pred-prod.trec.rosatom.local:32614/_cat/indices
  11.  
  12. find empty array
  13. curl -i -H "Accept: application/json" -H "Content-Type: application/json" -XPOST "localhost:9200/course/_search" -d '{"query":{"bool":{"must_not":{"script":{"script": "_source._orgUnitStructure.size() > 0"}}}}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement