Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit b476a94

Browse files
author
maxiloc
authored
Merge pull request #173 from algoliareadmebot/master
Update README
2 parents fab0bd6 + fd1bb04 commit b476a94

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

README.md

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -284,33 +284,31 @@ The server response will look like:
284284

285285
#### Fields
286286

287-
<!--PARAMETERS_LINK-->
288-
289287
- `hits` (array): The hits returned by the search, sorted according to the ranking formula.
290288

291289
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:
292290

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.*
294292

295293
- `${attribute_name}` (object): Highlighting for one attribute.
296294

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).
298296

299297
- `matchLevel` (string, enum) = {`none` | `partial` | `full`}: Indicates how well the attribute matched the search query.
300298

301299
- `matchedWords` (array): List of words *from the query* that matched the object.
302300

303301
- `fullyHighlighted` (boolean): Whether the entire attribute value is highlighted.
304302

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.*
306304

307305
- `${attribute_name}` (object): Snippeting for the corresponding attribute.
308306

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).
310308

311309
- `matchLevel` (string, enum) = {`none` | `partial` | `full`}: Indicates how well the attribute matched the search query.
312310

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`.*
314312

315313
- `nbTypos` (integer): Number of typos encountered when matching the record. Corresponds to the `typos` ranking criterion in the ranking formula.
316314

@@ -330,31 +328,31 @@ The server response will look like:
330328

331329
- `filters` (integer): *This field is reserved for advanced usage.* It will be zero in most cases.
332330

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.
334332

335333
- `nbHits` (integer): Number of hits that the search query matched.
336334

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.*
338336

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.*
340338

341339
- `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.*
342340

343341
- `processingTimeMS` (integer): Time that the server took to process the request, in milliseconds. *Note: This does not include network time.*
344342

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.
346344

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.
348346

349347
- `params` (string, URL-encoded): An echo of all search parameters.
350348

351349
- `message` (string, optional): Used to return warnings about the query.
352350

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.
354352

355353
- `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.**
356354

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:
358356

359357
- `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.)
360358

@@ -366,7 +364,7 @@ When [`getRankingInfo`](#getrankinginfo) is set to `true`, the following additio
366364

367365
... and ranking information is also added to each of the hits (see above).
368366

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:
370368

371369
- `facets` (object): Maps each facet name to the corresponding facet counts:
372370

@@ -386,13 +384,10 @@ When [`facets`](#facets) is non-empty, the following additional fields are retur
386384

387385
- `sum` (integer | float): The sum of all values in the result set.
388386

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.*
392388

393389
### Search Parameters
394390

395-
<!--PARAMETERS_LINK-->
396391
Here is the list of parameters you can use with the search method (`search` [scope](#scope)):
397392
Parameters that can also be used in a setSettings also have the `indexing` [scope](#scope)
398393

@@ -471,8 +466,6 @@ Parameters that can also be used in a setSettings also have the `indexing` [scop
471466
- [minProximity](#minproximity) `search`, `settings`
472467
- [responseFields](#responsefields) `search`, `settings`
473468

474-
<!--/PARAMETERS_LINK-->
475-
476469
### Multiple queries - `multipleQueriesAsync`
477470

478471
You can send multiple queries with a single API call using a batch of queries:
@@ -817,8 +810,6 @@ index.waitTask(setSettingsResult.getString("taskID"));
817810

818811
### Index settings parameters
819812

820-
<!--PARAMETERS_LINK-->
821-
822813
Here is the list of parameters you can use with the set settings method (`settings` [scope](#scope)).
823814

824815

@@ -884,9 +875,6 @@ Parameters that can be overridden at search time also have the `search` [scope](
884875
- [altCorrections](#altcorrections) `settings`
885876
- [placeholders](#placeholders) `settings`
886877

887-
<!--/PARAMETERS_LINK-->
888-
889-
890878
## Parameters
891879

892880
### Overview

0 commit comments

Comments
 (0)