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.
Update README Android
[This list might not be relevant]
Add a warning informing about the maxValuesPerFacet hard limit of 1000 (#125)
Merge branch 'master' of github.com:algolia/algoliasearch-client-readme-generator
improve api keys section
iteration on api keys
Fix some typos
iteration on api keys
iteration on api keys
Add TOC for recently added geo search parameters
Add missing `aroundRadius`, `aroundPrecision` and `minimumAroundRadius` search parameters
Reformatting and rephrasing
Ensure code blocks and lists are separated by a blank line
Some Markdown processors (such as that used by Jazzy) are very picky about that. If a list or a code block is not separated from the previous paragraph by a blank line, it gets treated as a continuation of the paragraph, resulting in the loss of formatting.
fix case sensitive issue
Add parameter `minProximity`
Add parameter `replaceSynonymsInHighlight`
Add search parameter `synonyms`
Add parameter `analyticsTags`
Fix search parameter TOCs
I added a small shell script to compute a draft of the TOC from the file’s contents. [ci skip]
@@ -332,11 +332,11 @@ The server response will look like:
332
332
333
333
-`nbHits` (integer): Number of hits that the search query matched.
334
334
335
-
-`page` (integer): Index of the current page (zero-based). See the [`page`](#page) search parameter.
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.*
336
336
337
-
-`hitsPerPage` (integer): Maximum number of hits returned per page. See the [`hitsPerPage`](#hitsperpage) search parameter.
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.*
338
338
339
-
-`nbPages` (integer): Number of pages corresponding to the number of hits. Basically, `ceil(nbHits / hitsPerPage)`.
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.*
340
340
341
341
-`processingTimeMS` (integer): Time that the server took to process the request, in milliseconds. *Note: This does not include network time.*
342
342
@@ -356,7 +356,7 @@ When [`getRankingInfo`](#getrankinginfo) is set to `true`, the following additio
356
356
357
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.)
358
358
359
-
-`parsedQuery` (string): The query string that will be searched, after normalization.
359
+
-`parsedQuery` (string): The query string that will be searched, after normalization. Normalization includes removing stop words (if [removeStopWords](#removestopwords) is enabled), and transforming portions of the query string into phrase queries (see [advancedSyntax](#advancedsyntax)).
360
360
361
361
-`timeoutCounts` (boolean): Whether a timeout was hit when computing the facet counts. When `true`, the counts will be interpolated (i.e. approximate). See also `exhaustiveFacetsCount`.
362
362
@@ -400,6 +400,7 @@ Parameters that can also be used in a setSettings also have the `indexing` [scop
You can specify a `strategy` parameter to optimize your multiple queries:
496
+
497
+
- `none`:Execute the sequence of queries until the end.
498
+
- `stopIfEnoughMatches`:Execute the sequence of queries until the number of hits is reached by the sum of hits.
499
+
500
+
#### Response
501
+
502
+
The resulting JSON contains the following fields:
503
+
504
+
- `results` (array):The results for each request, in the order they were submitted. The contents are the same as in [Search in an index](#search-in-an-index---searchasync).
505
+
506
+
Each result also includes the following additional fields:
507
+
508
+
- `index` (string):The name of the targeted index.
509
+
510
+
- `processed` (boolean, optional):*Note:Only returned when `strategy` is `stopIfEnoughmatches`.*Whether the query was processed.
511
+
512
+
513
+
463
514
### Find by IDs- `getObjectsAsync`
464
515
465
516
You can easily retrieve an object using its `objectID` and optionally specify a comma separated list of attributes you want:
@@ -1148,6 +1205,10 @@ Limit the number of facet values returned for each facet.
1148
1205
1149
1206
For example, `maxValuesPerFacet=10` will retrieve a maximum of 10 values per facet.
1150
1207
1208
+
**Warnings**
1209
+
1210
+
- The engine has a hard limit on the `maxValuesPerFacet` of `1000`. Any value above that will be interpreted by the engine as being `1000`.
1211
+
1151
1212
### Highlighting / Snippeting
1152
1213
1153
1214
#### attributesToHighlight
@@ -1247,6 +1308,28 @@ Pagination parameter used to select the page to retrieve.
1247
1308
1248
1309
Pagination parameter used to select the number of hits per page.
1249
1310
1311
+
#### offset
1312
+
1313
+
- scope: `search`
1314
+
- type: `integer`
1315
+
- default: `null`
1316
+
1317
+
1318
+
Offset of the first hit to return (zero-based).
1319
+
1320
+
**Warning:** In most cases, `page`/`hitsPerPage` is the recommended method for pagination; `offset`/`length` is reserved for advanced use.
1321
+
1322
+
#### length
1323
+
1324
+
- scope: `search`
1325
+
- type: `integer`
1326
+
- default: `null`
1327
+
1328
+
1329
+
Number of hits to return.
1330
+
1331
+
**Warning:** In most cases, `page`/`hitsPerPage` is the recommended method for pagination; `offset`/`length` is reserved for advanced use.
1332
+
1250
1333
### Typos
1251
1334
1252
1335
#### minWordSizefor1Typo
@@ -1770,6 +1853,33 @@ For example, `[["category:Book","category:Movie"],"author:John%20Doe"]`.
1770
1853
1771
1854
If set to false, this query will not be taken into account in the analytics feature.
1772
1855
1856
+
#### analyticsTags
1857
+
1858
+
- scope: `search`
1859
+
- type: `array of strings`
1860
+
-default: `null`
1861
+
1862
+
1863
+
If set, tag your query with the specified identifiers. Tags can then be used in the Analytics to analyze a subset of searches only.
1864
+
1865
+
#### synonyms
1866
+
1867
+
- scope: `search`
1868
+
- type: `boolean`
1869
+
-default: `true`
1870
+
1871
+
1872
+
If set to `false`, the search will not use the synonyms defined for the targeted index.
1873
+
1874
+
#### replaceSynonymsInHighlight
1875
+
1876
+
- scope: `search`, `settings`
1877
+
- type: `boolean`
1878
+
-default: `true`
1879
+
1880
+
1881
+
If set to `false`, words matched via synonym expansion will not be replaced by the matched synonym in the highlighted result.
1882
+
1773
1883
#### placeholders
1774
1884
1775
1885
- scope: `settings`
@@ -1817,6 +1927,19 @@ For example:
1817
1927
]
1818
1928
```
1819
1929
1930
+
#### minProximity
1931
+
1932
+
- scope: `search`, `settings`
1933
+
- type: `integer`
1934
+
-default: `1`
1935
+
1936
+
1937
+
Configure the precision of the `proximity` ranking criterion. Bydefault, the minimum (and best) proximity value distance between 2 matching words is 1.Setting it to 2 (or 3) would allow 1 (or 2) words to be found between the matching words without degrading the proximity ranking value.
1938
+
1939
+
Considering the query *“javascript framework”*, if you set `minProximity=2`, the records *“JavaScript framework”* and *“JavaScript charting framework”* will get the same proximity score, even if the second contains a word between the two matching words.
1940
+
1941
+
**Note:** the maximum `minProximity` that can be set is 7.Any higher value will disable the `proximity` criterion from the ranking formula.
1942
+
1820
1943
1821
1944
## ManageIndices
1822
1945
@@ -2028,47 +2151,6 @@ iterator.start();
2028
2151
```
2029
2152
2030
2153
2031
-
### Multiple queries - `multipleQueriesAsync`
2032
-
2033
-
You can send multiple queries with a single API call using a batch of queries:
You can specify a `strategy` parameter to optimize your multiple queries:
2055
-
2056
-
- `none`:Execute the sequence of queries until the end.
2057
-
- `stopIfEnoughMatches`:Execute the sequence of queries until the number of hits is reached by the sum of hits.
2058
-
2059
-
#### Response
2060
-
2061
-
The resulting JSON contains the following fields:
2062
-
2063
-
- `results` (array):The results for each request, in the order they were submitted. The contents are the same as in [Search in an index](#search-in-an-index---searchasync).
2064
-
2065
-
Each result also includes the following additional fields:
2066
-
2067
-
- `index` (string):The name of the targeted index.
2068
-
2069
-
- `processed` (boolean, optional):*Note:Only returned when `strategy` is `stopIfEnoughmatches`.*Whether the query was processed.
0 commit comments