@algolia/recommend 5.0.0-alpha.105 → 5.0.0-alpha.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/aroundPrecision.d.ts +1 -1
- package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts +3 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/automaticFacetFilter.d.ts +4 -4
- package/dist/model/automaticFacetFilters.d.ts +1 -1
- package/dist/model/baseRecommendRequest.d.ts +1 -1
- package/dist/model/baseRecommendationsQuery.d.ts +1 -1
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +6 -6
- package/dist/model/clientMethodProps.d.ts +6 -6
- package/dist/model/condition.d.ts +7 -3
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +5 -5
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/consequenceQuery.d.ts +1 -1
- package/dist/model/consequenceQueryObject.d.ts +2 -2
- package/dist/model/deletedAtResponse.d.ts +1 -1
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/edit.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +1 -1
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +3 -3
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +30 -34
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/matchLevel.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/numericFilters.d.ts +1 -1
- package/dist/model/optionalFilters.d.ts +1 -1
- package/dist/model/params.d.ts +1 -1
- package/dist/model/promoteObjectID.d.ts +2 -2
- package/dist/model/promoteObjectIDs.d.ts +2 -2
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/rankingInfo.d.ts +10 -7
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/recommendHit.d.ts +3 -3
- package/dist/model/recommendationsHits.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +2 -2
- package/dist/model/searchRecommendRulesResponse.d.ts +3 -3
- package/dist/model/semanticSearch.d.ts +2 -2
- package/dist/model/snippetResultOption.d.ts +2 -2
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts +3 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/value.d.ts +1 -1
- package/dist/recommend.cjs +7 -7
- package/dist/recommend.esm.browser.js +7 -7
- package/dist/recommend.esm.node.js +7 -7
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +7 -7
- package/model/anchoring.ts +1 -1
- package/model/aroundPrecision.ts +1 -1
- package/model/aroundPrecisionFromValueInner.ts +9 -0
- package/model/aroundRadius.ts +1 -1
- package/model/aroundRadiusAll.ts +3 -0
- package/model/automaticFacetFilter.ts +4 -4
- package/model/automaticFacetFilters.ts +1 -1
- package/model/baseRecommendRequest.ts +1 -1
- package/model/baseRecommendationsQuery.ts +1 -1
- package/model/baseRecommendedForYouQueryParameters.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +24 -29
- package/model/baseSearchResponse.ts +6 -6
- package/model/clientMethodProps.ts +6 -6
- package/model/condition.ts +8 -3
- package/model/consequence.ts +5 -5
- package/model/consequenceHide.ts +2 -2
- package/model/consequenceQuery.ts +1 -1
- package/model/consequenceQueryObject.ts +2 -2
- package/model/deletedAtResponse.ts +1 -1
- package/model/distinct.ts +1 -1
- package/model/edit.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +2 -2
- package/model/highlightResultOption.ts +3 -3
- package/model/ignorePlurals.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -35
- package/model/matchLevel.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/numericFilters.ts +1 -1
- package/model/optionalFilters.ts +1 -1
- package/model/params.ts +1 -1
- package/model/promoteObjectID.ts +2 -2
- package/model/promoteObjectIDs.ts +2 -2
- package/model/queryType.ts +1 -1
- package/model/rankingInfo.ts +10 -7
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/recommendHit.ts +3 -3
- package/model/recommendationsHits.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchRecommendRulesParams.ts +2 -2
- package/model/searchRecommendRulesResponse.ts +3 -3
- package/model/semanticSearch.ts +2 -2
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +1 -1
- package/model/typoTolerance.ts +1 -1
- package/model/typoToleranceEnum.ts +3 -0
- package/model/value.ts +1 -1
- package/package.json +7 -7
|
@@ -13,39 +13,35 @@ import type { SemanticSearch } from './semanticSearch';
|
|
|
13
13
|
import type { TypoTolerance } from './typoTolerance';
|
|
14
14
|
export type IndexSettingsAsSearchParams = {
|
|
15
15
|
/**
|
|
16
|
-
* Attributes
|
|
17
|
-
*/
|
|
18
|
-
attributesForFaceting?: string[];
|
|
19
|
-
/**
|
|
20
|
-
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
|
|
16
|
+
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` 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.
|
|
21
17
|
*/
|
|
22
18
|
attributesToRetrieve?: string[];
|
|
23
19
|
/**
|
|
24
|
-
* Determines the order in which Algolia
|
|
20
|
+
* Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
|
|
25
21
|
*/
|
|
26
22
|
ranking?: string[];
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
24
|
+
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). 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** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> 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.
|
|
29
25
|
*/
|
|
30
26
|
customRanking?: string[];
|
|
31
27
|
/**
|
|
32
|
-
* Relevancy threshold below which less relevant results aren\'t included in the results.
|
|
28
|
+
* 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.
|
|
33
29
|
*/
|
|
34
30
|
relevancyStrictness?: number;
|
|
35
31
|
/**
|
|
36
|
-
* Attributes to highlight.
|
|
32
|
+
* Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
|
|
37
33
|
*/
|
|
38
34
|
attributesToHighlight?: string[];
|
|
39
35
|
/**
|
|
40
|
-
* Attributes to
|
|
36
|
+
* Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
|
|
41
37
|
*/
|
|
42
38
|
attributesToSnippet?: string[];
|
|
43
39
|
/**
|
|
44
|
-
* HTML
|
|
40
|
+
* HTML tag to insert before the highlighted parts in all highlighted results and snippets.
|
|
45
41
|
*/
|
|
46
42
|
highlightPreTag?: string;
|
|
47
43
|
/**
|
|
48
|
-
* HTML
|
|
44
|
+
* HTML tag to insert after the highlighted parts in all highlighted results and snippets.
|
|
49
45
|
*/
|
|
50
46
|
highlightPostTag?: string;
|
|
51
47
|
/**
|
|
@@ -53,7 +49,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
53
49
|
*/
|
|
54
50
|
snippetEllipsisText?: string;
|
|
55
51
|
/**
|
|
56
|
-
*
|
|
52
|
+
* Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
|
|
57
53
|
*/
|
|
58
54
|
restrictHighlightAndSnippetArrays?: boolean;
|
|
59
55
|
/**
|
|
@@ -61,42 +57,42 @@ export type IndexSettingsAsSearchParams = {
|
|
|
61
57
|
*/
|
|
62
58
|
hitsPerPage?: number;
|
|
63
59
|
/**
|
|
64
|
-
* Minimum number of characters a word in the query
|
|
60
|
+
* 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).
|
|
65
61
|
*/
|
|
66
62
|
minWordSizefor1Typo?: number;
|
|
67
63
|
/**
|
|
68
|
-
* Minimum number of characters a word in the query
|
|
64
|
+
* Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
69
65
|
*/
|
|
70
66
|
minWordSizefor2Typos?: number;
|
|
71
67
|
typoTolerance?: TypoTolerance;
|
|
72
68
|
/**
|
|
73
|
-
* Whether to allow typos on numbers
|
|
69
|
+
* Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
|
|
74
70
|
*/
|
|
75
71
|
allowTyposOnNumericTokens?: boolean;
|
|
76
72
|
/**
|
|
77
|
-
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
|
|
73
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
|
|
78
74
|
*/
|
|
79
75
|
disableTypoToleranceOnAttributes?: string[];
|
|
80
76
|
ignorePlurals?: IgnorePlurals;
|
|
81
77
|
removeStopWords?: RemoveStopWords;
|
|
82
78
|
/**
|
|
83
|
-
* Characters
|
|
79
|
+
* 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.
|
|
84
80
|
*/
|
|
85
81
|
keepDiacriticsOnCharacters?: string;
|
|
86
82
|
/**
|
|
87
|
-
*
|
|
83
|
+
* [ISO code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) for language-specific settings such as plurals, stop words, 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/).
|
|
88
84
|
*/
|
|
89
85
|
queryLanguages?: string[];
|
|
90
86
|
/**
|
|
91
|
-
*
|
|
87
|
+
* Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
|
|
92
88
|
*/
|
|
93
89
|
decompoundQuery?: boolean;
|
|
94
90
|
/**
|
|
95
|
-
*
|
|
91
|
+
* Whether to enable rules.
|
|
96
92
|
*/
|
|
97
93
|
enableRules?: boolean;
|
|
98
94
|
/**
|
|
99
|
-
*
|
|
95
|
+
* Whether to enable Personalization.
|
|
100
96
|
*/
|
|
101
97
|
enablePersonalization?: boolean;
|
|
102
98
|
queryType?: QueryType;
|
|
@@ -104,41 +100,41 @@ export type IndexSettingsAsSearchParams = {
|
|
|
104
100
|
mode?: Mode;
|
|
105
101
|
semanticSearch?: SemanticSearch;
|
|
106
102
|
/**
|
|
107
|
-
*
|
|
103
|
+
* Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
|
|
108
104
|
*/
|
|
109
105
|
advancedSyntax?: boolean;
|
|
110
106
|
/**
|
|
111
|
-
* Words
|
|
107
|
+
* 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 dividied 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).
|
|
112
108
|
*/
|
|
113
109
|
optionalWords?: string[];
|
|
114
110
|
/**
|
|
115
|
-
*
|
|
111
|
+
* Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
|
|
116
112
|
*/
|
|
117
113
|
disableExactOnAttributes?: string[];
|
|
118
114
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
119
115
|
/**
|
|
120
|
-
* Alternatives that should be considered
|
|
116
|
+
* Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. <dl> <dt><code>ignorePlurals</code></dt> <dd> Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. </dd> <dt><code>singleWordSynonym</code></dt> <dd> Single-word synonyms, such as \"NY/NYC\" are considered exact matches. </dd> <dt><code>multiWordsSynonym</code></dt> <dd> Multi-word synonyms, such as \"NY/New York\" are considered exact matches. </dd> </dl>.
|
|
121
117
|
*/
|
|
122
118
|
alternativesAsExact?: AlternativesAsExact[];
|
|
123
119
|
/**
|
|
124
|
-
*
|
|
120
|
+
* Advanced search syntax features you want to support. <dl> <dt><code>exactPhrase</code></dt> <dd> Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". </dd> <dt><code>excludeWords</code></dt> <dd> Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". </dd> </dl> This setting only has an effect if `advancedSyntax` is true.
|
|
125
121
|
*/
|
|
126
122
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
127
123
|
distinct?: Distinct;
|
|
128
124
|
/**
|
|
129
|
-
* Whether to
|
|
125
|
+
* Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records, but all occurences of \"house\" are replaced by \"home\" in the highlighted response.
|
|
130
126
|
*/
|
|
131
127
|
replaceSynonymsInHighlight?: boolean;
|
|
132
128
|
/**
|
|
133
|
-
*
|
|
129
|
+
* Minimum proximity score for two matching words. This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity) by equally scoring matches that are farther apart. For example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.
|
|
134
130
|
*/
|
|
135
131
|
minProximity?: number;
|
|
136
132
|
/**
|
|
137
|
-
*
|
|
133
|
+
* Properties to include in the API response of `search` and `browse` requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can\'t exclude these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or any property triggered by the `getRankingInfo` parameter. Don\'t exclude properties that you might need in your search UI.
|
|
138
134
|
*/
|
|
139
135
|
responseFields?: string[];
|
|
140
136
|
/**
|
|
141
|
-
* Maximum number of facet
|
|
137
|
+
* Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
142
138
|
*/
|
|
143
139
|
maxFacetHits?: number;
|
|
144
140
|
/**
|
|
@@ -146,16 +142,16 @@ export type IndexSettingsAsSearchParams = {
|
|
|
146
142
|
*/
|
|
147
143
|
maxValuesPerFacet?: number;
|
|
148
144
|
/**
|
|
149
|
-
*
|
|
145
|
+
* Order in which to retrieve facet values. <dl> <dt><code>count</code></dt> <dd> Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Retrieve facet values alphabetically.</dd> </dl> This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
|
|
150
146
|
*/
|
|
151
147
|
sortFacetValuesBy?: string;
|
|
152
148
|
/**
|
|
153
|
-
*
|
|
149
|
+
* Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.
|
|
154
150
|
*/
|
|
155
151
|
attributeCriteriaComputedByMinProximity?: boolean;
|
|
156
152
|
renderingContent?: RenderingContent;
|
|
157
153
|
/**
|
|
158
|
-
*
|
|
154
|
+
* 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.
|
|
159
155
|
*/
|
|
160
156
|
enableReRanking?: boolean;
|
|
161
157
|
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexSettingsAsSearchParams.d.ts","sourceRoot":"","sources":["../../model/indexSettingsAsSearchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"indexSettingsAsSearchParams.d.ts","sourceRoot":"","sources":["../../model/indexSettingsAsSearchParams.ts"],"names":[],"mappings":"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"}
|
package/dist/model/mode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Search mode the index will use to query for results.
|
|
2
|
+
* Search mode the index will use to query for results. This setting only applies to indices, for which Algolia enabled NeuralSearch for you.
|
|
3
3
|
*/
|
|
4
4
|
export type Mode = 'keywordSearch' | 'neuralSearch';
|
|
5
5
|
//# sourceMappingURL=mode.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Filter by numeric facets. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** You can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`. Comparsions are precise up to 3 decimals. You can also provide ranges: `facet:<lower> TO <upper>`. The range includes the lower and upper boundaries. The same combination rules apply as for `facetFilters`.
|
|
4
4
|
*/
|
|
5
5
|
export type NumericFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=numericFilters.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match. - Optional filters don\'t work on virtual replicas. - Optional filters are applied _after_ sort-by attributes. - Optional filters don\'t work with numeric attributes.
|
|
4
4
|
*/
|
|
5
5
|
export type OptionalFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=optionalFilters.d.ts.map
|
package/dist/model/params.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { AutomaticFacetFilters } from './automaticFacetFilters';
|
|
|
2
2
|
import type { ConsequenceQuery } from './consequenceQuery';
|
|
3
3
|
import type { RenderingContent } from './renderingContent';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Parameters to apply to this search. You can use all search parameters, plus special `automaticFacetFilters`, `automaticOptionalFacetFilters`, and `query`.
|
|
6
6
|
*/
|
|
7
7
|
export type Params = {
|
|
8
8
|
query?: ConsequenceQuery;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type PromoteObjectID = {
|
|
5
5
|
/**
|
|
6
|
-
* Unique
|
|
6
|
+
* Unique record identifier.
|
|
7
7
|
*/
|
|
8
8
|
objectID: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Position in the search results where you want to show the promoted records.
|
|
11
11
|
*/
|
|
12
12
|
position: number;
|
|
13
13
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type PromoteObjectIDs = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Object IDs of the records you want to promote. The records are placed as a group at the `position`. For example, if you want to promote four records to position `0`, they will be the first four search results.
|
|
7
7
|
*/
|
|
8
8
|
objectIDs: string[];
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Position in the search results where you want to show the promoted records.
|
|
11
11
|
*/
|
|
12
12
|
position: number;
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Determines how query words are
|
|
2
|
+
* Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as prefix (`prefixLast`). To turn off prefix search, use `prefixNone`. Avoid `prefixAll`, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see [Prefix searching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
|
|
3
3
|
*/
|
|
4
4
|
export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
|
|
5
5
|
//# sourceMappingURL=queryType.d.ts.map
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { MatchedGeoLocation } from './matchedGeoLocation';
|
|
2
2
|
import type { Personalization } from './personalization';
|
|
3
|
+
/**
|
|
4
|
+
* Object with detailed information about the record\'s ranking.
|
|
5
|
+
*/
|
|
3
6
|
export type RankingInfo = {
|
|
4
7
|
/**
|
|
5
|
-
*
|
|
8
|
+
* Whether a filter matched the query.
|
|
6
9
|
*/
|
|
7
10
|
filters: number;
|
|
8
11
|
/**
|
|
9
|
-
* Position of the
|
|
12
|
+
* Position of the first matched word in the best matching attribute of the record.
|
|
10
13
|
*/
|
|
11
14
|
firstMatchedWord: number;
|
|
12
15
|
/**
|
|
@@ -28,23 +31,23 @@ export type RankingInfo = {
|
|
|
28
31
|
*/
|
|
29
32
|
nbTypos: number;
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
34
|
+
* Whether the record was promoted by a rule.
|
|
32
35
|
*/
|
|
33
36
|
promoted: boolean;
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
38
|
+
* Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
|
|
36
39
|
*/
|
|
37
40
|
proximityDistance?: number;
|
|
38
41
|
/**
|
|
39
|
-
*
|
|
42
|
+
* Overall ranking of the record, expressed as a single integer. This attribute is internal.
|
|
40
43
|
*/
|
|
41
44
|
userScore: number;
|
|
42
45
|
/**
|
|
43
|
-
* Number of matched words
|
|
46
|
+
* Number of matched words.
|
|
44
47
|
*/
|
|
45
48
|
words: number;
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* Whether the record is re-ranked.
|
|
48
51
|
*/
|
|
49
52
|
promotedByReRanking?: boolean;
|
|
50
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rankingInfo.d.ts","sourceRoot":"","sources":["../../model/rankingInfo.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"rankingInfo.d.ts","sourceRoot":"","sources":["../../model/rankingInfo.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Restrict [Dynamic Re-ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.
|
|
4
4
|
*/
|
|
5
5
|
export type ReRankingApplyFilter = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=reRankingApplyFilter.d.ts.map
|
|
@@ -6,15 +6,15 @@ import type { SnippetResult } from './snippetResult';
|
|
|
6
6
|
*/
|
|
7
7
|
export type RecommendHit = Record<string, any> & {
|
|
8
8
|
/**
|
|
9
|
-
* Unique
|
|
9
|
+
* Unique record identifier.
|
|
10
10
|
*/
|
|
11
11
|
objectID: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Surround words that match the query with HTML tags for highlighting.
|
|
14
14
|
*/
|
|
15
15
|
_highlightResult?: Record<string, HighlightResult>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Snippets that show the context around a matching search query.
|
|
18
18
|
*/
|
|
19
19
|
_snippetResult?: Record<string, SnippetResult>;
|
|
20
20
|
_rankingInfo?: RankingInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Removes stop
|
|
2
|
+
* Removes stop words from the search query. Stop words are common words like articles, conjunctions, prepositions, or pronouns that have little or no meaning on their own. In English, \"the\", \"a\", or \"and\" are stop words. You should only use this feature for the languages used in your index.
|
|
3
3
|
*/
|
|
4
4
|
export type RemoveStopWords = string[] | boolean;
|
|
5
5
|
//# sourceMappingURL=removeStopWords.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Strategy to [
|
|
2
|
+
* Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. <dl> <dt><code>none</code></dt> <dd>No words are removed when a query doesn\'t return results.</dd> <dt><code>lastWords</code></dt> <dd>Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>firstWords</code></dt> <dd>Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>allOptional</code></dt> <dd>Treat all words as optional.</dd> </dl> For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
|
|
3
3
|
*/
|
|
4
4
|
export type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
|
|
5
5
|
//# sourceMappingURL=removeWordsIfNoResults.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FacetOrdering } from './facetOrdering';
|
|
2
2
|
/**
|
|
3
|
-
* Extra
|
|
3
|
+
* Extra data that can be used in the search UI. You can use this to control aspects of your search UI, such as, the order of facet names and values without changing your frontend code.
|
|
4
4
|
*/
|
|
5
5
|
export type RenderingContent = {
|
|
6
6
|
facetOrdering?: FacetOrdering;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type SearchRecommendRulesParams = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Search query.
|
|
7
7
|
*/
|
|
8
8
|
query?: string;
|
|
9
9
|
/**
|
|
@@ -11,7 +11,7 @@ export type SearchRecommendRulesParams = {
|
|
|
11
11
|
*/
|
|
12
12
|
context?: string;
|
|
13
13
|
/**
|
|
14
|
-
* Requested page
|
|
14
|
+
* Requested page of the API response.
|
|
15
15
|
*/
|
|
16
16
|
page?: number;
|
|
17
17
|
/**
|
|
@@ -5,15 +5,15 @@ export type SearchRecommendRulesResponse = {
|
|
|
5
5
|
*/
|
|
6
6
|
hits: RuleResponse[];
|
|
7
7
|
/**
|
|
8
|
-
* Number of hits
|
|
8
|
+
* Number of results (hits).
|
|
9
9
|
*/
|
|
10
10
|
nbHits: number;
|
|
11
11
|
/**
|
|
12
|
-
* Page
|
|
12
|
+
* Page of search results to retrieve.
|
|
13
13
|
*/
|
|
14
14
|
page: number;
|
|
15
15
|
/**
|
|
16
|
-
* Number of pages of results
|
|
16
|
+
* Number of pages of results.
|
|
17
17
|
*/
|
|
18
18
|
nbPages: number;
|
|
19
19
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Settings for the semantic search part of NeuralSearch. Only used when `mode` is
|
|
2
|
+
* Settings for the semantic search part of NeuralSearch. Only used when `mode` is `neuralSearch`.
|
|
3
3
|
*/
|
|
4
4
|
export type SemanticSearch = {
|
|
5
5
|
/**
|
|
6
|
-
* Indices from which to collect click and conversion events.
|
|
6
|
+
* Indices from which to collect click and conversion events. If null, the current index and all its replicas are used.
|
|
7
7
|
*/
|
|
8
8
|
eventSources?: string[] | null;
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { MatchLevel } from './matchLevel';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Snippets that show the context around a matching search query.
|
|
4
4
|
*/
|
|
5
5
|
export type SnippetResultOption = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Highlighted attribute value, including HTML tags.
|
|
8
8
|
*/
|
|
9
9
|
value: string;
|
|
10
10
|
matchLevel: MatchLevel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Order of facet values that aren\'t explicitly positioned with the `order` setting. <dl> <dt><code>count</code></dt> <dd> Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Sort facet values alphabetically.</dd> <dt><code>hidden</code></dt> <dd>Don\'t show facet values that aren\'t explicitly positioned.</dd> </dl>.
|
|
3
3
|
*/
|
|
4
4
|
export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
|
|
5
5
|
//# sourceMappingURL=sortRemainingBy.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Filter the search by values of the special `_tags` attribute. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** Different from regular facets, `_tags` can only be used for filtering (including or excluding records). You won\'t get a facet count. The same combination and escaping rules apply as for `facetFilters`.
|
|
4
4
|
*/
|
|
5
5
|
export type TagFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=tagFilters.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypoToleranceEnum } from './typoToleranceEnum';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied. If typo tolerance is true, `min`, or `strict`, [word splitting and concetenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) is also active.
|
|
4
4
|
*/
|
|
5
5
|
export type TypoTolerance = TypoToleranceEnum | boolean;
|
|
6
6
|
//# sourceMappingURL=typoTolerance.d.ts.map
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - `min`. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). - `strict`. Return matches with the two lowest numbers of typos. With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.
|
|
3
|
+
*/
|
|
1
4
|
export type TypoToleranceEnum = 'min' | 'strict';
|
|
2
5
|
//# sourceMappingURL=typoToleranceEnum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
|
package/dist/model/value.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SortRemainingBy } from './sortRemainingBy';
|
|
2
2
|
export type Value = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
|
5
5
|
*/
|
|
6
6
|
order?: string[];
|
|
7
7
|
sortRemainingBy?: SortRemainingBy;
|