This doesn't work
FindIterable<Document> result = db.getCollection(resourceName)
.find(Filters.eq("time", "1262599860000"))
.batchSize(batchSize)
.skip(offset);
But the field is NumberLong, so it should ? And the below does work :
FindIterable<Document> result = db.getCollection(resourceName)
.find(Filters.gt("time", 100))
.batchSize(batchSize)
.skip(offset);
How do I correctly specify a long value to a MongoDb filter via java ? The mongo shell shows :
db.events.find({time:1262599860000})
{ "_id" : "507f191e810c19729de8aae3", "type" : "LOGIN", "time" : NumberLong("1262599860000"), "user" : "user4@sample.io", "ip" : "192.168.1.13" }