I get the correct behavior with the other document type in this index and
my other index has had no issues with having multiple document types being
returned. So I am not sure what is going on with this document type. Do
you have any ideas?
Thanks
On Saturday, January 10, 2015 at 5:30:21 AM UTC-5, David Pilato wrote:
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
http://Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr
https://twitter.com/elasticsearchfr | @scrutmydocs
https://twitter.com/scrutmydocs
Le 9 janv. 2015 à 23:48, Stefanie <stef...@backstit.ch <javascript:>> 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 elasticsearc...@googlegroups.com <javascript:>.
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.
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9e5a8359-d442-4ae8-86ea-ca185afe1d98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.