Skip to content

Commit 3ba876a

Browse files
committed
removing
1 parent 27f70fd commit 3ba876a

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

source/data-modeling.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Model Your Data
1818
Field Behaviors </data-modeling/field-behaviors>
1919
Inheritance </data-modeling/inheritance>
2020
Document Validation </data-modeling/validation>
21+
Indexes </data-modeling/indexes>
2122

2223
In this section, you can learn how to model data in {+odm+}.
2324

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ then create it using the ``create_indexes`` macro.
4444
The following code example shows how to declare and create an ascending index
4545
named ``cuisine_index`` on the ``cuisine`` field in the ``Restaurant`` class:
4646

47-
.. literalinclude:: /includes/reference/indexes.rb
47+
.. literalinclude:: /includes/data-modeling/indexes.rb
4848
:language: ruby
4949
:emphasize-lines: 8, 11
5050
:start-after: start create index
@@ -65,7 +65,7 @@ You can use aliased field names in index definitions. For example, the following
6565
code creates a field on the ``b`` field, which is an alias of the ``borough``
6666
field:
6767

68-
.. literalinclude:: /includes/reference/indexes.rb
68+
.. literalinclude:: /includes/data-modeling/indexes.rb
6969
:language: ruby
7070
:start-after: start create alias index
7171
:end-before: end create alias index
@@ -77,7 +77,7 @@ You can define an index on embedded document fields. The following code example
7777
shows how to declare an ascending index on the ``street`` field, which is embedded
7878
within the ``address`` field in the ``Restaurant`` model.
7979

80-
.. literalinclude:: /includes/reference/indexes.rb
80+
.. literalinclude:: /includes/data-modeling/indexes.rb
8181
:language: ruby
8282
:start-after: start create embedded index
8383
:end-before: end create embedded index
@@ -89,7 +89,7 @@ You can define a compound index on multiple fields. The following code example
8989
shows how to declare a compound index that is ascending on the ``borough``
9090
field and descending on the ``name`` field.
9191

92-
.. literalinclude:: /includes/reference/indexes.rb
92+
.. literalinclude:: /includes/data-modeling/indexes.rb
9393
:language: ruby
9494
:start-after: start create compound index
9595
:end-before: end create compound index
@@ -102,7 +102,7 @@ coordinate pairs.
102102
The following example defines a 2dsphere index on a field that contains GeoJSON
103103
objects:
104104

105-
.. literalinclude:: /includes/reference/indexes.rb
105+
.. literalinclude:: /includes/data-modeling/indexes.rb
106106
:language: ruby
107107
:start-after: start create 2dsphere index
108108
:end-before: end create 2dsphere index
@@ -119,7 +119,7 @@ Create a Sparse Index
119119
You can define a sparse index on fields that are not present in all documents.
120120
The following code example defines a sparse index on the ``borough`` field:
121121

122-
.. literalinclude:: /includes/reference/indexes.rb
122+
.. literalinclude:: /includes/data-modeling/indexes.rb
123123
:language: ruby
124124
:start-after: start create sparse index
125125
:end-before: end create sparse index
@@ -134,7 +134,7 @@ You can define multiple indexes within your model and create them using a single
134134
``create_indexes`` call. The following example shows how to create multiple
135135
indexes at the same time:
136136

137-
.. literalinclude:: /includes/reference/indexes.rb
137+
.. literalinclude:: /includes/data-modeling/indexes.rb
138138
:language: ruby
139139
:start-after: start create multiple indexes
140140
:end-before: end create multiple indexes
@@ -145,7 +145,7 @@ Drop Indexes
145145
You can drop all indexes in your collection. The following example drops all
146146
indexes in the ``Restaurant`` model:
147147

148-
.. literalinclude:: /includes/reference/indexes.rb
148+
.. literalinclude:: /includes/data-modeling/indexes.rb
149149
:language: ruby
150150
:start-after: start drop indexes
151151
:end-before: end drop indexes
@@ -168,7 +168,7 @@ following code example shows how to declare and create an Atlas Search index
168168
named ``my_search_index``.
169169
The index is on the ``name`` and ``cuisine`` fields and is dynamic.
170170

171-
.. literalinclude:: /includes/reference/indexes.rb
171+
.. literalinclude:: /includes/data-modeling/indexes.rb
172172
:language: ruby
173173
:start-after: start create atlas search index
174174
:end-before: end create atlas search index
@@ -184,7 +184,7 @@ To remove an Atlas Search index, use the ``remove_search_indexes`` macro. The
184184
following code example shows how to remove an Atlas Search index from the
185185
``restaurants`` collection:
186186

187-
.. literalinclude:: /includes/reference/indexes.rb
187+
.. literalinclude:: /includes/data-modeling/indexes.rb
188188
:language: ruby
189189
:start-after: start remove atlas search index
190190
:end-before: end remove atlas search index
@@ -197,7 +197,7 @@ by using the ``search_indexes`` macro. The following example enumerates through
197197
all Atlas Search indexes in the ``restaurants`` collection and prints out their
198198
information:
199199

200-
.. literalinclude:: /includes/reference/indexes.rb
200+
.. literalinclude:: /includes/data-modeling/indexes.rb
201201
:language: ruby
202202
:start-after: start list atlas search index
203203
:end-before: end list atlas search index

0 commit comments

Comments
 (0)