Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3920

Document the listIndexes command

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.14, mongodb-3.0
    • None
    • manual
    • None

    Description

      See SERVER-12517

      Example usage:

      > show collections
      fts_index3
      search
      system.indexes
       
      > db.fts_index3.runCommand('listIndexes');
      {
      	"indexes" : [
      		{
      			"v" : 1,
      			"name" : "_id_",
      			"key" : {
      				"_id" : 1
      			},
      			"ns" : "test.fts_index3"
      		},
      		{
      			"v" : 1,
      			"name" : "$**_text",
      			"key" : {
      				"_fts" : "text",
      				"_ftsx" : 1
      			},
      			"ns" : "test.fts_index3",
      			"language_override" : "idioma",
      			"weights" : {
      				"$**" : 1
      			},
      			"default_language" : "english",
      			"textIndexVersion" : 1
      		}
      	],
      	"ok" : 1
      }
       

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 9 weeks ago