Hi,
I've been having a problem where refreshing an index at the wrong point
seems to prevent results being returned. I've managed to cut down my
problem to the following sequence:
curl -XDELETE 'http://localhost:9201/test__garments'
curl -XPOST 'http://localhost:9201/test__garments/garment/1' -d
'{"id":1, "name":"Some Garment"}'
curl -XPOST 'http://localhost:9201/test__garments/_refresh'
curl -XPUT 'http://localhost:9201/test__garments/verdict/_mapping' -d
'{"verdict":{"_parent":{"type":"garment"},"properties":{"id":{"type":"integer"}}}}'
curl -XPOST 'http://localhost:9201/test__garments/verdict/1?parent=1'
-d '{"id":1}'
curl -XPOST 'http://localhost:9201/test__garments/_refresh'
curl -XPOST 'http://localhost:9201/test__garments/verdict/_search' -d '
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"has_parent": {
"type": "garment",
"query": {
"match_all": {}
}
}
}
}
}
}
'
Should produce 1 result: I'm indexing a document (garment), adding a child
document (verdict) and then querying for child documents that have a parent.
If I remove the first call to refresh then the search does return the
expected document and everything behaves normally. If I leave that refresh
in place then I get no results until I do something like
curl -XPOST localhost:9201/test__garments/garment/1/_update -d
'{"script":""}'
Has anyone ever seen something like this before? I'm using ES 0.90.9 on OS
X 10.9.1 (java -version is 1.7.0_45). This seems to work fine on ES 0.20.6
- this showed up while I was (belatedly) testing upgrading to 0.90
Fred
--
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/8310e078-052f-4c7a-a44c-6cf548266578%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.