That’s a very old version.
I just tested this and was able to get results. Tested on elasticsearch 1.4.2
DELETE twitter
PUT twitter/tweet/1
{
"type": "tweet",
"tweet_id": 128
}
GET /twitter/tweet/_search
{
"query" : {"match_all": {}},
"filter": {
"terms": {
"tweet_id":[
128
]
}
},
"sort" : {"type" : "desc"}
}
# gives results
GET /twitter/_search
{
"query" : {"match_all": {}},
"filter": {
"terms": {
"tweet_id":[
128
]
}
},
"sort" : {"type" : "desc"}
}
# gives results
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr
<https://twitter.com/elasticsearchfr> | @scrutmydocs
<https://twitter.com/scrutmydocs>
> Le 9 janv. 2015 à 23:48, Stefanie <[email protected]> a écrit :
>
> I am having an issue with searching results if the type is not specified.
>
> The following search request works correctly:
>
> curl -XGET 'http://localhost:9200/twitter/tweet/_search' -d '{
> "query" : {"match_all": {}},
> "filter": {
> "terms": {
> "tweet_id":[
> 128
> ]
> }
> },
> "sort" : {"type" : "desc"}
> }
> '
>
> But this search request does not return any results:
>
> curl -XGET 'http://localhost:9200/twitter/_search' -d '{
> "query" : {"match_all": {}},
> "filter": {
> "terms": {
> "tweet_id":[
> 128
> ]
> }
> },
> "sort" : {"type" : "desc"}
> }
> '
> Does anyone know why this is?
>
> I am using elasticsearch version 0.90.13.
>
> Thank you for all the help.
> Stefanie
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/31092564-4f29-4e45-a9e3-a8118838c5b5%40googlegroups.com
>
> <https://groups.google.com/d/msgid/elasticsearch/31092564-4f29-4e45-a9e3-a8118838c5b5%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6B050A32-21EE-4FF8-A299-A0BFE36A870B%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.