Skip to main content

ElasticSearch commands summary

ES - ElasticSearch


GET Information (_cat)
Is alive
GET /

List aliases
GET /_cat/aliases?v

List indexes and status
GET /_cat/indices?v

Cluster health
GET /_cat/health?v
epoch      timestamp cluster                   status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1470922354 16:32:34  59jx1xw08xlm2cv3e8jrxgdrz yellow          1         1     10  10    0    0       10             0                  -                 50.0%
Nodes health
GET /_cat/nodes?v&h=id,host,version,jdk,disk,heapPercent,ramCurrent,cpu,node.role,master,name)
id   host  version jdk         disk heapPercent ramCurrent cpu node.role master
WpaE local 2.2.0   1.8.0_51 136.7gb           9      8.7gb   5 d         *     
Count number of documents
{
"query": {
"match_all": {}
}
}




/_cat can get ?help parameter to get help, ?v for displaying headers and ?h to ask for special files (like GET /_cat/nodes?v&h=id,host,version,jdk,disk,heapPercent,ramCurrent,cpu,node.role,master,name)



GET MQM documents
  

Get defects
GET /_search?q=subtype:defect&size=10000
GET features
GET /_search?q=subtype:feature

  • Default size is 10

Comments

Popular posts from this blog

SSL in pictures

Here is my summary on SSL (or as I like to call it 'SSL for dummies')

Best freeware - XML editor

As a software developer, I open XML files all the time. I a heavy commercial XML editor. But nothing can compare to a small, thin and free XML editor like 'foxe'. A great feature is has is the alignment of long XML strings to readable XML format (Shift-F8). It help lot of times when the XML file was generated by some tool and was not readable. Homepage: http://www.firstobject.com/dn_editor.htm

What is dynamic programming (hebrew)?

תכנון דינמי, תכנות דינמי או באנגלית Dynamic Programming הם שמות לדרך ליצירת אלגוריתמים. המילה "תכנות" בשם כוונות יצירת תוכנית פעולה ולא קידוד בשפת תכנות. הבסיס של השיטה שני הרעיונות שעומדים מאחורי השם המרשים הם: 1.      האלגוריתם יפתור את הבעייה בצורה רקורסיבית ע"י חלוקתה לתתי בעיות שגם הן נפתרות ע"י חלוקתן לתתי בעיות וכו עד שמגיעים לבעיה פשוטה. זה בעצם סוג של רקורסיה עם כמה תוספות. 2.      החזקה בצד את כל התוצאות שכבר נמצאו לתתי בעיות כך שאם נגיע שוב לאותה תת בעייה, לא נחשב אותה שוב. יותר קל להבין את הרעיון הזה ע"י שתי דוגמאות. דוגמא אחת היא בעיית "תרמיל הגב" ובעייה שנייה היא חישוב מספר פיבונצ'י. בעיית "תרמיל הגב"   בעיית "תרמיל הגב" או  Knapsack problem היא בעייה כללית שיש לה שימושים שונים.  דוגמא לבעיה הזו: גנב נכנס למחסן. יש לו תרמיל שיכול לסחוב עד 7 ק"ג. במחסן יש 30 מוצרים. כל מוצר שוקל משקל מסויים ויש לו ערך כספי מסויים. הגנב צריך דרך (אלגוריתם) לדעת איזה מוצגים לקחת כך שיהיה להם...