Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-172

Fulltextsearch available in Mongo 2.4 is not available in MongoODM

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA3
    • Fix Version/s: None
    • 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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Jean-Tristan Chanegue
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: