Skip to content

Commit 91809c4

Browse files
fix(specs): remove models from ingestion specs [skip-bc] (generated)
algolia/api-clients-automation#3774 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent fd1a636 commit 91809c4

34 files changed

+502
-224
lines changed

packages/algoliasearch/builds/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import type {
1313
AutomaticFacetFilter,
1414
AutomaticFacetFilters,
1515
BaseSearchParams,
16+
BaseIndexSettings,
1617
BaseSearchParamsWithoutQuery,
1718
BaseSearchResponse,
1819
BooleanString,
@@ -97,6 +98,7 @@ export {
9798
AutomaticFacetFilter,
9899
AutomaticFacetFilters,
99100
BaseSearchParams,
101+
BaseIndexSettings,
100102
BaseSearchParamsWithoutQuery,
101103
BaseSearchResponse,
102104
BooleanString,

packages/recommend/model/indexSettingsAsSearchParams.ts renamed to packages/algoliasearch/lite/model/baseRecommendIndexSettings.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ import type { AlternativesAsExact } from './alternativesAsExact';
55
import type { Distinct } from './distinct';
66
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
77
import type { IgnorePlurals } from './ignorePlurals';
8-
import type { Mode } from './mode';
98
import type { QueryType } from './queryType';
109
import type { ReRankingApplyFilter } from './reRankingApplyFilter';
1110
import type { RemoveStopWords } from './removeStopWords';
1211
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
1312
import type { RenderingContent } from './renderingContent';
14-
import type { SemanticSearch } from './semanticSearch';
1513
import type { SupportedLanguage } from './supportedLanguage';
1614
import type { TypoTolerance } from './typoTolerance';
1715

18-
export type IndexSettingsAsSearchParams = {
16+
export type BaseRecommendIndexSettings = {
1917
/**
2018
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
2119
*/
@@ -26,11 +24,6 @@ export type IndexSettingsAsSearchParams = {
2624
*/
2725
ranking?: string[];
2826

29-
/**
30-
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
31-
*/
32-
customRanking?: string[];
33-
3427
/**
3528
* Relevancy threshold below which less relevant results aren\'t included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
3629
*/
@@ -66,11 +59,6 @@ export type IndexSettingsAsSearchParams = {
6659
*/
6760
restrictHighlightAndSnippetArrays?: boolean;
6861

69-
/**
70-
* Number of hits per page.
71-
*/
72-
hitsPerPage?: number;
73-
7462
/**
7563
* Minimum number of characters a word in the search query must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
7664
*/
@@ -97,11 +85,6 @@ export type IndexSettingsAsSearchParams = {
9785

9886
removeStopWords?: RemoveStopWords;
9987

100-
/**
101-
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
102-
*/
103-
keepDiacriticsOnCharacters?: string;
104-
10588
/**
10689
* Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` 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) languages. To support this, you must place the CJK language **first**. **You should always specify a query 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/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to 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/).
10790
*/
@@ -126,10 +109,6 @@ export type IndexSettingsAsSearchParams = {
126109

127110
removeWordsIfNoResults?: RemoveWordsIfNoResults;
128111

129-
mode?: Mode;
130-
131-
semanticSearch?: SemanticSearch;
132-
133112
/**
134113
* Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
135114
*/

packages/algoliasearch/lite/model/baseRecommendRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 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.
22

3-
import type { SearchParams } from './searchParams';
3+
import type { RecommendSearchParams } from './recommendSearchParams';
44

55
export type BaseRecommendRequest = {
66
/**
@@ -18,5 +18,5 @@ export type BaseRecommendRequest = {
1818
*/
1919
maxRecommendations?: number;
2020

21-
queryParameters?: SearchParams;
21+
queryParameters?: RecommendSearchParams;
2222
};

packages/recommend/model/baseSearchParamsWithoutQuery.ts renamed to packages/algoliasearch/lite/model/baseRecommendSearchParams.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { OptionalFilters } from './optionalFilters';
88
import type { SupportedLanguage } from './supportedLanguage';
99
import type { TagFilters } from './tagFilters';
1010

11-
export type BaseSearchParamsWithoutQuery = {
11+
export type BaseRecommendSearchParams = {
1212
/**
1313
* Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
1414
*/
@@ -47,21 +47,6 @@ export type BaseSearchParamsWithoutQuery = {
4747
*/
4848
facetingAfterDistinct?: boolean;
4949

50-
/**
51-
* Page of search results to retrieve.
52-
*/
53-
page?: number;
54-
55-
/**
56-
* Position of the first hit to retrieve.
57-
*/
58-
offset?: number;
59-
60-
/**
61-
* Number of hits to retrieve (used in combination with `offset`).
62-
*/
63-
length?: number;
64-
6550
/**
6651
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
6752
*/

packages/algoliasearch/lite/model/facetOrdering.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// 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.
22

3-
import type { Facets } from './facets';
3+
import type { IndexSettingsFacets } from './indexSettingsFacets';
44
import type { Value } from './value';
55

66
/**
77
* Order of facet names and facet values in your UI.
88
*/
99
export type FacetOrdering = {
10-
facets?: Facets;
10+
facets?: IndexSettingsFacets;
1111

1212
/**
1313
* Order of facet values. One object for each facet.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 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.
22

3-
import type { SearchParamsObject } from './searchParamsObject';
3+
import type { RecommendSearchParams } from './recommendSearchParams';
44

5-
export type FallbackParams = Record<string, unknown> & SearchParamsObject;
5+
export type FallbackParams = RecommendSearchParams & Record<string, unknown>;

packages/algoliasearch/lite/model/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export * from './automaticFacetFilter';
1111
export * from './automaticFacetFilters';
1212
export * from './baseGetApiKeyResponse';
1313
export * from './baseIndexSettings';
14+
export * from './baseRecommendIndexSettings';
1415
export * from './baseRecommendRequest';
16+
export * from './baseRecommendSearchParams';
1517
export * from './baseSearchParams';
1618
export * from './baseSearchParamsWithoutQuery';
1719
export * from './baseSearchResponse';
@@ -34,7 +36,6 @@ export * from './facetFilters';
3436
export * from './facetHits';
3537
export * from './facetOrdering';
3638
export * from './facetStats';
37-
export * from './facets';
3839
export * from './fallbackParams';
3940
export * from './fbtModel';
4041
export * from './frequentlyBoughtTogether';
@@ -47,6 +48,7 @@ export * from './hit';
4748
export * from './ignorePlurals';
4849
export * from './indexSettings';
4950
export * from './indexSettingsAsSearchParams';
51+
export * from './indexSettingsFacets';
5052
export * from './lookingSimilar';
5153
export * from './lookingSimilarModel';
5254
export * from './lookingSimilarQuery';
@@ -62,6 +64,8 @@ export * from './range';
6264
export * from './rankingInfo';
6365
export * from './reRankingApplyFilter';
6466
export * from './recommendHit';
67+
export * from './recommendIndexSettings';
68+
export * from './recommendSearchParams';
6569
export * from './recommendationsHit';
6670
export * from './recommendationsHits';
6771
export * from './recommendationsRequest';
@@ -90,6 +94,7 @@ export * from './searchPagination';
9094
export * from './searchParams';
9195
export * from './searchParamsObject';
9296
export * from './searchParamsQuery';
97+
export * from './searchParamsString';
9398
export * from './searchQuery';
9499
export * from './searchResponse';
95100
export * from './searchResponses';

packages/algoliasearch/lite/model/facets.ts renamed to packages/algoliasearch/lite/model/indexSettingsFacets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Order of facet names.
55
*/
6-
export type Facets = {
6+
export type IndexSettingsFacets = {
77
/**
88
* Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
99
*/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// 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.
2+
3+
import type { BaseIndexSettings } from './baseIndexSettings';
4+
import type { BaseRecommendIndexSettings } from './baseRecommendIndexSettings';
5+
6+
/**
7+
* Index settings.
8+
*/
9+
export type RecommendIndexSettings = BaseIndexSettings & BaseRecommendIndexSettings;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// 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.
2+
3+
import type { BaseRecommendSearchParams } from './baseRecommendSearchParams';
4+
import type { RecommendIndexSettings } from './recommendIndexSettings';
5+
import type { SearchParamsQuery } from './searchParamsQuery';
6+
7+
/**
8+
* Search parameters for filtering the recommendations.
9+
*/
10+
export type RecommendSearchParams = BaseRecommendSearchParams & RecommendIndexSettings & SearchParamsQuery;

0 commit comments

Comments
 (0)