I am trying to efficiently retrieve data that is in the following format:
{
  "datetime": "1453845345493",
  "someIds": ["id2000-4", "id1000-34", "id2000-43", "id250-34"]
}
Specifically, what I want to do is "find all records that have happened since a given time, and of those, return any that have one or more of a list of Ids."
So far I followed the method shown here for creating a compound, multi-index using the following:
r.db("dbName").table("tableName")
  .indexCreate(
    "idDatetime", 
    function(each) {
      return each("someIds").map(function(id){
        return [each("datetime"), id]
      })
    }
    ,{multi: true})
This successfully builds an index based on values that look like ["1453845345493", "id2000-4"]
But now it feel like I'm in a bit too deep, and don't actually know how to make a query that uses this index to accomplish the objective above. How do you craft that query?