Search not working unless type specified

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/31092564-4f29-4e45-a9e3-a8118838c5b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 stefanie@backstit.ch 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 elasticsearch+unsubscribe@googlegroups.com mailto:elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
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.

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.

No I don’t and I can’t really help until I know exactly what you are doing.
But may be others have ideas?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

Le 12 janv. 2015 à 15:33, Stefanie stefanie@backstit.ch a écrit :

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' 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' 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 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 mailto: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 https://groups.google.com/d/msgid/elasticsearch/9e5a8359-d442-4ae8-86ea-ca185afe1d98%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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/AA766C06-A7BC-499B-8F9F-EA7167B9D2C0%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

What does your mapping for the index look like? Is there any possibility
there could be a mapping conflict?

Christian

On Friday, January 9, 2015 at 10:48:52 PM UTC, Stefanie wrote:

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/06708810-cadf-49e2-8cbc-01730ed4b600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.