Skip to content

Instantly share code, notes, and snippets.

@shinusuresh
Last active August 3, 2017 20:35
Show Gist options
  • Save shinusuresh/0c6304ce5bb7593617d4efca3c2ac798 to your computer and use it in GitHub Desktop.
Save shinusuresh/0c6304ce5bb7593617d4efca3c2ac798 to your computer and use it in GitHub Desktop.
Listing node
/_nodes?pretty=true
Listing all indices
/_cat/indices?v
Cluster health
/_cat/health?v
List contents in an index
http://localhost:9200/house/_search?pretty=1
http://localhost:9200/house/_search?q=genderAllowed:FEMALE&pretty=1
Condition query
curl -XGET 'localhost:9200/house/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"query_string": {
"query": "(genderAllowed:FEMALE OR genderAllowed:MALE) AND (rentForBed: 0)"
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment