Last active
August 29, 2015 14:05
-
-
Save BenHall/278632192d0dc6407a2c to your computer and use it in GitHub Desktop.
ElasticSearch bug with dots in document type?
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
curl -XPUT 'http://localhost:9200/twitter/twee.t/1' -d '{ | |
"user" : "kimchy", | |
"post_date" : "2009-11-15T14:12:12", | |
"message" : "trying out Elasticsearch" | |
}' | |
curl -X GET 'http://localhost:9200/twitter/_search?q=user:kimchy' | |
curl -X GET 'http://localhost:9200/twitter/twee.t/_search?q=user:kimchy' | |
curl -X GET 'http://localhost:9200/twitter/tw*/_search?q=user:kimchy' |
curl -XGET "http://localhost:9200/twitter/_search" -d'
{
"query": {
"filtered": {
"filter": {
"regexp": {
"_type": {
"value": "tw.*"
}
}
}
}
}
}'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First two work and return data, the third doesn't but should according to wildcards. http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/multi-index-multi-type.html