Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-274

Modify the method Schema\Builder::getIndexes() to include search indexes.

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • laravel-5.2.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • PHP Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      This method is used by the introspection command php artisan db:table

      The method Schema\Builder::getIndexes will return the following for a search index:

       
      [
          'name' => 'default' // or custom index name
          'columns' => null, // That would be complex and subject to errors to dive into the index definition to find on which fields it is defined
          'primary' => false,
          'type' => 'search' | 'vectorSearch'
          'unique' => false,
      ]
       
      

      The definition of the index is not used in this summary.

      On MongoDB community Edition, this operation is not supported. The server error will be ignored because we know there is no search index on cluster that doesn’t support them.

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None