{"action":"created","issue":{"url":"https://api.github.com/repos/pyr/cyanite/issues/97","labels_url":"https://api.github.com/repos/pyr/cyanite/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/pyr/cyanite/issues/97/comments","events_url":"https://api.github.com/repos/pyr/cyanite/issues/97/events","html_url":"https://github.com/pyr/cyanite/issues/97","id":63984249,"number":97,"title":"ElasticSearch never returning results for graphite web","user":{"login":"mwmanley","id":3407944,"avatar_url":"https://avatars.githubusercontent.com/u/3407944?v=3","gravatar_id":"","url":"https://api.github.com/users/mwmanley","html_url":"https://github.com/mwmanley","followers_url":"https://api.github.com/users/mwmanley/followers","following_url":"https://api.github.com/users/mwmanley/following{/other_user}","gists_url":"https://api.github.com/users/mwmanley/gists{/gist_id}","starred_url":"https://api.github.com/users/mwmanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwmanley/subscriptions","organizations_url":"https://api.github.com/users/mwmanley/orgs","repos_url":"https://api.github.com/users/mwmanley/repos","events_url":"https://api.github.com/users/mwmanley/events{/privacy}","received_events_url":"https://api.github.com/users/mwmanley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-24T12:28:10Z","updated_at":"2015-03-27T12:54:35Z","closed_at":null,"body":"I have a brand new Cyanite install (stock pull from here) with ES 1.5.  I see data populating into ES from Cyanite, but when using the Graphite web browser, it never returns any results for the top level of the tree.  I am using the REST interface to ES as defined in my cyanite.yaml:\r\n\r\nindex:\r\n  use: \"io.cyanite.es_path/es-rest\"\r\n  index: \"cyanite_paths\" #defaults to \"cyanite_paths\"\r\n  url: \"http://esearch01:9200\" #defaults to http://localhost:9200\r\n  chan_size: 1000 # defaults to 10000\r\n  batch_size: 500 # defaults to 1000\r\n\r\nI clearly see the data populating in ES with a curl:\r\n\r\ncurl \"http://esearch01:9200/cyanite_paths/_search\"\r\n{\"took\":5,\"timed_out\":false,\"_shards\":{\"total\":5,\"successful\":5,\"failed\":0},\"hits\":{\"total\":1320,\"max_score\":1.0,\"hits\":[{\"_index\":\"cyanite_paths\",\"_type\":\"path\",\"_id\":\"stg.nj1.bidder06.tap\",\"_score\":1.0,\"_source\":{\"path\":\"stg.nj1.bidder06.tap\",\"depth\":4,\"tenant\":\"\",\"leaf\":true}},{\"_index\":\"cyanite_paths\",\"_type\":\"path\",\"_id\":\"stg.nj1.consumer-tracked01.clnt.counters.service_creation\",\"_score\":1.0 ...\r\n\r\nbut when the query hits ES, it returns no results:\r\n\r\nES query generated by Cyanite:\r\n{\"query\":{\"filtered\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"depth\":{\"from\":1,\"to\":1}}},{\"term\":{\"tenant\":\"\"}},{\"regexp\":{\"path\":\".*\",\"_cache\":true}}]}}}},\"size\":100}\r\n\r\nResult set from ES, which shows no hits:\r\n{\"_scroll_id\":\"cXVlcnlUaGVuRmV0Y2g7NTsxMDM0OncySllmRVZEUkFxQTBDWDYzcnBKQkE7MTAzMzp3MkpZZkVWRFJBcUEwQ1g2M3JwSkJBOzEwMzE6dzJKWWZFVkRSQXFBMENYNjNycEpCQTsxMDMyOncySllmRVZEUkFxQTBDWDYzcnBKQkE7MTY4OkNZdE9MU0MzUlA2T1RpMHVfcmVYT3c7MDs=\",\"took\":11,\"timed_out\":false,\"_shards\":{\"total\":5,\"successful\":5,\"failed\":0},\"hits\":{\"total\":0,\"max_score\":null,\"hits\":[]}}\r\n\r\nI don't see what I could be doing so wrong where it never returns the top level branches of the Graphite paths.  If I remove ES from the equation, I can use the Graphite web browser to navigate around, though I would *greatly* prefer to keep ES in the equation.\r\n\r\nHas anyone see this issue before with path queries into ES?\r\n"},"comment":{"url":"https://api.github.com/repos/pyr/cyanite/issues/comments/86932110","html_url":"https://github.com/pyr/cyanite/issues/97#issuecomment-86932110","issue_url":"https://api.github.com/repos/pyr/cyanite/issues/97","id":86932110,"user":{"login":"chjohnst","id":1225565,"avatar_url":"https://avatars.githubusercontent.com/u/1225565?v=3","gravatar_id":"","url":"https://api.github.com/users/chjohnst","html_url":"https://github.com/chjohnst","followers_url":"https://api.github.com/users/chjohnst/followers","following_url":"https://api.github.com/users/chjohnst/following{/other_user}","gists_url":"https://api.github.com/users/chjohnst/gists{/gist_id}","starred_url":"https://api.github.com/users/chjohnst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chjohnst/subscriptions","organizations_url":"https://api.github.com/users/chjohnst/orgs","repos_url":"https://api.github.com/users/chjohnst/repos","events_url":"https://api.github.com/users/chjohnst/events{/privacy}","received_events_url":"https://api.github.com/users/chjohnst/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T12:54:35Z","updated_at":"2015-03-27T12:54:35Z","body":"Have you tried this on ES 1.4?  Wondering if something changed there.\n On Mar 24, 2015 8:28 AM, \"mwmanley\" <notifications@github.com> wrote:\n\n> I have a brand new Cyanite install (stock pull from here) with ES 1.5. I\n> see data populating into ES from Cyanite, but when using the Graphite web\n> browser, it never returns any results for the top level of the tree. I am\n> using the REST interface to ES as defined in my cyanite.yaml:\n>\n> index:\n> use: \"io.cyanite.es_path/es-rest\"\n> index: \"cyanite_paths\" #defaults to \"cyanite_paths\"\n> url: \"http://esearch01:9200\" #defaults to http://localhost:9200\n> chan_size: 1000 # defaults to 10000\n> batch_size: 500 # defaults to 1000\n>\n> I clearly see the data populating in ES with a curl:\n>\n> curl \"http://esearch01:9200/cyanite_paths/_search\"\n> {\"took\":5,\"timed_out\":false,\"_shards\":{\"total\":5,\"successful\":5,\"failed\":0},\"hits\":{\"total\":1320,\"max_score\":1.0,\"hits\":[{\"_index\":\"cyanite_paths\",\"_type\":\"path\",\"_id\":\"stg.nj1.bidder06.tap\",\"_score\":1.0,\"_source\":{\"path\":\"stg.nj1.bidder06.tap\",\"depth\":4,\"tenant\":\"\",\"leaf\":true}},{\"_index\":\"cyanite_paths\",\"_type\":\"path\",\"_id\":\"stg.nj1.consumer-tracked01.clnt.counters.service_creation\",\"_score\":1.0\n> ...\n>\n> but when the query hits ES, it returns no results:\n>\n> ES query generated by Cyanite:\n>\n> {\"query\":{\"filtered\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"depth\":{\"from\":1,\"to\":1}}},{\"term\":{\"tenant\":\"\"}},{\"regexp\":{\"path\":\".*\",\"_cache\":true}}]}}}},\"size\":100}\n>\n> Result set from ES, which shows no hits:\n>\n> {\"_scroll_id\":\"cXVlcnlUaGVuRmV0Y2g7NTsxMDM0OncySllmRVZEUkFxQTBDWDYzcnBKQkE7MTAzMzp3MkpZZkVWRFJBcUEwQ1g2M3JwSkJBOzEwMzE6dzJKWWZFVkRSQXFBMENYNjNycEpCQTsxMDMyOncySllmRVZEUkFxQTBDWDYzcnBKQkE7MTY4OkNZdE9MU0MzUlA2T1RpMHVfcmVYT3c7MDs=\",\"took\":11,\"timed_out\":false,\"_shards\":{\"total\":5,\"successful\":5,\"failed\":0},\"hits\":{\"total\":0,\"max_score\":null,\"hits\":[]}}\n>\n> I don't see what I could be doing so wrong where it never returns the top\n> level branches of the Graphite paths. If I remove ES from the equation, I\n> can use the Graphite web browser to navigate around, though I would\n> *greatly* prefer to keep ES in the equation.\n>\n> Has anyone see this issue before with path queries into ES?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/pyr/cyanite/issues/97>.\n>\n"}}