Skip to content

Instantly share code, notes, and snippets.

@bastichelaar
Created April 10, 2012 08:26
Show Gist options
  • Save bastichelaar/2349339 to your computer and use it in GitHub Desktop.
Save bastichelaar/2349339 to your computer and use it in GitHub Desktop.
Search queries with numbers don't work
curl -XGET 'http://127.0.0.1:9200/_search' -d '
{
"query": {
"term": {
"logsource": "thirtyloops.app.mycoolapp.production"
}
}
}
'
curl -XGET 'http://127.0.0.1:9200/_search' -d '
{
"query": {
"term": {
"logsource": "thirtyloops.app.mycoolapp2.production"
}
}
}
'
{
"_shards": {
"failed": 0,
"successful": 10,
"total": 10
},
"hits": {
"hits": [],
"max_score": null,
"total": 0
},
"timed_out": false,
"took": 7
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment