Last active
August 3, 2017 20:35
-
-
Save shinusuresh/0c6304ce5bb7593617d4efca3c2ac798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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