Haskell mongodb text search -
what status of text search haskell mongodb driver?
there 'like' operator in mongo similar sql variants, best way search collection or whole db particular text string?
i've read people referencing external tools can see text search implemented in 2.4 mongo version done through command interface.
there should not problems doing console how haskell driver? found 'runcommand' function in driver apis , looks should possible send 'text' command server signature shows returns 1 document - not list of documents. how done correctly?
how efficiently search word or sentence in collection or db returns list of documents containing word? possible without external tools using mongo 'text search' feature? should done in application level?
thanks.
the result type contains list of documents (that contain searched text). unfortunately, not test query on running database, have used runcommand
run aggregation (before implemented haskell driver). result document such query looks this:
{ results: [ { score : ..., obj : { ... } }, ... ], ... , ok : 1 }
the result document has field results
, value document fields score
, obj
. in end, can find each of matched document behind obj
-field in list of results. more details, should take here.
Comments
Post a Comment