Skip to content

Commit f516db4

Browse files
algolia-botClaraMullershortcutsgavinwade12
committed
refactor(specs): mutualise code between Search API & Comp API for search query parameters (generated)
algolia/api-clients-automation#5125 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: shortcuts <[email protected]> Co-authored-by: Gavin Wade <[email protected]>
1 parent 0428175 commit f516db4

16 files changed

+609
-604
lines changed

src/main/scala/algoliasearch/composition/Params.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ import algoliasearch.composition.SupportedLanguage._
5656
* Page of search results to retrieve.
5757
* @param getRankingInfo
5858
* Whether the run response should include detailed ranking information.
59+
* @param relevancyStrictness
60+
* Relevancy threshold below which less relevant results aren't included in the results You can only set
61+
* `relevancyStrictness` on [virtual replica
62+
* indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas).
63+
* Use this setting to strike a balance between the relevance and number of returned results.
5964
* @param hitsPerPage
6065
* Number of hits per page.
6166
* @param aroundLatLng

src/main/scala/algoliasearch/recommend/BaseRecommendIndexSettings.scala

Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.

src/main/scala/algoliasearch/recommend/BaseRecommendSearchParams.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import algoliasearch.recommend.SupportedLanguage._
3434
/** BaseRecommendSearchParams
3535
*
3636
* @param similarQuery
37-
* Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery`
38-
* parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. -
39-
* `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the
37+
* Keywords to be used instead of the search query to conduct a more broader search Using the `similarQuery`
38+
* parameter changes other settings - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. -
39+
* `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords` Since the
4040
* `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to
4141
* narrow down the list of results.
4242
* @param filters
@@ -54,17 +54,17 @@ import algoliasearch.recommend.SupportedLanguage._
5454
* matches if it matches at least one element of the array. For more information, see
5555
* [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
5656
* @param sumOrFiltersScores
57-
* Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is
57+
* Whether to sum all filter scores If true, all filter scores are summed. Otherwise, the maximum filter score is
5858
* kept. For more information, see [filter
5959
* scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
6060
* @param restrictSearchableAttributes
6161
* Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
6262
* @param facets
63-
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values.
63+
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values
6464
* To retrieve all facets, use the wildcard character `*`. For more information, see
6565
* [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
6666
* @param facetingAfterDistinct
67-
* Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when
67+
* Whether faceting should be applied after deduplication with `distinct` This leads to accurate facet counts when
6868
* using faceting in combination with `distinct`. It's usually better to use `afterDistinct` modifiers in the
6969
* `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have
7070
* the same facet values for the `attributeForDistinct`.
@@ -85,15 +85,15 @@ import algoliasearch.recommend.SupportedLanguage._
8585
* This parameter is ignored if you also specify `insideBoundingBox`.
8686
* @param naturalLanguages
8787
* ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to
88-
* keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets
88+
* keyword searches) - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets
8989
* `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and
9090
* `analyticsTags`.
9191
* @param ruleContexts
92-
* Assigns a rule context to the search query. [Rule
92+
* Assigns a rule context to the search query [Rule
9393
* contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context)
9494
* are strings that you can use to trigger matching rules.
9595
* @param personalizationImpact
96-
* Impact that Personalization should have on this search. The higher this value is, the more Personalization
96+
* Impact that Personalization should have on this search The higher this value is, the more Personalization
9797
* determines the ranking compared to other factors. For more information, see [Understanding Personalization
9898
* impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
9999
* @param userToken
@@ -104,7 +104,7 @@ import algoliasearch.recommend.SupportedLanguage._
104104
* @param synonyms
105105
* Whether to take into account an index's synonyms for this search.
106106
* @param clickAnalytics
107-
* Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query
107+
* Whether to include a `queryID` attribute in the response The query ID is a unique identifier for a search query
108108
* and is required for tracking [click and conversion
109109
* events](https://www.algolia.com/guides/sending-events/getting-started/).
110110
* @param analytics

0 commit comments

Comments
 (0)