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/composition/model/params.ts
+58-53Lines changed: 58 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -11,64 +11,80 @@ import type { SupportedLanguage } from './supportedLanguage';
11
11
12
12
exporttypeParams={
13
13
/**
14
-
* Search query.
14
+
* Whether this search will be included in Analytics.
15
15
*/
16
-
query?: string|undefined;
16
+
analytics?: boolean|undefined;
17
17
18
18
/**
19
-
* Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering).
19
+
* Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments).
20
20
*/
21
-
filters?: string|undefined;
21
+
analyticsTags?: Array<string>|undefined;
22
22
23
23
/**
24
-
* Page of search results to retrieve.
24
+
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a 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`.
25
25
*/
26
-
page?: number|undefined;
26
+
aroundLatLng?: string|undefined;
27
27
28
28
/**
29
-
* Whether the run response should include detailed ranking information.
29
+
* Whether to obtain the coordinates from the request\'s IP address.
30
30
*/
31
-
getRankingInfo?: boolean|undefined;
31
+
aroundLatLngViaIP?: boolean|undefined;
32
+
33
+
aroundRadius?: AroundRadius|undefined;
34
+
35
+
aroundPrecision?: AroundPrecision|undefined;
32
36
33
37
/**
34
-
* 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.
38
+
* Whether to include a `queryID` attribute in the response The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started).
35
39
*/
36
-
relevancyStrictness?: number|undefined;
37
-
38
-
facetFilters?: FacetFilters|undefined;
40
+
clickAnalytics?: boolean|undefined;
39
41
40
42
/**
41
-
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values To retrieve all facets, use the wildcard character `*`. To retrieve disjunctive facets lists, annotate any facets with the `disjunctive` modifier. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts) and [disjunctive faceting for Smart Groups](https://www.algolia.com/doc/guides/managing-results/compositions/search-based-groups#facets-including-disjunctive-faceting).
43
+
* Whether to enable index level A/B testing for this run request. If the composition mixes multiple indices, the A/B test is ignored.
42
44
*/
43
-
facets?: Array<string>|undefined;
45
+
enableABTest?: boolean|undefined;
44
46
45
-
optionalFilters?: OptionalFilters|undefined;
47
+
/**
48
+
* Whether to enable Personalization.
49
+
*/
50
+
enablePersonalization?: boolean|undefined;
46
51
47
-
numericFilters?: NumericFilters|undefined;
52
+
/**
53
+
* Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking) This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
54
+
*/
55
+
enableReRanking?: boolean|undefined;
48
56
49
57
/**
50
-
* Number of hits per page.
58
+
* Whether to enable composition rules.
51
59
*/
52
-
hitsPerPage?: number|undefined;
60
+
enableRules?: boolean|undefined;
61
+
62
+
facetFilters?: FacetFilters|undefined;
53
63
54
64
/**
55
-
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a 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`.
65
+
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values To retrieve all facets, use the wildcard character `*`. To retrieve disjunctive facets lists, annotate any facets with the `disjunctive` modifier. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts) and [disjunctive faceting for Smart Groups](https://www.algolia.com/doc/guides/managing-results/compositions/search-based-groups#facets-including-disjunctive-faceting).
56
66
*/
57
-
aroundLatLng?: string|undefined;
67
+
facets?: Array<string>|undefined;
58
68
59
69
/**
60
-
* Whether to obtain the coordinates from the request\'s IP address.
70
+
* Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering).
61
71
*/
62
-
aroundLatLngViaIP?: boolean|undefined;
72
+
filters?: string|undefined;
63
73
64
-
aroundRadius?: AroundRadius|undefined;
74
+
/**
75
+
* Whether the run response should include detailed ranking information.
76
+
*/
77
+
getRankingInfo?: boolean|undefined;
65
78
66
-
aroundPrecision?: AroundPrecision|undefined;
79
+
/**
80
+
* Number of hits per page.
81
+
*/
82
+
hitsPerPage?: number|undefined;
67
83
68
84
/**
69
-
* Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
85
+
* A list of extenrally injected objectID groups into from an external source.
* 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).
97
+
* Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
* ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches) - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
* Assigns a rule context to the run query [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
97
-
*/
98
-
ruleContexts?: Array<string>|undefined;
106
+
numericFilters?: NumericFilters|undefined;
99
107
100
-
/**
101
-
* Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).
102
-
*/
103
-
userToken?: string|undefined;
108
+
optionalFilters?: OptionalFilters|undefined;
104
109
105
110
/**
106
-
* Whether to include a `queryID` attribute in the response The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started).
111
+
* Page of search results to retrieve.
107
112
*/
108
-
clickAnalytics?: boolean|undefined;
113
+
page?: number|undefined;
109
114
110
115
/**
111
-
* Whether this search will be included in Analytics.
116
+
* Search query.
112
117
*/
113
-
analytics?: boolean|undefined;
118
+
query?: string|undefined;
114
119
115
120
/**
116
-
* Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments).
121
+
* 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.
117
122
*/
118
-
analyticsTags?: Array<string>|undefined;
123
+
relevancyStrictness?: number|undefined;
119
124
120
125
/**
121
-
* Whether to enable index level A/B testing for this run request. If the composition mixes multiple indices, the A/B test is ignored.
126
+
* 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).
* Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking) This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
131
+
* Assigns a rule context to the run query [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
127
132
*/
128
-
enableReRanking?: boolean|undefined;
133
+
ruleContexts?: Array<string>|undefined;
129
134
130
135
/**
131
-
* A list of extenrally injected objectID groups into from an external source.
136
+
* Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).
0 commit comments