[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
Environment:

Mongo 2.4 / MacosX / PHP 5.3.14



 Description   

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.

<?php
$result = $db->command(
array(
'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 Sep 16 19:35:44 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.