|
| 1 | +.. _mcli-atlas-search-index-describe-command: |
| 2 | + |
| 3 | +============================================ |
| 4 | +mongocli atlas cluster search index describe |
| 5 | +============================================ |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +The ``search index describe`` command retrieves one |fts| :atlas:`index |
| 16 | +</reference/atlas-search/index-definitions/>` for a specified cluster. You |
| 17 | +can also retrieve a single |fts| :atlas:`index |
| 18 | +</reference/atlas-search/index-management/>` through the |service| UI or the |
| 19 | +:atlas:`API </reference/api/fts-indexes-get-one/>`. |
| 20 | + |
| 21 | +.. _mcli-atlas-search-index-describe-syntax: |
| 22 | + |
| 23 | +Syntax |
| 24 | +------ |
| 25 | + |
| 26 | +.. code-block:: text |
| 27 | + |
| 28 | + mongocli atlas cluster search|fts index describe <index-id> |
| 29 | + --clusterName <cluster-name> |
| 30 | + [ --profile|-P <profile-name> ] |
| 31 | + [ --projectId <project-ID> ] |
| 32 | + |
| 33 | +.. _mcli-atlas-search-index-describe-options: |
| 34 | + |
| 35 | +Options |
| 36 | +------- |
| 37 | + |
| 38 | +.. list-table:: |
| 39 | + :header-rows: 1 |
| 40 | + :widths: 20 10 60 10 |
| 41 | + |
| 42 | + * - Option |
| 43 | + - Type |
| 44 | + - Description |
| 45 | + - Required? |
| 46 | + |
| 47 | + * - ``<index-id>`` |
| 48 | + - string |
| 49 | + - Unique identifier of the |fts| index to describe. |
| 50 | + - yes |
| 51 | + |
| 52 | + * - ``--clusterName`` |
| 53 | + - string |
| 54 | + - Name of the cluster. |
| 55 | + - yes |
| 56 | + |
| 57 | + * - ``--profile``, ``-P`` |
| 58 | + - string |
| 59 | + - Name of the profile where the public and private keys for the project |
| 60 | + are set. If omitted, uses the {+default-profile+}. To learn more about |
| 61 | + creating a profile, see :ref:`mcli-configure`. |
| 62 | + - no |
| 63 | + |
| 64 | + * - ``--projectId`` |
| 65 | + - string |
| 66 | + - Unique identifier of the project where you want to create the cluster. |
| 67 | + If omitted, uses the project ID in the profile or :ref:`environment |
| 68 | + variable <mcli-env-var>`. |
| 69 | + - no |
| 70 | + |
| 71 | +.. _mcli-atlas-search-index-describe-output: |
| 72 | + |
| 73 | +Output |
| 74 | +------ |
| 75 | + |
| 76 | +.. include:: /includes/command-output-intro.rst |
| 77 | + |
| 78 | +.. include:: /includes/atlas-search-index-output-fields.rst |
| 79 | + |
| 80 | +.. _mcli-atlas-search-index-describe-egs: |
| 81 | + |
| 82 | +Example |
| 83 | +------- |
| 84 | + |
| 85 | +The following example uses the ``mongocli atlas cluster search index describe`` |
| 86 | +command to retrieve an |fts| index on an |service| cluster named |
| 87 | +``myTestCluster``. |
| 88 | + |
| 89 | +.. code-block:: text |
| 90 | + |
| 91 | + mongocli atlas cluster search index describe 5f1f40842f2ac35f49190c20 --clusterName myTestCluster -P egAtlasProfile |
| 92 | + |
| 93 | +The previous command prints the following fields in |json| format to the |
| 94 | +terminal. To learn more about these fields, see |
| 95 | +:ref:`mcli-atlas-search-index-describe-output`. |
| 96 | + |
| 97 | +.. code-block:: json |
| 98 | + :copyable: false |
| 99 | + |
| 100 | + { |
| 101 | + "analyzer": "lucene.standard", |
| 102 | + "collectionName": "movies", |
| 103 | + "database": "sample_mflix", |
| 104 | + "indexID": "5f1f40842f2ac35f49190c20", |
| 105 | + "mappings": { |
| 106 | + "dynamic": true |
| 107 | + }, |
| 108 | + "name": "dynamic", |
| 109 | + "searchAnalyzer": "lucene.standard" |
| 110 | + } |
0 commit comments