Skip to content

Commit

Permalink
fix(specs): Increase optionalWords visibility in docs (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4559

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: gazconroy <gazconroyster@gmail.com>
  • Loading branch information
algolia-bot and gazconroy committed Mar 5, 2025
1 parent 60d8506 commit e7b5393
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 41 deletions.
3 changes: 3 additions & 0 deletions packages/algoliasearch/lite/model/optionalWords.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

/**
* Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - 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). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. 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).
*/
export type OptionalWords = string | Array<string>;
2 changes: 1 addition & 1 deletion packages/algoliasearch/lite/src/liteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export function createLiteClient({
}>;
},
/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down
8 changes: 4 additions & 4 deletions packages/client-abtesting/src/abtestingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export function createAbtestingClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -190,7 +190,7 @@ export function createAbtestingClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -216,7 +216,7 @@ export function createAbtestingClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -247,7 +247,7 @@ export function createAbtestingClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
8 changes: 4 additions & 4 deletions packages/client-analytics/src/analyticsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function createAnalyticsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -179,7 +179,7 @@ export function createAnalyticsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -205,7 +205,7 @@ export function createAnalyticsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -236,7 +236,7 @@ export function createAnalyticsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
3 changes: 3 additions & 0 deletions packages/client-composition/model/optionalWords.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

/**
* Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - 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). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. 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).
*/
export type OptionalWords = string | Array<string>;
8 changes: 4 additions & 4 deletions packages/client-composition/src/compositionFullClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function createCompositionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -220,7 +220,7 @@ export function createCompositionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -246,7 +246,7 @@ export function createCompositionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -277,7 +277,7 @@ export function createCompositionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
8 changes: 4 additions & 4 deletions packages/client-insights/src/insightsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function createInsightsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -142,7 +142,7 @@ export function createInsightsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -168,7 +168,7 @@ export function createInsightsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -199,7 +199,7 @@ export function createInsightsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
8 changes: 4 additions & 4 deletions packages/client-personalization/src/personalizationClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function createPersonalizationClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -146,7 +146,7 @@ export function createPersonalizationClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -172,7 +172,7 @@ export function createPersonalizationClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -203,7 +203,7 @@ export function createPersonalizationClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function createQuerySuggestionsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -182,7 +182,7 @@ export function createQuerySuggestionsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -208,7 +208,7 @@ export function createQuerySuggestionsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -239,7 +239,7 @@ export function createQuerySuggestionsClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
3 changes: 3 additions & 0 deletions packages/client-search/model/optionalWords.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

/**
* Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - 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). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. 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).
*/
export type OptionalWords = string | Array<string>;
8 changes: 4 additions & 4 deletions packages/client-search/src/searchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ export function createSearchClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -1193,7 +1193,7 @@ export function createSearchClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -1219,7 +1219,7 @@ export function createSearchClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -1250,7 +1250,7 @@ export function createSearchClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
8 changes: 4 additions & 4 deletions packages/ingestion/src/ingestionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export function createIngestionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customDelete - The customDelete object.
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customDelete.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -500,7 +500,7 @@ export function createIngestionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customGet - The customGet object.
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customGet.parameters - Query parameters to apply to the current query.
Expand All @@ -526,7 +526,7 @@ export function createIngestionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPost - The customPost object.
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPost.parameters - Query parameters to apply to the current query.
Expand Down Expand Up @@ -557,7 +557,7 @@ export function createIngestionClient({
},

/**
* This method allow you to send requests to the Algolia REST API.
* This method lets you send requests to the Algolia REST API.
* @param customPut - The customPut object.
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
* @param customPut.parameters - Query parameters to apply to the current query.
Expand Down
Loading

0 comments on commit e7b5393

Please sign in to comment.