Skip to content

Commit 8e176f7

Browse files
algolia-botgazconroyGary Conroyshortcuts
committed
fix(specs): correct typos is Search API (generated)
algolia/api-clients-automation#3898 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: gazconroy <[email protected]> Co-authored-by: Gary Conroy <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 6697f06 commit 8e176f7

30 files changed

+144
-145
lines changed

Sources/Recommend/Models/BaseRecommendIndexSettings.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ public struct BaseRecommendIndexSettings: Codable, JSONEncodable {
9595
/// included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words,
9696
/// the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001
9797
/// to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words
98-
/// increases by the number of optional words dividied by 5 (rounded down). For example, with 18 optional words:
98+
/// increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words:
9999
/// results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information,
100100
/// see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
101101
public var optionalWords: [String]?
102102
/// 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).
103-
/// Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of
103+
/// Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of
104104
/// an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these
105105
/// attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a
106106
/// lot of content on ranking.
@@ -122,7 +122,7 @@ public struct BaseRecommendIndexSettings: Codable, JSONEncodable {
122122
/// even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records
123123
/// matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are
124124
/// highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same
125-
/// records, but all occurences of \"house\" are replaced by \"home\" in the highlighted response.
125+
/// records, but all occurrences of \"house\" are replaced by \"home\" in the highlighted response.
126126
public var replaceSynonymsInHighlight: Bool?
127127
/// Minimum proximity score for two matching words. This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity)
128128
/// by equally scoring matches that are farther apart. For example, if `minProximity` is 2, neighboring matches and

Sources/Recommend/Models/BaseRecommendSearchParams.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public struct BaseRecommendSearchParams: Codable, JSONEncodable {
4545
/// have the same facet values for the `attributeForDistinct`.
4646
public var facetingAfterDistinct: Bool?
4747
/// Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only
48-
/// records included within circle around this central location are included in the results. The radius of the
48+
/// records included within a circle around this central location are included in the results. The radius of the
4949
/// circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you
5050
/// also specify `insidePolygon` or `insideBoundingBox`.
5151
public var aroundLatLng: String?

Sources/Recommend/Models/FallbackParams.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public struct FallbackParams: Codable, JSONEncodable {
4545
/// have the same facet values for the `attributeForDistinct`.
4646
public var facetingAfterDistinct: Bool?
4747
/// Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only
48-
/// records included within circle around this central location are included in the results. The radius of the
48+
/// records included within a circle around this central location are included in the results. The radius of the
4949
/// circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you
5050
/// also specify `insidePolygon` or `insideBoundingBox`.
5151
public var aroundLatLng: String?
@@ -100,18 +100,18 @@ public struct FallbackParams: Codable, JSONEncodable {
100100
/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/).
101101
/// Facets are attributes that let you categorize search results. They can be used for filtering search results. By
102102
/// default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** -
103-
/// `filterOnly(\"ATTRIBUTE\")`. Allows using this attribute as a filter, but doesn't evalue the facet values. -
104-
/// `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates
105-
/// the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply
106-
/// this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
103+
/// `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn't evaluate the facet
104+
/// values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`.
105+
/// Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You
106+
/// can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
107107
public var attributesForFaceting: [String]?
108108
/// Creates [replica
109109
/// indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/).
110110
/// Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you
111111
/// want to offer a different ranking or sorting of your search results, you'll use replica indices. All index
112112
/// operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must
113113
/// provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns
114-
/// into a regular, standalone index that will no longer by synced with the primary index. **Modifier** -
114+
/// into a regular, standalone index that will no longer be synced with the primary index. **Modifier** -
115115
/// `virtual(\"REPLICA\")`. Create a virtual replica, Virtual replicas don't increase the number of records and
116116
/// are optimized for [Relevant
117117
/// sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).
@@ -160,9 +160,9 @@ public struct FallbackParams: Codable, JSONEncodable {
160160
public var allowCompressionOfIntegerArray: Bool?
161161
/// Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters).
162162
/// Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For
163-
/// faster indexing, reduce the number of numeric attributes. If you want to turn off filtering for all numeric
164-
/// attributes, specifiy an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`.
165-
/// **Modifier** - `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
163+
/// faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes,
164+
/// specify an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`. **Modifier** -
165+
/// `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
166166
public var numericAttributesForFiltering: [String]?
167167
/// Controls which separators are indexed. Separators are all non-letter characters except spaces and currency
168168
/// characters, such as $€£¥. By default, separator characters aren't indexed. With `separatorsToIndex`, Algolia
@@ -175,8 +175,8 @@ public struct FallbackParams: Codable, JSONEncodable {
175175
/// higher in the list of `searchableAttributes` rank first. To make matches in two attributes rank equally, include
176176
/// them in a comma-separated string, such as `\"title,alternate_title\"`. Attributes with the same priority are
177177
/// always unordered. For more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/).
178-
/// **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without
179-
/// modifier, matches at the beginning of an attribute rank higer than matches at the end.
178+
/// **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without a
179+
/// modifier, matches at the beginning of an attribute rank higher than matches at the end.
180180
public var searchableAttributes: [String]?
181181
/// An object with custom data. You can store up to 32kB as custom data.
182182
public var userData: AnyCodable?
@@ -276,12 +276,12 @@ public struct FallbackParams: Codable, JSONEncodable {
276276
/// included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words,
277277
/// the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001
278278
/// to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words
279-
/// increases by the number of optional words dividied by 5 (rounded down). For example, with 18 optional words:
279+
/// increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words:
280280
/// results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information,
281281
/// see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
282282
public var optionalWords: [String]?
283283
/// 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).
284-
/// Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of
284+
/// Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of
285285
/// an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these
286286
/// attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a
287287
/// lot of content on ranking.
@@ -303,7 +303,7 @@ public struct FallbackParams: Codable, JSONEncodable {
303303
/// even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records
304304
/// matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are
305305
/// highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same
306-
/// records, but all occurences of \"house\" are replaced by \"home\" in the highlighted response.
306+
/// records, but all occurrences of \"house\" are replaced by \"home\" in the highlighted response.
307307
public var replaceSynonymsInHighlight: Bool?
308308
/// Minimum proximity score for two matching words. This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity)
309309
/// by equally scoring matches that are farther apart. For example, if `minProximity` is 2, neighboring matches and

Sources/Recommend/Models/RecommendBaseIndexSettings.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ public struct RecommendBaseIndexSettings: Codable, JSONEncodable {
1010
/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/).
1111
/// Facets are attributes that let you categorize search results. They can be used for filtering search results. By
1212
/// default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** -
13-
/// `filterOnly(\"ATTRIBUTE\")`. Allows using this attribute as a filter, but doesn't evalue the facet values. -
14-
/// `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates
15-
/// the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply
16-
/// this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
13+
/// `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn't evaluate the facet
14+
/// values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`.
15+
/// Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You
16+
/// can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
1717
public var attributesForFaceting: [String]?
1818
/// Creates [replica
1919
/// indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/).
2020
/// Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you
2121
/// want to offer a different ranking or sorting of your search results, you'll use replica indices. All index
2222
/// operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must
2323
/// provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns
24-
/// into a regular, standalone index that will no longer by synced with the primary index. **Modifier** -
24+
/// into a regular, standalone index that will no longer be synced with the primary index. **Modifier** -
2525
/// `virtual(\"REPLICA\")`. Create a virtual replica, Virtual replicas don't increase the number of records and
2626
/// are optimized for [Relevant
2727
/// sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).
@@ -70,9 +70,9 @@ public struct RecommendBaseIndexSettings: Codable, JSONEncodable {
7070
public var allowCompressionOfIntegerArray: Bool?
7171
/// Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters).
7272
/// Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For
73-
/// faster indexing, reduce the number of numeric attributes. If you want to turn off filtering for all numeric
74-
/// attributes, specifiy an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`.
75-
/// **Modifier** - `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
73+
/// faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes,
74+
/// specify an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`. **Modifier** -
75+
/// `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
7676
public var numericAttributesForFiltering: [String]?
7777
/// Controls which separators are indexed. Separators are all non-letter characters except spaces and currency
7878
/// characters, such as $€£¥. By default, separator characters aren't indexed. With `separatorsToIndex`, Algolia
@@ -85,8 +85,8 @@ public struct RecommendBaseIndexSettings: Codable, JSONEncodable {
8585
/// higher in the list of `searchableAttributes` rank first. To make matches in two attributes rank equally, include
8686
/// them in a comma-separated string, such as `\"title,alternate_title\"`. Attributes with the same priority are
8787
/// always unordered. For more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/).
88-
/// **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without
89-
/// modifier, matches at the beginning of an attribute rank higer than matches at the end.
88+
/// **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without a
89+
/// modifier, matches at the beginning of an attribute rank higher than matches at the end.
9090
public var searchableAttributes: [String]?
9191
/// An object with custom data. You can store up to 32kB as custom data.
9292
public var userData: AnyCodable?

0 commit comments

Comments
 (0)