Unable to get document by id


(Georgi Ivanov) #1

Hi,
Something strange here ..
I can find a document when searching for it , but i can not get it by ID

For example :
{
query: {
bool: {
must: [
{
term: {
position.ship_id: 50132}}
{
term: {
ts: 1385243140000}}]
should: [ ]}}
}

Result is OK:

{
took: 5
timed_out: false
_shards: {
total: 8
successful: 8
failed: 0}
hits: {
total: 1
max_score: 1.4142135
hits: [
{
_index: track_201311
_type: position
id: 50132_1385243140000-1_5.41948333333_57.4023333333
_score: 1.4142135
_source: {
hourly: true
ts: 1385243140000
ship_id: 50132

}}]}}

But when i try this

curl
'http://localhost:9200/track_201311/position/50132_1385243140000_-1_5.41948333333_57.4023333333'

I get this

{"_index":"track_201311","_type":"position","id":
"50132_1385243140000
-1_5.41948333333_57.4023333333","found":false}

I think this started when i upgraded to ES 1.2

Any idea what is going on ?

--
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/1a33662e-9d90-4aa7-a53f-f0c57194578e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2