{"issue":{"milestone":null,"user":{"id":804467,"login":"espeed","url":"https://api.github.com/users/espeed","gravatar_id":"21c5aeda0e3c59037354ab55992e80c5","avatar_url":"https://secure.gravatar.com/avatar/21c5aeda0e3c59037354ab55992e80c5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"Numeric Index Lookups with the JSON Type System","created_at":"2011-12-07T02:18:20Z","labels":[{"name":"feature","url":"https://api.github.com/repos/tinkerpop/rexster/labels/feature","color":"ededed"}],"updated_at":"2011-12-17T01:57:20Z","state":"closed","id":2470449,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/tinkerpop/rexster/issues/188","closed_at":"2011-12-17T01:57:20Z","body":"When using the JSON type system to store values, index lookups work for string values:\r\n\r\n```bash\r\n$ curl \"http://localhost:8182/graphs/tinkergraph/indices/test_automatic_idxV?key=name&value=James\"\r\n{\"version\":\"0.7-SNAPSHOT\",\"results\":[{\"timestamp\":1323222659,\"name\":\"James\",\"age\":34,\"_id\":\"153\",\"_type\":\"vertex\"},{\"timestamp\":12345,\"name\":\"James\",\"age\":34,\"_id\":\"155\",\"_type\":\"vertex\"},{\"timestamp\":1323222701,\"name\":\"James\",\"age\":34,\"_id\":\"154\",\"_type\":\"vertex\"}],\"totalSize\":3,\"queryTime\":0.873002}\r\n```\r\n\r\nHowever, it doesn't work for numeric values:\r\n\r\n```\r\n$ curl \"http://localhost:8182/graphs/tinkergraph/indices/test_automatic_idxV?key=timestamp&value=12345\"\r\n{\"version\":\"0.7-SNAPSHOT\",\"results\":[],\"totalSize\":0,\"queryTime\":0.641311}\r\n```\r\n\r\nHow do you specify types for GET index lookups while using the JSON type system? I realize you could use the Rexster type system for this, but then you're dealing with two type systems.\r\n\r\n","number":188,"url":"https://api.github.com/repos/tinkerpop/rexster/issues/188","comments":16,"assignee":null},"action":"closed"}