Skip to content

Commit e44616b

Browse files
chore: generated code for commit c917710b. [skip ci]
algolia/api-clients-automation@c917710 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 8900722 commit e44616b

14 files changed

+58
-56
lines changed

packages/algoliasearch-lite/model/baseIndexSettings.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ export type BaseIndexSettings = {
2727
* Sets the languages at the index level for language-specific processing such as tokenization and normalization.
2828
*/
2929
indexLanguages?: string[];
30-
/**
31-
* Whether promoted results should match the filters of the current search, except for geographic filters.
32-
*/
33-
filterPromotes?: boolean;
3430
/**
3531
* List of attributes on which you want to disable prefix matching.
3632
*/
@@ -43,6 +39,14 @@ export type BaseIndexSettings = {
4339
* List of numeric attributes that can be used as numerical filters.
4440
*/
4541
numericAttributesForFiltering?: string[];
42+
/**
43+
* Control which separators are indexed.
44+
*/
45+
separatorsToIndex?: string;
46+
/**
47+
* The complete list of attributes used for searching.
48+
*/
49+
searchableAttributes?: string[];
4650
/**
4751
* Lets you store custom data in your indices.
4852
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Treats singular, plurals, and other forms of declensions as matching terms. IgnorePlurals is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the ignore plurals functionality, where singulars and plurals are considered equivalent (foot = feet). The languages supported here are either every language (this is the default, see list of languages below), or those set by queryLanguages. False: disables ignore plurals, where singulars and plurals are not considered the same for matching purposes (foot will not find feet).
3+
*/
4+
export type IgnorePlurals = string[] | boolean;

packages/algoliasearch-lite/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export * from './facetsStats';
3333
export * from './fetchedIndex';
3434
export * from './highlightResult';
3535
export * from './hit';
36+
export * from './ignorePlurals';
3637
export * from './indexSettings';
3738
export * from './indexSettingsAsSearchParams';
3839
export * from './key';
@@ -50,6 +51,7 @@ export * from './promote';
5051
export * from './queryType';
5152
export * from './rankingInfo';
5253
export * from './reRankingApplyFilter';
54+
export * from './removeStopWords';
5355
export * from './removeWordsIfNoResults';
5456
export * from './rule';
5557
export * from './scopeType';

packages/algoliasearch-lite/model/indexSettingsAsSearchParams.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
22
import type { AlternativesAsExact } from './alternativesAsExact';
33
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
4+
import type { IgnorePlurals } from './ignorePlurals';
45
import type { QueryType } from './queryType';
6+
import type { RemoveStopWords } from './removeStopWords';
57
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
68
import type { TypoTolerance } from './typoTolerance';
79

810
export type IndexSettingsAsSearchParams = {
9-
/**
10-
* The complete list of attributes used for searching.
11-
*/
12-
searchableAttributes?: string[];
1311
/**
1412
* The complete list of attributes that will be used for faceting.
1513
*/
@@ -83,18 +81,8 @@ export type IndexSettingsAsSearchParams = {
8381
* List of attributes on which you want to disable typo tolerance.
8482
*/
8583
disableTypoToleranceOnAttributes?: string[];
86-
/**
87-
* Control which separators are indexed.
88-
*/
89-
separatorsToIndex?: string;
90-
/**
91-
* Treats singular, plurals, and other forms of declensions as matching terms.
92-
*/
93-
ignorePlurals?: string;
94-
/**
95-
* Removes stop (common) words from the query before executing it.
96-
*/
97-
removeStopWords?: string;
84+
ignorePlurals?: IgnorePlurals;
85+
removeStopWords?: RemoveStopWords;
9886
/**
9987
* List of characters that the engine shouldn\'t automatically normalize.
10088
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Removes stop (common) words from the query before executing it. RemoveStopWords is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the stop word functionality, ensuring that stop words are removed from consideration in a search. The languages supported here are either every language, or those set by queryLanguages. False: disables stop word functionality, allowing stop words to be taken into account in a search.
3+
*/
4+
export type RemoveStopWords = string[] | boolean;

packages/client-search/model/baseIndexSettings.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ export type BaseIndexSettings = {
2727
* Sets the languages at the index level for language-specific processing such as tokenization and normalization.
2828
*/
2929
indexLanguages?: string[];
30-
/**
31-
* Whether promoted results should match the filters of the current search, except for geographic filters.
32-
*/
33-
filterPromotes?: boolean;
3430
/**
3531
* List of attributes on which you want to disable prefix matching.
3632
*/
@@ -43,6 +39,14 @@ export type BaseIndexSettings = {
4339
* List of numeric attributes that can be used as numerical filters.
4440
*/
4541
numericAttributesForFiltering?: string[];
42+
/**
43+
* Control which separators are indexed.
44+
*/
45+
separatorsToIndex?: string;
46+
/**
47+
* The complete list of attributes used for searching.
48+
*/
49+
searchableAttributes?: string[];
4650
/**
4751
* Lets you store custom data in your indices.
4852
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Treats singular, plurals, and other forms of declensions as matching terms. IgnorePlurals is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the ignore plurals functionality, where singulars and plurals are considered equivalent (foot = feet). The languages supported here are either every language (this is the default, see list of languages below), or those set by queryLanguages. False: disables ignore plurals, where singulars and plurals are not considered the same for matching purposes (foot will not find feet).
3+
*/
4+
export type IgnorePlurals = string[] | boolean;

packages/client-search/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export * from './getTaskResponse';
5454
export * from './getTopUserIdsResponse';
5555
export * from './highlightResult';
5656
export * from './hit';
57+
export * from './ignorePlurals';
5758
export * from './indexSettings';
5859
export * from './indexSettingsAsSearchParams';
5960
export * from './key';
@@ -80,6 +81,7 @@ export * from './promote';
8081
export * from './queryType';
8182
export * from './rankingInfo';
8283
export * from './reRankingApplyFilter';
84+
export * from './removeStopWords';
8385
export * from './removeUserIdResponse';
8486
export * from './removeWordsIfNoResults';
8587
export * from './replaceSourceResponse';

packages/client-search/model/indexSettingsAsSearchParams.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
22
import type { AlternativesAsExact } from './alternativesAsExact';
33
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
4+
import type { IgnorePlurals } from './ignorePlurals';
45
import type { QueryType } from './queryType';
6+
import type { RemoveStopWords } from './removeStopWords';
57
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
68
import type { TypoTolerance } from './typoTolerance';
79

810
export type IndexSettingsAsSearchParams = {
9-
/**
10-
* The complete list of attributes used for searching.
11-
*/
12-
searchableAttributes?: string[];
1311
/**
1412
* The complete list of attributes that will be used for faceting.
1513
*/
@@ -83,18 +81,8 @@ export type IndexSettingsAsSearchParams = {
8381
* List of attributes on which you want to disable typo tolerance.
8482
*/
8583
disableTypoToleranceOnAttributes?: string[];
86-
/**
87-
* Control which separators are indexed.
88-
*/
89-
separatorsToIndex?: string;
90-
/**
91-
* Treats singular, plurals, and other forms of declensions as matching terms.
92-
*/
93-
ignorePlurals?: string;
94-
/**
95-
* Removes stop (common) words from the query before executing it.
96-
*/
97-
removeStopWords?: string;
84+
ignorePlurals?: IgnorePlurals;
85+
removeStopWords?: RemoveStopWords;
9886
/**
9987
* List of characters that the engine shouldn\'t automatically normalize.
10088
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Removes stop (common) words from the query before executing it. RemoveStopWords is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the stop word functionality, ensuring that stop words are removed from consideration in a search. The languages supported here are either every language, or those set by queryLanguages. False: disables stop word functionality, allowing stop words to be taken into account in a search.
3+
*/
4+
export type RemoveStopWords = string[] | boolean;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Treats singular, plurals, and other forms of declensions as matching terms. IgnorePlurals is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the ignore plurals functionality, where singulars and plurals are considered equivalent (foot = feet). The languages supported here are either every language (this is the default, see list of languages below), or those set by queryLanguages. False: disables ignore plurals, where singulars and plurals are not considered the same for matching purposes (foot will not find feet).
3+
*/
4+
export type IgnorePlurals = string[] | boolean;

packages/recommend/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export * from './facetsStats';
1414
export * from './getRecommendationsParams';
1515
export * from './getRecommendationsResponse';
1616
export * from './highlightResult';
17+
export * from './ignorePlurals';
1718
export * from './indexSettingsAsSearchParams';
1819
export * from './matchLevel';
1920
export * from './matchedGeoLocation';
@@ -29,6 +30,7 @@ export * from './recommendationModels';
2930
export * from './recommendationRequest';
3031
export * from './recommendationsRequest';
3132
export * from './recommendationsResponse';
33+
export * from './removeStopWords';
3234
export * from './removeWordsIfNoResults';
3335
export * from './searchParamsObject';
3436
export * from './snippetResult';

packages/recommend/model/indexSettingsAsSearchParams.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
22
import type { AlternativesAsExact } from './alternativesAsExact';
33
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
4+
import type { IgnorePlurals } from './ignorePlurals';
45
import type { QueryType } from './queryType';
6+
import type { RemoveStopWords } from './removeStopWords';
57
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
68
import type { TypoTolerance } from './typoTolerance';
79

810
export type IndexSettingsAsSearchParams = {
9-
/**
10-
* The complete list of attributes used for searching.
11-
*/
12-
searchableAttributes?: string[];
1311
/**
1412
* The complete list of attributes that will be used for faceting.
1513
*/
@@ -83,18 +81,8 @@ export type IndexSettingsAsSearchParams = {
8381
* List of attributes on which you want to disable typo tolerance.
8482
*/
8583
disableTypoToleranceOnAttributes?: string[];
86-
/**
87-
* Control which separators are indexed.
88-
*/
89-
separatorsToIndex?: string;
90-
/**
91-
* Treats singular, plurals, and other forms of declensions as matching terms.
92-
*/
93-
ignorePlurals?: string;
94-
/**
95-
* Removes stop (common) words from the query before executing it.
96-
*/
97-
removeStopWords?: string;
84+
ignorePlurals?: IgnorePlurals;
85+
removeStopWords?: RemoveStopWords;
9886
/**
9987
* List of characters that the engine shouldn\'t automatically normalize.
10088
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Removes stop (common) words from the query before executing it. RemoveStopWords is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the stop word functionality, ensuring that stop words are removed from consideration in a search. The languages supported here are either every language, or those set by queryLanguages. False: disables stop word functionality, allowing stop words to be taken into account in a search.
3+
*/
4+
export type RemoveStopWords = string[] | boolean;

0 commit comments

Comments
 (0)