I tried converting my String ID to MongoDB ObjectID
public class relevancy_test extends Object implements Comparable {
public static voi
ObjectId is a 12-byte BSON type
Here your string "8001_469437317594492928_1400737805000" is not 12 byte BSON type. so update according to ObjectId
To generate a new ObjectId using the ObjectId() constructor with a unique hexadecimal string:
var stringObjectId = ObjectId("507f191e810c19729de860ea");
Please make string correct to convert string to objectId.