Skip to content

Commit 844e57f

Browse files
gazconroyGary Conroyshortcuts
authoredOct 7, 2024··
fix(specs): correct typos is Search API (#3898)
Co-authored-by: Gary Conroy <gary.conroy@LON-M3P-GConroy.local> Co-authored-by: shortcuts <vannicattec@gmail.com>
1 parent edf0ca9 commit 844e57f

File tree

15 files changed

+31
-29
lines changed

15 files changed

+31
-29
lines changed
 

‎.github/workflows/check.yml

+1
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ jobs:
531531
- uses: actions/checkout@v4
532532
with:
533533
fetch-depth: 0
534+
ref: ${{ github.event.pull_request.head.ref }}
534535
token: ${{ secrets.ALGOLIA_BOT_TOKEN != '' && secrets.ALGOLIA_BOT_TOKEN || secrets.GITHUB_TOKEN }}
535536

536537
- name: Download all artifacts

‎.github/workflows/cleanup.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- run: git push -d origin generated/${{ github.head_ref }} || true
17+
- run: git push -d origin "generated/${{ github.head_ref }}" || true

‎specs/common/schemas/IndexSettings.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ baseIndexSettings:
2929
**Modifiers**
3030
3131
- `filterOnly("ATTRIBUTE")`.
32-
Allows using this attribute as a filter, but doesn't evalue the facet values.
32+
Allows the attribute to be used as a filter but doesn't evaluate the facet values.
3333
3434
- `searchable("ATTRIBUTE")`.
3535
Allows searching for facet values.
@@ -53,7 +53,7 @@ baseIndexSettings:
5353
If you want to offer a different ranking or sorting of your search results, you'll use replica indices.
5454
All index operations on a primary index are automatically forwarded to its replicas.
5555
To add a replica index, you must provide the complete set of replicas to this parameter.
56-
If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer by synced with the primary index.
56+
If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index.
5757
5858
**Modifier**
5959
@@ -196,7 +196,7 @@ baseIndexSettings:
196196
By default, all numeric attributes are available as numerical filters.
197197
For faster indexing, reduce the number of numeric attributes.
198198
199-
If you want to turn off filtering for all numeric attributes, specifiy an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`.
199+
To turn off filtering for all numeric attributes, specify an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`.
200200
201201
**Modifier**
202202
@@ -246,7 +246,7 @@ baseIndexSettings:
246246
- `unordered("ATTRIBUTE")`.
247247
Ignore the position of a match within the attribute.
248248
249-
Without modifier, matches at the beginning of an attribute rank higer than matches at the end.
249+
Without a modifier, matches at the beginning of an attribute rank higher than matches at the end.
250250
default: []
251251
x-categories:
252252
- Attributes
@@ -587,7 +587,7 @@ indexSettingsAsSearchParams:
587587
588588
- If `optionalWords` has less than 10 words, the required number of matched words increases by 1:
589589
results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words.
590-
- If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words dividied by 5 (rounded down).
590+
- If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down).
591591
For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words.
592592
593593
For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
@@ -604,7 +604,7 @@ indexSettingsAsSearchParams:
604604
Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
605605
Attribute names are case-sensitive.
606606
607-
This can be useful for attributes with long values, where the likelyhood of an exact match is high,
607+
This can be useful for attributes with long values, where the likelihood of an exact match is high,
608608
such as product descriptions.
609609
Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes.
610610
This reduces the impact of individual attributes with a lot of content on ranking.
@@ -663,7 +663,7 @@ indexSettingsAsSearchParams:
663663
and either "home" or "house" are highlighted.
664664
665665
With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records,
666-
but all occurences of "house" are replaced by "home" in the highlighted response.
666+
but all occurrences of "house" are replaced by "home" in the highlighted response.
667667
default: false
668668
x-categories:
669669
- Highlighting and Snippeting
@@ -802,7 +802,7 @@ queryType:
802802
description: |
803803
Determines if and how query words are interpreted as prefixes.
804804
805-
By default, only the last query word is treated as prefix (`prefixLast`).
805+
By default, only the last query word is treated as a prefix (`prefixLast`).
806806
To turn off prefix search, use `prefixNone`.
807807
Avoid `prefixAll`, which treats all query words as prefixes.
808808
This might lead to counterintuitive results and makes your search slower.
@@ -925,7 +925,7 @@ typoTolerance:
925925
description: |
926926
Whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied.
927927
928-
If typo tolerance is true, `min`, or `strict`, [word splitting and concetenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) is also active.
928+
If typo tolerance is true, `min`, or `strict`, [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) are also active.
929929
oneOf:
930930
- type: boolean
931931
default: true
@@ -992,7 +992,7 @@ renderingContent:
992992
description: |
993993
Extra data that can be used in the search UI.
994994
995-
You can use this to control aspects of your search UI, such as, the order of facet names and values
995+
You can use this to control aspects of your search UI, such as the order of facet names and values
996996
without changing your frontend code.
997997
type: object
998998
additionalProperties: false

‎specs/common/schemas/SearchParams.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ aroundLatLng:
321321
description: |
322322
Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude.
323323
324-
Only records included within circle around this central location are included in the results.
324+
Only records included within a circle around this central location are included in the results.
325325
The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings.
326326
This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
327327
example: '40.71,-74.01'
@@ -455,7 +455,8 @@ numericFilters:
455455
456456
**Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.**
457457
458-
You can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`. Comparsions are precise up to 3 decimals.
458+
You can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`.
459+
Comparisons are precise up to 3 decimals.
459460
You can also provide ranges: `facet:<lower> TO <upper>`. The range includes the lower and upper boundaries.
460461
The same combination rules apply as for `facetFilters`.
461462
example: [['inStock = 1', 'deliveryDate < 1441755506'], 'price < 1000']

‎specs/search/paths/keys/common/schemas.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ apiKey:
5959
To restrict this API key to specific IP addresses, add the `restrictSources` parameter.
6060
You can only add a single source, but you can provide a range of IP addresses.
6161
62-
Creating an API key fails if the request is made from an IP address that's outside the restricted range.
62+
Creating an API key fails if the request is made from an IP address outside the restricted range.
6363
example: 'typoTolerance=strict&restrictSources=192.168.1.0/24'
6464
default: ''
6565
referers:

‎specs/search/paths/manage_indices/operationIndex.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ post:
2323
**Move**
2424
2525
- Moving a source index that doesn't exist is ignored without returning an error.
26-
- When moving an index, the analytics data keep their original name and a new set of analytics data is started for the new name.
26+
- When moving an index, the analytics data keeps its original name, and a new set of analytics data is started for the new name.
2727
To access the original analytics in the dashboard, create an index with the original name.
2828
- If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices.
2929
- Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).

‎specs/search/paths/objects/object.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ put:
6262
- $ref: '../../../common/parameters.yml#/ObjectID'
6363
requestBody:
6464
required: true
65-
description: The record, a schemaless object with attributes that are useful in the context of search and discovery.
65+
description: The record. A schemaless object with attributes that are useful in the context of search and discovery.
6666
content:
6767
application/json:
6868
schema:

‎specs/search/paths/objects/objects.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ post:
1919
- $ref: '../../../common/parameters.yml#/IndexName'
2020
requestBody:
2121
required: true
22-
description: The record, a schemaless object with attributes that are useful in the context of search and discovery.
22+
description: The record. A schemaless object with attributes that are useful in the context of search and discovery.
2323
content:
2424
application/json:
2525
schema:

‎specs/search/paths/objects/partialUpdate.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ post:
77
summary: Add or update attributes
88
x-codegen-request-body-name: attributesToUpdate
99
description: |
10-
Adds new attributes to a record, or update existing ones.
10+
Adds new attributes to a record, or updates existing ones.
1111
1212
- If a record with the specified object ID doesn't exist,
1313
a new record is added to the index **if** `createIfNotExists` is true.
@@ -23,7 +23,7 @@ post:
2323
- Remove: remove all matching number or string elements from an array attribute made of numbers or strings
2424
- AddUnique: add a number or string element to an array attribute made of numbers or strings only if it's not already present
2525
- IncrementFrom: increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the current value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only creates it if you pass an IncrementFrom value of 0.
26-
- IncrementSet: increment a numeric integer attribute only if the provided value is greater than the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet value that's greater than 0.
26+
- IncrementSet: increment a numeric integer attribute only if the provided value is greater than the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet value greater than 0.
2727
2828
You can specify an operation by providing an object with the attribute to update as the key and its value being an object with the following properties:
2929

‎specs/search/paths/rules/common/schemas.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ anchoring:
6969
description: |
7070
Which part of the search query the pattern should match:
7171
72-
- `startsWith`. The pattern must match the begginning of the query.
72+
- `startsWith`. The pattern must match the beginning of the query.
7373
- `endsWith`. The pattern must match the end of the query.
7474
- `is`. The pattern must match the query exactly.
7575
- `contains`. The pattern must match anywhere in the query.
7676
77-
Empty queries are only allowed as pattern with `anchoring: is`.
77+
Empty queries are only allowed as patterns with `anchoring: is`.
7878
enum: [is, startsWith, endsWith, contains]
7979

8080
consequence:

‎specs/search/paths/search/browse.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ post:
2828
- `getRankingInfo`: `false`
2929
- `ignorePlurals`: `false`
3030
- `optionalFilters`: `[]`
31-
- `typoTolerance`: `true` or `false` (`min` and `strict` is evaluated to `true`)
31+
- `typoTolerance`: `true` or `false` (`min` and `strict` evaluate to `true`)
3232
3333
If you send these parameters with your browse requests, they'll be ignored.
3434
parameters:

‎specs/search/paths/search/search.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ post:
99
- search
1010
summary: Search multiple indices
1111
description: |
12-
Sends multiple search request to one or more indices.
12+
Sends multiple search requests to one or more indices.
1313
1414
This can be useful in these cases:
1515

‎specs/search/paths/search/searchSingleIndex.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ post:
88
- search
99
summary: Search an index
1010
description: |
11-
Searches a single index and return matching search results (_hits_).
11+
Searches a single index and returns matching search results (_hits_).
1212
1313
This method lets you retrieve up to 1,000 hits.
1414
If you need more, use the [`browse` operation](#tag/Search/operation/browse) or increase the `paginatedLimitedTo` index setting.

‎specs/search/paths/synonyms/synonym.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ get:
66
- settings
77
summary: Retrieve a synonym
88
description: |
9-
Retrieves a syonym by its ID.
9+
Retrieves a synonym by its ID.
1010
To find the object IDs for your synonyms,
1111
use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
1212
parameters:

‎specs/search/spec.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.2
22
info:
33
title: Search API
44
description: |
5-
The Algolia Search API lets you search, configure, and mange your indices and records.
5+
The Algolia Search API lets you search, configure, and manage your indices and records.
66
77
## Client libraries
88
@@ -26,7 +26,7 @@ info:
2626
2727
## Retry strategy
2828
29-
To guarantee a high availability, implement a retry strategy for all API requests using the URLs of your servers as fallbacks:
29+
To guarantee high availability, implement a retry strategy for all API requests using the URLs of your servers as fallbacks:
3030
3131
- `https://{APPLICATION_ID}-1.algolianet.com`
3232
- `https://{APPLICATION_ID}-2.algolianet.com`
@@ -170,8 +170,8 @@ tags:
170170
Create, update, delete, and search for rules.
171171
172172
Rules are _if-then_ statements that you can use to curate search results.
173-
Rules have _conditions_ which can trigger _consequences_.
174-
Consequences are changes to the search results, such as changing the order of search results, or boosting a facet.
173+
Rules have _conditions_ that can trigger _consequences_.
174+
Consequences are changes to the search results, such as changing the order of search results or boosting a facet.
175175
This can be useful for tuning specific queries or for merchandising.
176176
externalDocs:
177177
url: https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/

0 commit comments

Comments
 (0)
Please sign in to comment.