Skip to content

Commit 532172c

Browse files
committed
fix
1 parent 034c6e8 commit 532172c

File tree

1 file changed

+70
-70
lines changed

1 file changed

+70
-70
lines changed

docs/fundamentals/atlas-search.txt

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ You can create an Atlas Search index in either of the following ways:
6868
{+php-library+}, as shown in the following code:
6969

7070
.. code-block:: php
71-
72-
$collection = DB::connection('mongodb')->getCollection('movies');
73-
74-
$collection->createSearchIndex(
75-
['mappings' => ['dynamic' => true]],
76-
['name' => 'search_index']
71+
72+
$collection = DB::connection('mongodb')->getCollection('movies');
73+
74+
$collection->createSearchIndex(
75+
['mappings' => ['dynamic' => true]],
76+
['name' => 'search_index']
7777
);
7878

7979
Perform Queries
@@ -111,23 +111,23 @@ model's ``title`` field for the term ``'dream'``:
111111
:copyable: true
112112

113113
.. input:: /includes/fundamentals/as-avs/AtlasSearchTest.php
114-
:language: php
115-
:dedent:
116-
:start-after: start-search-query
117-
:end-before: end-search-query
114+
:language: php
115+
:dedent:
116+
:start-after: start-search-query
117+
:end-before: end-search-query
118118

119119
.. output::
120-
:language: json
121-
:visible: false
122-
123-
[
124-
{ "title": "Dreaming of Jakarta",
125-
"year": 1990
126-
},
127-
{ "title": "See You in My Dreams",
128-
"year": 1996
129-
}
130-
]
120+
:language: json
121+
:visible: false
122+
123+
[
124+
{ "title": "Dreaming of Jakarta",
125+
"year": 1990
126+
},
127+
{ "title": "See You in My Dreams",
128+
"year": 1996
129+
}
130+
]
131131

132132
You can use the ``search()`` method to perform many types of Atlas
133133
Search queries. Depending on your desired query, you can pass the
@@ -137,55 +137,55 @@ following optional parameters to ``search()``:
137137
:header-rows: 1
138138

139139
* - Optional Parameter
140-
- Type
141-
- Description
140+
- Type
141+
- Description
142142

143143
* - ``index``
144-
- ``string``
145-
- Provides the name of the Atlas Search index to use
144+
- ``string``
145+
- Provides the name of the Atlas Search index to use
146146

147147
* - ``highlight``
148-
- ``array``
149-
- Specifies highlighting options for displaying search terms in their
150-
original context
148+
- ``array``
149+
- Specifies highlighting options for displaying search terms in their
150+
original context
151151

152152
* - ``concurrent``
153-
- ``bool``
154-
- Parallelizes search query across segments on dedicated search nodes
153+
- ``bool``
154+
- Parallelizes search query across segments on dedicated search nodes
155155

156156
* - ``count``
157-
- ``string``
158-
- Specifies the count options for retrieving a count of the results
157+
- ``string``
158+
- Specifies the count options for retrieving a count of the results
159159

160160
* - ``searchAfter``
161-
- ``string``
162-
- Specifies a reference point for returning documents starting
163-
immediately following that point
161+
- ``string``
162+
- Specifies a reference point for returning documents starting
163+
immediately following that point
164164

165165
* - ``searchBefore``
166-
- ``string``
167-
- Specifies a reference point for returning documents starting
168-
immediately preceding that point
166+
- ``string``
167+
- Specifies a reference point for returning documents starting
168+
immediately preceding that point
169169

170170
* - ``scoreDetails``
171-
- ``bool``
172-
- Specifies whether to retrieve a detailed breakdown of the score
173-
for results
171+
- ``bool``
172+
- Specifies whether to retrieve a detailed breakdown of the score
173+
for results
174174

175175
* - ``sort``
176-
- ``array``
177-
- Specifies the fields on which to sort the results
176+
- ``array``
177+
- Specifies the fields on which to sort the results
178178

179179
* - ``returnStoredSource``
180-
- ``bool``
181-
- Specifies whether to perform a full document lookup on the
182-
backend database or return only stored source fields directly
183-
from Atlas Search
180+
- ``bool``
181+
- Specifies whether to perform a full document lookup on the
182+
backend database or return only stored source fields directly
183+
from Atlas Search
184184

185185
* - ``tracking``
186-
- ``array``
187-
- Specifies the tracking option to retrieve analytics information
188-
on the search terms
186+
- ``array``
187+
- Specifies the tracking option to retrieve analytics information
188+
on the search terms
189189

190190
To learn more about these parameters, see the :atlas:`Fields
191191
</atlas-search/aggregation-stages/search/#fields>` section of the
@@ -218,20 +218,20 @@ string ``"jak"`` on the ``title`` field:
218218
:copyable: true
219219

220220
.. input:: /includes/fundamentals/as-avs/AtlasSearchTest.php
221-
:language: php
222-
:dedent:
223-
:start-after: start-auto-query
224-
:end-before: end-auto-query
221+
:language: php
222+
:dedent:
223+
:start-after: start-auto-query
224+
:end-before: end-auto-query
225225

226226
.. output::
227-
:language: json
228-
:visible: false
227+
:language: json
228+
:visible: false
229229

230-
[
231-
"Dreaming of Jakarta",
232-
"Jakob the Liar",
233-
"Emily Calling Jake"
234-
]
230+
[
231+
"Dreaming of Jakarta",
232+
"Jakob the Liar",
233+
"Emily Calling Jake"
234+
]
235235

236236
You can also pass the following optional parameters to the ``autocomplete()``
237237
method to customize the query:
@@ -240,19 +240,19 @@ method to customize the query:
240240
:header-rows: 1
241241

242242
* - Optional Parameter
243-
- Type
244-
- Description
245-
- Default Value
243+
- Type
244+
- Description
245+
- Default Value
246246

247247
* - ``fuzzy``
248-
- ``bool`` or ``array``
249-
- Enables fuzzy search and fuzzy search options
250-
- ``false``
248+
- ``bool`` or ``array``
249+
- Enables fuzzy search and fuzzy search options
250+
- ``false``
251251

252252
* - ``tokenOrder``
253-
- ``string``
254-
- Specifies order in which to search for tokens
255-
- ``'any'``
253+
- ``string``
254+
- Specifies order in which to search for tokens
255+
- ``'any'``
256256

257257
To learn more about these parameters, see the :atlas:`Options
258258
</atlas-search/autocomplete/#options>` section of the

0 commit comments

Comments
 (0)