You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/algoliasearch/lib/src/model/base_index_settings.dart
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ final class BaseIndexSettings {
28
28
this.customNormalization,
29
29
this.attributeForDistinct,
30
30
this.maxFacetHits,
31
+
this.keepDiacriticsOnCharacters,
32
+
this.customRanking,
31
33
});
32
34
33
35
/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn't evaluate the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
@@ -104,6 +106,14 @@ final class BaseIndexSettings {
104
106
@JsonKey(name:r'maxFacetHits')
105
107
finalint? maxFacetHits;
106
108
109
+
/// 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.
110
+
@JsonKey(name:r'keepDiacriticsOnCharacters')
111
+
finalString? keepDiacriticsOnCharacters;
112
+
113
+
/// 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.
114
+
@JsonKey(name:r'customRanking')
115
+
finalList<String>? customRanking;
116
+
107
117
@override
108
118
booloperator==(Object other) =>
109
119
identical(this, other) ||
@@ -127,7 +137,9 @@ final class BaseIndexSettings {
Copy file name to clipboardExpand all lines: packages/algoliasearch/lib/src/model/browse_params_object.dart
-14Lines changed: 0 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,6 @@ final class BrowseParamsObject {
52
52
this.enableABTest,
53
53
this.attributesToRetrieve,
54
54
this.ranking,
55
-
this.customRanking,
56
55
this.relevancyStrictness,
57
56
this.attributesToHighlight,
58
57
this.attributesToSnippet,
@@ -68,7 +67,6 @@ final class BrowseParamsObject {
68
67
this.disableTypoToleranceOnAttributes,
69
68
this.ignorePlurals,
70
69
this.removeStopWords,
71
-
this.keepDiacriticsOnCharacters,
72
70
this.queryLanguages,
73
71
this.decompoundQuery,
74
72
this.enableRules,
@@ -256,10 +254,6 @@ final class BrowseParamsObject {
256
254
@JsonKey(name:r'ranking')
257
255
finalList<String>? ranking;
258
256
259
-
/// 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.
260
-
@JsonKey(name:r'customRanking')
261
-
finalList<String>? customRanking;
262
-
263
257
/// 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.
264
258
@JsonKey(name:r'relevancyStrictness')
265
259
finalint? relevancyStrictness;
@@ -329,10 +323,6 @@ final class BrowseParamsObject {
329
323
@JsonKey(name:r'removeStopWords')
330
324
finaldynamic removeStopWords;
331
325
332
-
/// 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.
333
-
@JsonKey(name:r'keepDiacriticsOnCharacters')
334
-
finalString? keepDiacriticsOnCharacters;
335
-
336
326
/// 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/).
337
327
@JsonKey(name:r'queryLanguages')
338
328
finalList<SupportedLanguage>? queryLanguages;
@@ -475,7 +465,6 @@ final class BrowseParamsObject {
Copy file name to clipboardExpand all lines: packages/algoliasearch/lib/src/model/consequence_params.dart
-14Lines changed: 0 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,6 @@ final class ConsequenceParams {
51
51
this.enableABTest,
52
52
this.attributesToRetrieve,
53
53
this.ranking,
54
-
this.customRanking,
55
54
this.relevancyStrictness,
56
55
this.attributesToHighlight,
57
56
this.attributesToSnippet,
@@ -67,7 +66,6 @@ final class ConsequenceParams {
67
66
this.disableTypoToleranceOnAttributes,
68
67
this.ignorePlurals,
69
68
this.removeStopWords,
70
-
this.keepDiacriticsOnCharacters,
71
69
this.queryLanguages,
72
70
this.decompoundQuery,
73
71
this.enableRules,
@@ -253,10 +251,6 @@ final class ConsequenceParams {
253
251
@JsonKey(name:r'ranking')
254
252
finalList<String>? ranking;
255
253
256
-
/// 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.
257
-
@JsonKey(name:r'customRanking')
258
-
finalList<String>? customRanking;
259
-
260
254
/// 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.
261
255
@JsonKey(name:r'relevancyStrictness')
262
256
finalint? relevancyStrictness;
@@ -326,10 +320,6 @@ final class ConsequenceParams {
326
320
@JsonKey(name:r'removeStopWords')
327
321
finaldynamic removeStopWords;
328
322
329
-
/// 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.
330
-
@JsonKey(name:r'keepDiacriticsOnCharacters')
331
-
finalString? keepDiacriticsOnCharacters;
332
-
333
323
/// 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/).
334
324
@JsonKey(name:r'queryLanguages')
335
325
finalList<SupportedLanguage>? queryLanguages;
@@ -485,7 +475,6 @@ final class ConsequenceParams {
0 commit comments