[MODM-172] Fulltextsearch available in Mongo 2.4 is not available in MongoODM Created: 04/Jun/13  Updated: 04/Jun/13

Status: Open
Project: Doctrine MongoDB ODM
Component/s: Mongo, MongoCollection, MongoCursor
Affects Version/s: 1.0.0BETA3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jean-Tristan Chanegue Assignee: Jonathan H. Wage
Resolution: Unresolved Votes: 0
Labels: None

Mongo 2.4 / MacosX / PHP 5.3.14


Since Mongo 2.4, Fulltextsearch is available: http://docs.mongodb.org/manual/core/text-search/
It's possible to use it directly in PHP :

Command of Mongo 2.4 Text Search feature.

$result = $db->command(
'text' => 'bar', //this is the name of the collection where we are searching
'search' => 'hotel', //the string to search
'limit' => 5, //the number of results, by default is 1000
'project' => Array( //the fields to retrieve from db
'title' => 1

Sadly it's not available (or i did not find a way..) to use this great feature of Mongo in MongoODM.

Generated at Tue Dec 01 13:25:57 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.