You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14-26Lines changed: 14 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,33 +284,31 @@ The server response will look like:
284
284
285
285
#### Fields
286
286
287
-
<!--PARAMETERS_LINK-->
288
-
289
287
-`hits` (array): The hits returned by the search, sorted according to the ranking formula.
290
288
291
289
Hits are made of the JSON objects that you stored in the index; therefore, they are mostly schema-less. However, Algolia does enrich them with a few additional fields:
292
290
293
-
-`_highlightResult` (object, optional): Highlighted attributes. *Note: Only returned when [`attributesToHighlight`](#attributestohighlight) is non-empty.*
291
+
-`_highlightResult` (object, optional): Highlighted attributes. *Note: Only returned when [attributesToHighlight](#attributestohighlight) is non-empty.*
294
292
295
293
- `${attribute_name}` (object): Highlighting for one attribute.
296
294
297
-
- `value` (string): Markup text with occurrences highlighted. The tags used for highlighting are specified via [`highlightPreTag`](#highlightpretag) and [`highlightPostTag`](#highlightposttag).
295
+
- `value` (string): Markup text with occurrences highlighted. The tags used for highlighting are specified via [highlightPreTag](#highlightpretag) and [highlightPostTag](#highlightposttag).
298
296
299
297
- `matchLevel` (string, enum) = {`none` | `partial` | `full`}: Indicates how well the attribute matched the search query.
300
298
301
299
- `matchedWords` (array): List of words *from the query* that matched the object.
302
300
303
301
- `fullyHighlighted` (boolean): Whether the entire attribute value is highlighted.
304
302
305
-
-`_snippetResult` (object, optional): Snippeted attributes. *Note: Only returned when [`attributesToSnippet`](#attributestosnippet) is non-empty.*
303
+
-`_snippetResult` (object, optional): Snippeted attributes. *Note: Only returned when [attributesToSnippet](#attributestosnippet) is non-empty.*
306
304
307
305
-`${attribute_name}` (object): Snippeting for the corresponding attribute.
308
306
309
-
- `value` (string): Markup text with occurrences highlighted and optional ellipsis indicators. The tags used for highlighting are specified via [`highlightPreTag`](#highlightpretag) and [`highlightPostTag`](#highlightposttag). The text used to indicate ellipsis is specified via [`snippetEllipsisText`](#snippetellipsistext).
307
+
- `value` (string): Markup text with occurrences highlighted and optional ellipsis indicators. The tags used for highlighting are specified via [highlightPreTag](#highlightpretag) and [highlightPostTag](#highlightposttag). The text used to indicate ellipsis is specified via [snippetEllipsisText](#snippetellipsistext).
310
308
311
309
- `matchLevel` (string, enum) = {`none` | `partial` | `full`}: Indicates how well the attribute matched the search query.
312
310
313
-
-`_rankingInfo` (object, optional): Ranking information. *Note: Only returned when [`getRankingInfo`](#getrankinginfo) is `true`.*
311
+
-`_rankingInfo` (object, optional): Ranking information. *Note: Only returned when [getRankingInfo](#getrankinginfo) is `true`.*
314
312
315
313
-`nbTypos` (integer): Number of typos encountered when matching the record. Corresponds to the `typos` ranking criterion in the ranking formula.
316
314
@@ -330,31 +328,31 @@ The server response will look like:
330
328
331
329
-`filters` (integer): *This field is reserved for advanced usage.* It will be zero in most cases.
332
330
333
-
-`_distinctSeqID` (integer): *Note: Only returned when [`distinct`](#distinct) is non-zero.* When two consecutive results have the same value for the attribute used for "distinct", this field is used to distinguish between them.
331
+
-`_distinctSeqID` (integer): *Note: Only returned when [distinct](#distinct) is non-zero.* When two consecutive results have the same value for the attribute used for "distinct", this field is used to distinguish between them.
334
332
335
333
-`nbHits` (integer): Number of hits that the search query matched.
336
334
337
-
-`page` (integer): Index of the current page (zero-based). See the [`page`](#page) search parameter. *Note: Not returned if you use `offset`/`length` for pagination.*
335
+
-`page` (integer): Index of the current page (zero-based). See the [page](#page) search parameter. *Note: Not returned if you use `offset`/`length` for pagination.*
338
336
339
-
-`hitsPerPage` (integer): Maximum number of hits returned per page. See the [`hitsPerPage`](#hitsperpage) search parameter. *Note: Not returned if you use `offset`/`length` for pagination.*
337
+
-`hitsPerPage` (integer): Maximum number of hits returned per page. See the [hitsPerPage](#hitsperpage) search parameter. *Note: Not returned if you use `offset`/`length` for pagination.*
340
338
341
339
-`nbPages` (integer): Number of pages corresponding to the number of hits. Basically, `ceil(nbHits / hitsPerPage)`. *Note: Not returned if you use `offset`/`length` for pagination.*
342
340
343
341
-`processingTimeMS` (integer): Time that the server took to process the request, in milliseconds. *Note: This does not include network time.*
344
342
345
-
-`query` (string): An echo of the query text. See the [`query`](#query) search parameter.
343
+
-`query` (string): An echo of the query text. See the [query](#query) search parameter.
346
344
347
-
-`queryAfterRemoval` (string, optional): *Note: Only returned when [`removeWordsIfNoResults`](#removewordsifnoresults) is set to `lastWords` or `firstWords`.* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. The removed parts are surrounded by `<em>` tags.
345
+
-`queryAfterRemoval` (string, optional): *Note: Only returned when [removeWordsIfNoResults](#removewordsifnoresults) is set to `lastWords` or `firstWords`.* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. The removed parts are surrounded by `<em>` tags.
348
346
349
347
-`params` (string, URL-encoded): An echo of all search parameters.
350
348
351
349
-`message` (string, optional): Used to return warnings about the query.
352
350
353
-
-`aroundLatLng` (string, optional): *Note: Only returned when [`aroundLatLngViaIP`](#aroundlatlngviaip) is set.* The computed geo location. **Warning: for legacy reasons, this parameter is a string and not an object.** Format: `${lat},${lng}`, where the latitude and longitude are expressed as decimal floating point numbers.
351
+
-`aroundLatLng` (string, optional): *Note: Only returned when [aroundLatLngViaIP](#aroundlatlngviaip) is set.* The computed geo location. **Warning: for legacy reasons, this parameter is a string and not an object.** Format: `${lat},${lng}`, where the latitude and longitude are expressed as decimal floating point numbers.
354
352
355
353
-`automaticRadius` (integer, optional): *Note: Only returned for geo queries without an explicitly specified radius (see `aroundRadius`).* The automatically computed radius. **Warning: for legacy reasons, this parameter is a string and not an integer.**
356
354
357
-
When [`getRankingInfo`](#getrankinginfo) is set to `true`, the following additional fields are returned:
355
+
When [getRankingInfo](#getrankinginfo) is set to `true`, the following additional fields are returned:
358
356
359
357
-`serverUsed` (string): Actual host name of the server that processed the request. (Our DNS supports automatic failover and load balancing, so this may differ from the host name used in the request.)
360
358
@@ -366,7 +364,7 @@ When [`getRankingInfo`](#getrankinginfo) is set to `true`, the following additio
366
364
367
365
... and ranking information is also added to each of the hits (see above).
368
366
369
-
When [`facets`](#facets) is non-empty, the following additional fields are returned:
367
+
When [facets](#facets) is non-empty, the following additional fields are returned:
370
368
371
369
-`facets` (object): Maps each facet name to the corresponding facet counts:
372
370
@@ -386,13 +384,10 @@ When [`facets`](#facets) is non-empty, the following additional fields are retur
386
384
387
385
- `sum` (integer | float): The sum of all values in the result set.
388
386
389
-
-`exhaustiveFacetsCount` (boolean): Whether the counts are exhaustive (`true`) or approximate (`false`). *Note: When using [`distinct`](#distinct), the facet counts cannot be exhaustive.*
390
-
391
-
<!--/PARAMETERS_LINK-->
387
+
-`exhaustiveFacetsCount` (boolean): Whether the counts are exhaustive (`true`) or approximate (`false`). *Note: When using [distinct](#distinct), the facet counts cannot be exhaustive.*
392
388
393
389
### Search Parameters
394
390
395
-
<!--PARAMETERS_LINK-->
396
391
Here is the list of parameters you can use with the search method (`search`[scope](#scope)):
397
392
Parameters that can also be used in a setSettings also have the `indexing`[scope](#scope)
398
393
@@ -471,8 +466,6 @@ Parameters that can also be used in a setSettings also have the `indexing` [scop
0 commit comments