I am using MongoDB database with php and I would like to know how can we sort a list with a field sorted by searched word position in a text ?But no field sorted by alphabetic order . I give you the SQL code in MS SQL Server : "select * from my_table order by charindex( <word what I m looking for> ,my_field_to_sort) ",I would like what is the equivalent in MongoDB of this SQL code ? Charindex give us string position in the text field .
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb