Base method for children to call to convert an operator call into a Mongo DBObject.
Base method for children to call to convert an operator call into a Mongo DBObject.
e.g. "foo" $eq "bar"
will convert to
{"foo": "bar"}
WARNING: This does NOT check that target is a serializable type. That is, for the moment, your own problem.
Base method for children to call to convert an operator call into a nested Mongo DBObject.
Base method for children to call to convert an operator call into a nested Mongo DBObject.
e.g. "foo" $ne "bar"
will convert to
{"foo": {"$ne": "bar"}}
Optionally, if dbObj, being Some(DBObject)
is defined,
the
op(oper, )
method will nest the target value and operator
inside the existing dbObj - this is useful for things like mixing
$lte
and $gte
WARNING: This does NOT check that target is a serializable type.
That is, for the moment, your own problem.
Trait providing a projection / sort helper for use with text search
To be used alongside $text and a text index to project / sort via the text match score.
> $text("hello") res0: { "$text" : { "$search" : "hello"}}
> $text("hola") $language "spanish" res1: { "$text" : { "$search" : "hola" , "$language" : "spanish"}}
2.7
http://docs.mongodb.org/manual/core/index-text/