tinkerpop/rexster — Issue #188: Numeric Index Lookups with the JSON Type System
Author: espeed
Created: 2011-12-07 02:18:20+00:00
State: open

When using the JSON type system to store values, index lookups work for string values:

```bash
$ curl "http://localhost:8182/graphs/tinkergraph/indices/test_automatic_idxV?key=name&value=James"
{"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}
```

However, it doesn't work for numeric values:

```
$ curl "http://localhost:8182/graphs/tinkergraph/indices/test_automatic_idxV?key=timestamp&value=12345"
{"version":"0.7-SNAPSHOT","results":[],"totalSize":0,"queryTime":0.641311}
```

How 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.