Skip to content

Commit cc71424

Browse files
algolia-botClaraMullershortcuts
committed
refactor(specs): add interface to manipulate query parameter between composition API & Search API (generated)
algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c7729c5 commit cc71424

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Sources/Composition/Models/CompositionParams.swift

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public struct CompositionParams: Codable, JSONEncodable {
2525
public var filters: String?
2626
/// Page of search results to retrieve.
2727
public var page: Int?
28-
/// Whether the search response should include detailed ranking information.
28+
/// Whether the run response should include detailed ranking information.
2929
public var getRankingInfo: Bool?
3030
public var relevancyStrictness: Int?
3131
public var facetFilters: CompositionFacetFilters?
@@ -51,38 +51,39 @@ public struct CompositionParams: Codable, JSONEncodable {
5151
/// This parameter is ignored if you also specify `insideBoundingBox`.
5252
public var insidePolygon: [[Double]]?
5353
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection
54-
/// dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals`
54+
/// dictionaries This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals`
5555
/// settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk)
56-
/// languages. To support this, you must place the CJK language **first**. **You should always specify a query
56+
/// languages. To support this, you must place the CJK language **first** **You should always specify a query
5757
/// language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/),
5858
/// or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to
5959
/// unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
6060
public var queryLanguages: [CompositionSupportedLanguage]?
6161
/// ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to
62-
/// keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets
62+
/// keyword searches) - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets
6363
/// `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and
6464
/// `analyticsTags`.
6565
public var naturalLanguages: [CompositionSupportedLanguage]?
66-
/// Whether to enable rules.
66+
/// Whether to enable composition rules.
6767
public var enableRules: Bool?
68-
/// Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context)
68+
/// Assigns a rule context to the run query [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context)
6969
/// are strings that you can use to trigger matching rules.
7070
public var ruleContexts: [String]?
7171
/// Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events.
7272
/// For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
7373
public var userToken: String?
74-
/// Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search
75-
/// query and is required for tracking [click and conversion
74+
/// Whether to include a `queryID` attribute in the response The query ID is a unique identifier for a search query
75+
/// and is required for tracking [click and conversion
7676
/// events](https://www.algolia.com/guides/sending-events/getting-started/).
7777
public var clickAnalytics: Bool?
7878
/// Whether this search will be included in Analytics.
7979
public var analytics: Bool?
8080
/// Tags to apply to the query for [segmenting analytics
8181
/// data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
8282
public var analyticsTags: [String]?
83-
/// Whether to enable A/B testing for this search.
83+
/// Whether to enable index level A/B testing for this run request. If the composition mixes multiple indices, the
84+
/// A/B test is ignored.
8485
public var enableABTest: Bool?
85-
/// Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
86+
/// Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/)
8687
/// This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
8788
public var enableReRanking: Bool?
8889

0 commit comments

Comments
 (0)