[DOCS-3920] Document the listIndexes command Created: 18/Aug/14  Updated: 16/Mar/15  Resolved: 12/Nov/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.14, mongodb-3.0

Type: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-4515 Remove/replace all occurrences of sys... Closed
related to DOCS-3921 Document the listIndexes privilege ac... Closed
is related to SERVER-12517 Add listIndexes command Closed
Participants:
Days since reply: 9 years, 9 weeks ago

 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
}
 



 Comments   
Comment by Githook User [ 17/Dec/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-3920 DOCS-3921: listIndexes command documentation
Branch: master
https://github.com/mongodb/docs/commit/6c3b7c872e361d696e4650c8c897c982c51cc4b9

Generated at Thu Feb 08 07:46:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.