I tried converting my String ID to MongoDB ObjectID
public class relevancy_test extends Object implements Comparable {
public static voi
As I see there are two issue here:
The value 8001_469437317594492928_1400737805000
is not a HEX value which you can see in the DB but an explicit concatenation of time, machine id, pid and counter components. This components are used to generate HEX value. To get HEX value you need to use method ToString of your ObjectID instance.
Reference to explanation of ObjectID components here: https://api.mongodb.com/java/3.0/org/bson/types/ObjectId.html
In order to create new ObjectID instance with specific HEX value use this:
var objectId = new ObjectId(hexStringId)