@algolia/recommend 5.0.0-alpha.72 → 5.0.0-alpha.75
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 +5 -0
- package/dist/model/anchoring.d.ts.map +1 -0
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/automaticFacetFilter.d.ts +18 -0
- package/dist/model/automaticFacetFilter.d.ts.map +1 -0
- package/dist/model/automaticFacetFilters.d.ts +6 -0
- package/dist/model/automaticFacetFilters.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +3 -3
- package/dist/model/baseRecommendationRequest.d.ts +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/model/baseSearchResponse.d.ts +20 -20
- package/dist/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/model/baseTrendingRequest.d.ts +2 -2
- package/dist/model/clientMethodProps.d.ts +77 -10
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +17 -0
- package/dist/model/condition.d.ts.map +1 -0
- package/dist/model/consequence.d.ts +26 -0
- package/dist/model/consequence.d.ts.map +1 -0
- package/dist/model/consequenceHide.d.ts +10 -0
- package/dist/model/consequenceHide.d.ts.map +1 -0
- package/dist/model/consequenceParams.d.ts +5 -0
- package/dist/model/consequenceParams.d.ts.map +1 -0
- package/dist/model/consequenceQuery.d.ts +6 -0
- package/dist/model/consequenceQuery.d.ts.map +1 -0
- package/dist/model/consequenceQueryObject.d.ts +12 -0
- package/dist/model/consequenceQueryObject.d.ts.map +1 -0
- package/dist/model/deletedAtResponse.d.ts +14 -0
- package/dist/model/deletedAtResponse.d.ts.map +1 -0
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/edit.d.ts +13 -0
- package/dist/model/edit.d.ts.map +1 -0
- package/dist/model/editType.d.ts +5 -0
- package/dist/model/editType.d.ts.map +1 -0
- 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 +1 -1
- package/dist/model/facetsStats.d.ts +4 -4
- package/dist/model/getRecommendTaskResponse.d.ts +5 -0
- package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
- package/dist/model/getRecommendationsParams.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +1 -1
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/index.d.ts +23 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- 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 +13 -0
- package/dist/model/params.d.ts.map +1 -0
- package/dist/model/promote.d.ts +4 -0
- package/dist/model/promote.d.ts.map +1 -0
- package/dist/model/promoteObjectID.d.ts +14 -0
- package/dist/model/promoteObjectID.d.ts.map +1 -0
- package/dist/model/promoteObjectIDs.d.ts +14 -0
- package/dist/model/promoteObjectIDs.d.ts.map +1 -0
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/recommendHit.d.ts +3 -3
- package/dist/model/recommendModels.d.ts +2 -0
- package/dist/model/recommendModels.d.ts.map +1 -0
- package/dist/model/recommendationModels.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadataData.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/ruleResponse.d.ts +27 -0
- package/dist/model/ruleResponse.d.ts.map +1 -0
- package/dist/model/ruleResponseMetadata.d.ts +7 -0
- package/dist/model/ruleResponseMetadata.d.ts.map +1 -0
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +30 -0
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
- package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
- package/dist/model/snippetResultOption.d.ts +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +5 -0
- package/dist/model/taskStatus.d.ts.map +1 -0
- package/dist/model/trendingModels.d.ts +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/recommend.cjs.js +148 -15
- package/dist/recommend.esm.browser.js +148 -13
- package/dist/recommend.esm.node.js +148 -13
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +62 -14
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/model/anchoring.ts +6 -0
- package/model/aroundRadius.ts +1 -1
- package/model/automaticFacetFilter.ts +21 -0
- package/model/automaticFacetFilters.ts +8 -0
- package/model/baseRecommendRequest.ts +3 -3
- package/model/baseRecommendationRequest.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/model/baseSearchResponse.ts +20 -20
- package/model/baseSearchResponseRedirect.ts +1 -1
- package/model/baseTrendingRequest.ts +2 -2
- package/model/clientMethodProps.ts +82 -10
- package/model/condition.ts +22 -0
- package/model/consequence.ts +32 -0
- package/model/consequenceHide.ts +11 -0
- package/model/consequenceParams.ts +9 -0
- package/model/consequenceQuery.ts +8 -0
- package/model/consequenceQueryObject.ts +15 -0
- package/model/deletedAtResponse.ts +16 -0
- package/model/distinct.ts +1 -1
- package/model/edit.ts +17 -0
- package/model/editType.ts +6 -0
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +1 -1
- package/model/facetsStats.ts +4 -4
- package/model/getRecommendTaskResponse.ts +7 -0
- package/model/getRecommendationsParams.ts +2 -2
- package/model/highlightResultOption.ts +1 -1
- package/model/ignorePlurals.ts +1 -1
- package/model/index.ts +23 -0
- package/model/indexSettingsAsSearchParams.ts +30 -30
- package/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/model/mode.ts +1 -1
- package/model/numericFilters.ts +1 -1
- package/model/optionalFilters.ts +1 -1
- package/model/params.ts +18 -0
- package/model/promote.ts +6 -0
- package/model/promoteObjectID.ts +16 -0
- package/model/promoteObjectIDs.ts +16 -0
- package/model/queryType.ts +1 -1
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/recommendHit.ts +3 -3
- package/model/recommendModels.ts +7 -0
- package/model/recommendationModels.ts +1 -1
- package/model/redirectRuleIndexMetadata.ts +1 -1
- package/model/redirectRuleIndexMetadataData.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/ruleResponse.ts +34 -0
- package/model/ruleResponseMetadata.ts +8 -0
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchRecommendRulesParams.ts +36 -0
- package/model/searchRecommendRulesResponse.ts +25 -0
- package/model/snippetResultOption.ts +1 -1
- package/model/sortRemainingBy.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +6 -0
- package/model/trendingModels.ts +1 -1
- package/model/typoTolerance.ts +1 -1
- package/package.json +8 -7
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response, taskID, and deletion timestamp.
|
|
3
|
+
*/
|
|
4
|
+
export type DeletedAtResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
|
|
7
|
+
*/
|
|
8
|
+
taskID: number;
|
|
9
|
+
/**
|
|
10
|
+
* Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
11
|
+
*/
|
|
12
|
+
deletedAt: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=deletedAtResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletedAtResponse.d.ts","sourceRoot":"","sources":["../../model/deletedAtResponse.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/dist/model/distinct.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Enables
|
|
2
|
+
* Enables [deduplication or grouping of results (Algolia\'s _distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature)).
|
|
3
3
|
*/
|
|
4
4
|
export type Distinct = boolean | number;
|
|
5
5
|
//# sourceMappingURL=distinct.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EditType } from './editType';
|
|
2
|
+
export type Edit = {
|
|
3
|
+
type?: EditType;
|
|
4
|
+
/**
|
|
5
|
+
* Text or patterns to remove from the query string.
|
|
6
|
+
*/
|
|
7
|
+
delete?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Text that should be inserted in place of the removed text inside the query string.
|
|
10
|
+
*/
|
|
11
|
+
insert?: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../model/edit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editType.d.ts","sourceRoot":"","sources":["../../model/editType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Determines how 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) is computed when the query contains only one word.
|
|
3
3
|
*/
|
|
4
4
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
5
5
|
//# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
* Filter hits by facet value.
|
|
3
|
+
* [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
|
|
4
4
|
*/
|
|
5
5
|
export type FacetFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=facetFilters.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Facets } from './facets';
|
|
2
2
|
import type { Value } from './value';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Defines the ordering of facets (widgets).
|
|
5
5
|
*/
|
|
6
6
|
export type FacetOrdering = {
|
|
7
7
|
facets?: Facets;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Ordering of facet values within an individual facet.
|
|
10
10
|
*/
|
|
11
11
|
values?: Record<string, Value>;
|
|
12
12
|
};
|
package/dist/model/facets.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type FacetsStats = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Minimum value in the results.
|
|
4
4
|
*/
|
|
5
5
|
min?: number;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Maximum value in the results.
|
|
8
8
|
*/
|
|
9
9
|
max?: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Average facet value in the results.
|
|
12
12
|
*/
|
|
13
13
|
avg?: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sum of all values in the results.
|
|
16
16
|
*/
|
|
17
17
|
sum?: number;
|
|
18
18
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecommendTaskResponse.d.ts","sourceRoot":"","sources":["../../model/getRecommendTaskResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RecommendationsRequest } from './recommendationsRequest';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Recommend parameters.
|
|
4
4
|
*/
|
|
5
5
|
export type GetRecommendationsParams = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Request parameters depend on the model (recommendations or trending).
|
|
8
8
|
*/
|
|
9
9
|
requests: RecommendationsRequest[];
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Treats singular, plurals, and other forms of declensions as matching terms.
|
|
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 feature, where singulars and plurals are considered equivalent (\"foot\" = \"feet\"). The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the ignore plurals feature, so that singulars and plurals aren\'t considered to be the same (\"foot\" will not find \"feet\").
|
|
3
3
|
*/
|
|
4
4
|
export type IgnorePlurals = string[] | boolean;
|
|
5
5
|
//# sourceMappingURL=ignorePlurals.d.ts.map
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './advancedSyntaxFeatures';
|
|
2
2
|
export * from './alternativesAsExact';
|
|
3
|
+
export * from './anchoring';
|
|
3
4
|
export * from './aroundRadius';
|
|
4
5
|
export * from './aroundRadiusAll';
|
|
6
|
+
export * from './automaticFacetFilter';
|
|
7
|
+
export * from './automaticFacetFilters';
|
|
5
8
|
export * from './baseRecommendRequest';
|
|
6
9
|
export * from './baseRecommendationRequest';
|
|
7
10
|
export * from './baseSearchParams';
|
|
@@ -9,13 +12,23 @@ export * from './baseSearchParamsWithoutQuery';
|
|
|
9
12
|
export * from './baseSearchResponse';
|
|
10
13
|
export * from './baseSearchResponseRedirect';
|
|
11
14
|
export * from './baseTrendingRequest';
|
|
15
|
+
export * from './condition';
|
|
16
|
+
export * from './consequence';
|
|
17
|
+
export * from './consequenceHide';
|
|
18
|
+
export * from './consequenceParams';
|
|
19
|
+
export * from './consequenceQuery';
|
|
20
|
+
export * from './consequenceQueryObject';
|
|
21
|
+
export * from './deletedAtResponse';
|
|
12
22
|
export * from './distinct';
|
|
23
|
+
export * from './edit';
|
|
24
|
+
export * from './editType';
|
|
13
25
|
export * from './errorBase';
|
|
14
26
|
export * from './exactOnSingleWordQuery';
|
|
15
27
|
export * from './facetFilters';
|
|
16
28
|
export * from './facetOrdering';
|
|
17
29
|
export * from './facets';
|
|
18
30
|
export * from './facetsStats';
|
|
31
|
+
export * from './getRecommendTaskResponse';
|
|
19
32
|
export * from './getRecommendationsParams';
|
|
20
33
|
export * from './getRecommendationsResponse';
|
|
21
34
|
export * from './highlightResult';
|
|
@@ -29,12 +42,17 @@ export * from './mixedSearchFilters';
|
|
|
29
42
|
export * from './mode';
|
|
30
43
|
export * from './numericFilters';
|
|
31
44
|
export * from './optionalFilters';
|
|
45
|
+
export * from './params';
|
|
32
46
|
export * from './personalization';
|
|
47
|
+
export * from './promote';
|
|
48
|
+
export * from './promoteObjectID';
|
|
49
|
+
export * from './promoteObjectIDs';
|
|
33
50
|
export * from './queryType';
|
|
34
51
|
export * from './rankingInfo';
|
|
35
52
|
export * from './reRankingApplyFilter';
|
|
36
53
|
export * from './recommendHit';
|
|
37
54
|
export * from './recommendHits';
|
|
55
|
+
export * from './recommendModels';
|
|
38
56
|
export * from './recommendationModels';
|
|
39
57
|
export * from './recommendationRequest';
|
|
40
58
|
export * from './recommendationsRequest';
|
|
@@ -44,12 +62,17 @@ export * from './redirectRuleIndexMetadataData';
|
|
|
44
62
|
export * from './removeStopWords';
|
|
45
63
|
export * from './removeWordsIfNoResults';
|
|
46
64
|
export * from './renderingContent';
|
|
65
|
+
export * from './ruleResponse';
|
|
66
|
+
export * from './ruleResponseMetadata';
|
|
47
67
|
export * from './searchParamsObject';
|
|
48
68
|
export * from './searchParamsQuery';
|
|
69
|
+
export * from './searchRecommendRulesParams';
|
|
70
|
+
export * from './searchRecommendRulesResponse';
|
|
49
71
|
export * from './snippetResult';
|
|
50
72
|
export * from './snippetResultOption';
|
|
51
73
|
export * from './sortRemainingBy';
|
|
52
74
|
export * from './tagFilters';
|
|
75
|
+
export * from './taskStatus';
|
|
53
76
|
export * from './trendingModels';
|
|
54
77
|
export * from './trendingRequest';
|
|
55
78
|
export * from './typoTolerance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,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ance } from './typoTolerance';
|
|
13
13
|
export type IndexSettingsAsSearchParams = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
|
|
16
16
|
*/
|
|
17
17
|
attributesForFaceting?: string[];
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 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.
|
|
20
20
|
*/
|
|
21
21
|
attributesToRetrieve?: string[];
|
|
22
22
|
/**
|
|
23
|
-
* Restricts a
|
|
23
|
+
* Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
|
|
24
24
|
*/
|
|
25
25
|
restrictSearchableAttributes?: string[];
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
|
|
28
28
|
*/
|
|
29
29
|
ranking?: string[];
|
|
30
30
|
/**
|
|
31
|
-
* Specifies the
|
|
31
|
+
* Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Use the `asc` and `desc` modifiers to specify the ranking order: ascending or descending.
|
|
32
32
|
*/
|
|
33
33
|
customRanking?: string[];
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Relevancy threshold below which less relevant results aren\'t included in the results.
|
|
36
36
|
*/
|
|
37
37
|
relevancyStrictness?: number;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
|
|
40
40
|
*/
|
|
41
41
|
attributesToHighlight?: string[];
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Attributes to _snippet_. \'Snippeting\' is shortening the attribute to a certain number of words. If not specified, the attribute is shortened to the 10 words around the matching string but you can specify the number. For example: `body:20`.
|
|
44
44
|
*/
|
|
45
45
|
attributesToSnippet?: string[];
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* HTML string to insert before the highlighted parts in all highlight and snippet results.
|
|
48
48
|
*/
|
|
49
49
|
highlightPreTag?: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* HTML string to insert after the highlighted parts in all highlight and snippet results.
|
|
52
52
|
*/
|
|
53
53
|
highlightPostTag?: string;
|
|
54
54
|
/**
|
|
@@ -60,15 +60,15 @@ export type IndexSettingsAsSearchParams = {
|
|
|
60
60
|
*/
|
|
61
61
|
restrictHighlightAndSnippetArrays?: boolean;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Number of hits per page.
|
|
64
64
|
*/
|
|
65
65
|
hitsPerPage?: number;
|
|
66
66
|
/**
|
|
67
|
-
* Minimum number of characters a word in the query string must contain to accept matches with
|
|
67
|
+
* Minimum number of characters a word in the query string 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).
|
|
68
68
|
*/
|
|
69
69
|
minWordSizefor1Typo?: number;
|
|
70
70
|
/**
|
|
71
|
-
* Minimum number of characters a word in the query string must contain to accept matches with
|
|
71
|
+
* Minimum number of characters a word in the query string 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).
|
|
72
72
|
*/
|
|
73
73
|
minWordSizefor2Typos?: number;
|
|
74
74
|
typoTolerance?: TypoTolerance;
|
|
@@ -77,29 +77,29 @@ export type IndexSettingsAsSearchParams = {
|
|
|
77
77
|
*/
|
|
78
78
|
allowTyposOnNumericTokens?: boolean;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
|
|
81
81
|
*/
|
|
82
82
|
disableTypoToleranceOnAttributes?: string[];
|
|
83
83
|
ignorePlurals?: IgnorePlurals;
|
|
84
84
|
removeStopWords?: RemoveStopWords;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Characters that the engine shouldn\'t automatically [normalize](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
|
|
87
87
|
*/
|
|
88
88
|
keepDiacriticsOnCharacters?: string;
|
|
89
89
|
/**
|
|
90
|
-
* Sets
|
|
90
|
+
* Sets your user\'s search language. This adjusts language-specific settings and features such as `ignorePlurals`, `removeStopWords`, and [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) word detection.
|
|
91
91
|
*/
|
|
92
92
|
queryLanguages?: string[];
|
|
93
93
|
/**
|
|
94
|
-
* Splits compound words into their
|
|
94
|
+
* [Splits compound words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words) into their component word parts in the query.
|
|
95
95
|
*/
|
|
96
96
|
decompoundQuery?: boolean;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
|
|
99
99
|
*/
|
|
100
100
|
enableRules?: boolean;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
|
|
103
103
|
*/
|
|
104
104
|
enablePersonalization?: boolean;
|
|
105
105
|
queryType?: QueryType;
|
|
@@ -107,33 +107,33 @@ export type IndexSettingsAsSearchParams = {
|
|
|
107
107
|
mode?: Mode;
|
|
108
108
|
semanticSearch?: IndexSettingsAsSearchParamsSemanticSearch;
|
|
109
109
|
/**
|
|
110
|
-
* Enables the advanced query syntax.
|
|
110
|
+
* Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
|
|
111
111
|
*/
|
|
112
112
|
advancedSyntax?: boolean;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Words which should be considered [optional](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words) when found in a query.
|
|
115
115
|
*/
|
|
116
116
|
optionalWords?: string[];
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* 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).
|
|
119
119
|
*/
|
|
120
120
|
disableExactOnAttributes?: string[];
|
|
121
121
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Alternatives that should be considered an exact match by [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).
|
|
124
124
|
*/
|
|
125
125
|
alternativesAsExact?: AlternativesAsExact[];
|
|
126
126
|
/**
|
|
127
|
-
* Allows you to specify which advanced syntax features are active when
|
|
127
|
+
* Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
|
|
128
128
|
*/
|
|
129
129
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
130
130
|
/**
|
|
131
|
-
* Enriches the API
|
|
131
|
+
* Enriches the API\'s response with information about how the query was processed.
|
|
132
132
|
*/
|
|
133
133
|
explain?: string[];
|
|
134
134
|
distinct?: Distinct;
|
|
135
135
|
/**
|
|
136
|
-
* Name of the
|
|
136
|
+
* Name of the deduplication attribute to be used with Algolia\'s [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
|
|
137
137
|
*/
|
|
138
138
|
attributeForDistinct?: string;
|
|
139
139
|
/**
|
|
@@ -145,19 +145,19 @@ export type IndexSettingsAsSearchParams = {
|
|
|
145
145
|
*/
|
|
146
146
|
replaceSynonymsInHighlight?: boolean;
|
|
147
147
|
/**
|
|
148
|
-
* Precision of the proximity ranking criterion.
|
|
148
|
+
* Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
|
|
149
149
|
*/
|
|
150
150
|
minProximity?: number;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Attributes to include in the API response for search and browse queries.
|
|
153
153
|
*/
|
|
154
154
|
responseFields?: string[];
|
|
155
155
|
/**
|
|
156
|
-
* Maximum number of facet hits to return
|
|
156
|
+
* Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
157
157
|
*/
|
|
158
158
|
maxFacetHits?: number;
|
|
159
159
|
/**
|
|
160
|
-
* When
|
|
160
|
+
* When the [Attribute criterion is ranked above Proximity](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute-and-proximity-combinations) in your ranking formula, Proximity is used to select which searchable attribute is matched in the Attribute ranking stage.
|
|
161
161
|
*/
|
|
162
162
|
attributeCriteriaComputedByMinProximity?: boolean;
|
|
163
163
|
renderingContent?: RenderingContent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Settings for the semantic search part of NeuralSearch. Only used when `mode` is _neuralSearch_.
|
|
3
3
|
*/
|
|
4
4
|
export type IndexSettingsAsSearchParamsSemanticSearch = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Indices from which to collect click and conversion events. If null, the current index and replica group will be used as the event source.
|
|
7
7
|
*/
|
|
8
8
|
eventSources?: string[] | null;
|
|
9
9
|
};
|
package/dist/model/mode.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
* Filter on numeric attributes.
|
|
3
|
+
* [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
|
|
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
|
-
* Create filters
|
|
3
|
+
* Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
|
|
4
4
|
*/
|
|
5
5
|
export type OptionalFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=optionalFilters.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AutomaticFacetFilters } from './automaticFacetFilters';
|
|
2
|
+
import type { ConsequenceQuery } from './consequenceQuery';
|
|
3
|
+
import type { RenderingContent } from './renderingContent';
|
|
4
|
+
/**
|
|
5
|
+
* Additional search parameters.
|
|
6
|
+
*/
|
|
7
|
+
export type Params = {
|
|
8
|
+
query?: ConsequenceQuery;
|
|
9
|
+
automaticFacetFilters?: AutomaticFacetFilters;
|
|
10
|
+
automaticOptionalFacetFilters?: AutomaticFacetFilters;
|
|
11
|
+
renderingContent?: RenderingContent;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../model/params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C,6BAA6B,CAAC,EAAE,qBAAqB,CAAC;IAEtD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../model/promote.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Record to promote.
|
|
3
|
+
*/
|
|
4
|
+
export type PromoteObjectID = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier of the record to promote.
|
|
7
|
+
*/
|
|
8
|
+
objectID: string;
|
|
9
|
+
/**
|
|
10
|
+
* The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
|
|
11
|
+
*/
|
|
12
|
+
position: number;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=promoteObjectID.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promoteObjectID.d.ts","sourceRoot":"","sources":["../../model/promoteObjectID.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records to promote.
|
|
3
|
+
*/
|
|
4
|
+
export type PromoteObjectIDs = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifiers of the records to promote.
|
|
7
|
+
*/
|
|
8
|
+
objectIDs: string[];
|
|
9
|
+
/**
|
|
10
|
+
* The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
|
|
11
|
+
*/
|
|
12
|
+
position: number;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=promoteObjectIDs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promoteObjectIDs.d.ts","sourceRoot":"","sources":["../../model/promoteObjectIDs.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Determines how query words are [interpreted as prefixes](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,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
* When Dynamic Re-Ranking is enabled, only records that match these filters will be
|
|
3
|
+
* When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
|
|
4
4
|
*/
|
|
5
5
|
export type ReRankingApplyFilter = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=reRankingApplyFilter.d.ts.map
|
|
@@ -2,11 +2,11 @@ import type { HighlightResult } from './highlightResult';
|
|
|
2
2
|
import type { RankingInfo } from './rankingInfo';
|
|
3
3
|
import type { SnippetResult } from './snippetResult';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Recommend hit.
|
|
6
6
|
*/
|
|
7
7
|
export type RecommendHit = Record<string, any> & {
|
|
8
8
|
/**
|
|
9
|
-
* Unique identifier
|
|
9
|
+
* Unique object identifier.
|
|
10
10
|
*/
|
|
11
11
|
objectID: string;
|
|
12
12
|
/**
|
|
@@ -20,7 +20,7 @@ export type RecommendHit = Record<string, any> & {
|
|
|
20
20
|
_rankingInfo?: RankingInfo;
|
|
21
21
|
_distinctSeqID?: number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Recommendation score.
|
|
24
24
|
*/
|
|
25
25
|
_score: number;
|
|
26
26
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendModels.d.ts","sourceRoot":"","sources":["../../model/recommendModels.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GACvB,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Removes stop (common) words from the query before executing it.
|
|
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 stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the stop words feature, allowing stop words to be taken into account in a search.
|
|
3
3
|
*/
|
|
4
4
|
export type RemoveStopWords = string[] | boolean;
|
|
5
5
|
//# sourceMappingURL=removeStopWords.d.ts.map
|