@algolia/recommend 5.0.0-alpha.9 → 5.0.0-alpha.90
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/builds/browser.d.ts +5 -5
- package/dist/builds/node.d.ts +5 -5
- package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/model/alternativesAsExact.d.ts +1 -1
- package/dist/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/model/anchoring.d.ts +5 -0
- package/dist/model/anchoring.d.ts.map +1 -0
- package/dist/model/aroundPrecision.d.ts +6 -0
- package/dist/model/aroundPrecision.d.ts.map +1 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
- package/dist/model/aroundRadius.d.ts +5 -5
- package/dist/model/aroundRadius.d.ts.map +1 -1
- package/dist/model/aroundRadiusAll.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts.map +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 +14 -17
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseRecommendationsQuery.d.ts +12 -0
- package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
- package/dist/model/baseSearchParams.d.ts +3 -3
- package/dist/model/baseSearchParams.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +105 -101
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
- package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
- package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
- package/dist/model/baseTrendingItemsQuery.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +127 -60
- 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 +4 -4
- package/dist/model/distinct.d.ts.map +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/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/model/exhaustive.d.ts +26 -0
- package/dist/model/exhaustive.d.ts.map +1 -0
- package/dist/model/facetFilters.d.ts +5 -5
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts +12 -12
- package/dist/model/facetOrdering.d.ts.map +1 -1
- package/dist/model/facets.d.ts +9 -9
- package/dist/model/facets.d.ts.map +1 -1
- package/dist/model/facetsStats.d.ts +18 -18
- package/dist/model/facetsStats.d.ts.map +1 -1
- package/dist/model/getRecommendTaskResponse.d.ts +5 -0
- package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
- package/dist/model/getRecommendationsParams.d.ts +10 -10
- package/dist/model/getRecommendationsParams.d.ts.map +1 -1
- package/dist/model/getRecommendationsResponse.d.ts +4 -4
- package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
- package/dist/model/highlightResult.d.ts +2 -2
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +19 -19
- package/dist/model/highlightResultOption.d.ts.map +1 -1
- package/dist/model/ignorePlurals.d.ts +4 -4
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +87 -53
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +162 -160
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/matchLevel.d.ts +4 -4
- package/dist/model/matchLevel.d.ts.map +1 -1
- package/dist/model/matchedGeoLocation.d.ts +14 -14
- package/dist/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/model/mixedSearchFilters.d.ts +1 -1
- package/dist/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/model/mode.d.ts +5 -0
- package/dist/model/mode.d.ts.map +1 -0
- package/dist/model/numericFilters.d.ts +5 -5
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts +5 -5
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/params.d.ts +13 -0
- package/dist/model/params.d.ts.map +1 -0
- package/dist/model/personalization.d.ts +14 -14
- package/dist/model/personalization.d.ts.map +1 -1
- 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 +4 -4
- package/dist/model/queryType.d.ts.map +1 -1
- package/dist/model/rankingInfo.d.ts +50 -50
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/recommendHit.d.ts +26 -26
- package/dist/model/recommendHit.d.ts.map +1 -1
- package/dist/model/recommendHits.d.ts +12 -4
- package/dist/model/recommendHits.d.ts.map +1 -1
- package/dist/model/recommendModels.d.ts +2 -0
- package/dist/model/recommendModels.d.ts.map +1 -0
- package/dist/model/recommendationModels.d.ts +4 -4
- package/dist/model/recommendationModels.d.ts.map +1 -1
- package/dist/model/recommendationsQuery.d.ts +4 -0
- package/dist/model/recommendationsQuery.d.ts.map +1 -0
- package/dist/model/recommendationsRequest.d.ts +4 -3
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendationsResponse.d.ts +3 -3
- package/dist/model/recommendationsResponse.d.ts.map +1 -1
- package/dist/model/redirect.d.ts +8 -0
- package/dist/model/redirect.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +4 -4
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/model/renderingContent.d.ts +7 -7
- package/dist/model/renderingContent.d.ts.map +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/searchParamsObject.d.ts +3 -3
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +6 -6
- package/dist/model/searchParamsQuery.d.ts.map +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/semanticSearch.d.ts +10 -0
- package/dist/model/semanticSearch.d.ts.map +1 -0
- package/dist/model/snippetResult.d.ts +2 -2
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +11 -11
- package/dist/model/snippetResultOption.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts +4 -4
- package/dist/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/model/tagFilters.d.ts +5 -5
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts +5 -0
- package/dist/model/taskStatus.d.ts.map +1 -0
- package/dist/model/trendingFacetsModel.d.ts +5 -0
- package/dist/model/trendingFacetsModel.d.ts.map +1 -0
- package/dist/model/trendingFacetsQuery.d.ts +4 -0
- package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
- package/dist/model/trendingItemsModel.d.ts +5 -0
- package/dist/model/trendingItemsModel.d.ts.map +1 -0
- package/dist/model/trendingItemsQuery.d.ts +4 -0
- package/dist/model/trendingItemsQuery.d.ts.map +1 -0
- package/dist/model/typoTolerance.d.ts +5 -5
- package/dist/model/typoTolerance.d.ts.map +1 -1
- package/dist/model/typoToleranceEnum.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/value.d.ts +8 -8
- package/dist/model/value.d.ts.map +1 -1
- package/dist/recommend.cjs +381 -0
- package/dist/recommend.esm.browser.js +552 -469
- package/dist/recommend.esm.node.js +370 -235
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +129 -81
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/advancedSyntaxFeatures.ts +1 -1
- package/model/alternativesAsExact.ts +1 -1
- package/model/anchoring.ts +6 -0
- package/model/aroundPrecision.ts +8 -0
- package/model/aroundPrecisionFromValueInner.ts +7 -0
- package/model/aroundRadius.ts +2 -2
- package/model/aroundRadiusAll.ts +1 -1
- package/model/automaticFacetFilter.ts +21 -0
- package/model/automaticFacetFilters.ts +8 -0
- package/model/baseRecommendRequest.ts +5 -11
- package/model/baseRecommendationsQuery.ts +17 -0
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +40 -45
- package/model/baseSearchResponse.ts +37 -31
- package/model/baseTrendingFacetsQuery.ts +12 -0
- package/model/baseTrendingItemsQuery.ts +22 -0
- package/model/clientMethodProps.ts +83 -11
- 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 +2 -2
- package/model/edit.ts +17 -0
- package/model/editType.ts +6 -0
- package/model/errorBase.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +2 -2
- package/model/exhaustive.ts +31 -0
- package/model/facetFilters.ts +2 -2
- package/model/facetOrdering.ts +3 -3
- package/model/facets.ts +2 -2
- package/model/facetsStats.ts +5 -5
- package/model/getRecommendTaskResponse.ts +7 -0
- package/model/getRecommendationsParams.ts +3 -3
- package/model/getRecommendationsResponse.ts +1 -1
- package/model/highlightResult.ts +1 -1
- package/model/highlightResultOption.ts +2 -2
- package/model/ignorePlurals.ts +2 -2
- package/model/index.ts +40 -6
- package/model/indexSettingsAsSearchParams.ts +51 -47
- package/model/matchLevel.ts +1 -1
- package/model/matchedGeoLocation.ts +1 -1
- package/model/mixedSearchFilters.ts +1 -1
- package/model/mode.ts +6 -0
- package/model/numericFilters.ts +2 -2
- package/model/optionalFilters.ts +2 -2
- package/model/params.ts +18 -0
- package/model/personalization.ts +1 -1
- package/model/promote.ts +6 -0
- package/model/promoteObjectID.ts +16 -0
- package/model/promoteObjectIDs.ts +16 -0
- package/model/queryType.ts +2 -2
- package/model/rankingInfo.ts +1 -1
- package/model/reRankingApplyFilter.ts +2 -2
- package/model/recommendHit.ts +4 -4
- package/model/recommendHits.ts +11 -1
- package/model/recommendModels.ts +7 -0
- package/model/recommendationModels.ts +2 -2
- package/model/recommendationsQuery.ts +7 -0
- package/model/recommendationsRequest.ts +8 -4
- package/model/recommendationsResponse.ts +1 -1
- package/model/redirect.ts +10 -0
- package/model/redirectRuleIndexMetadata.ts +27 -0
- package/model/redirectRuleIndexMetadataData.ts +8 -0
- package/model/removeStopWords.ts +2 -2
- package/model/removeWordsIfNoResults.ts +2 -2
- package/model/renderingContent.ts +2 -2
- package/model/ruleResponse.ts +34 -0
- package/model/ruleResponseMetadata.ts +8 -0
- package/model/searchParamsObject.ts +1 -1
- package/model/searchParamsQuery.ts +2 -2
- package/model/searchRecommendRulesParams.ts +36 -0
- package/model/searchRecommendRulesResponse.ts +25 -0
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +1 -1
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +2 -2
- package/model/tagFilters.ts +2 -2
- package/model/taskStatus.ts +6 -0
- package/model/trendingFacetsModel.ts +6 -0
- package/model/trendingFacetsQuery.ts +7 -0
- package/model/trendingItemsModel.ts +6 -0
- package/model/trendingItemsQuery.ts +6 -0
- package/model/typoTolerance.ts +2 -2
- package/model/typoToleranceEnum.ts +1 -1
- package/model/value.ts +1 -1
- package/package.json +30 -13
- package/dist/model/baseRecommendationRequest.d.ts +0 -9
- package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
- package/dist/model/baseTrendingRequest.d.ts +0 -13
- package/dist/model/baseTrendingRequest.d.ts.map +0 -1
- package/dist/model/recommendationRequest.d.ts +0 -4
- package/dist/model/recommendationRequest.d.ts.map +0 -1
- package/dist/model/trendingModels.d.ts +0 -5
- package/dist/model/trendingModels.d.ts.map +0 -1
- package/dist/model/trendingRequest.d.ts +0 -4
- package/dist/model/trendingRequest.d.ts.map +0 -1
- package/dist/recommend.cjs.js +0 -248
- package/model/baseRecommendationRequest.ts +0 -12
- package/model/baseTrendingRequest.ts +0 -17
- package/model/recommendationRequest.ts +0 -7
- package/model/trendingModels.ts +0 -6
- package/model/trendingRequest.ts +0 -6
package/model/distinct.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Enables
|
|
4
|
+
* 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)).
|
|
5
5
|
*/
|
|
6
6
|
export type Distinct = boolean | number;
|
package/model/edit.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { EditType } from './editType';
|
|
4
|
+
|
|
5
|
+
export type Edit = {
|
|
6
|
+
type?: EditType;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Text or patterns to remove from the query string.
|
|
10
|
+
*/
|
|
11
|
+
delete?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Text that should be inserted in place of the removed text inside the query string.
|
|
15
|
+
*/
|
|
16
|
+
insert?: string;
|
|
17
|
+
};
|
package/model/errorBase.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Error.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 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.
|
|
5
5
|
*/
|
|
6
6
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
|
|
5
|
+
*/
|
|
6
|
+
export type Exhaustive = {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the facet count is exhaustive (`true`) or approximate (`false`). See the [related discussion](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
|
|
9
|
+
*/
|
|
10
|
+
facetsCount?: boolean;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The value is `false` if not all facet values are retrieved.
|
|
14
|
+
*/
|
|
15
|
+
facetValues?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Whether the `nbHits` is exhaustive (`true`) or approximate (`false`). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches). `nbHits` is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query.
|
|
19
|
+
*/
|
|
20
|
+
nbHits?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Rules matching exhaustivity. The value is `false` if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large.
|
|
24
|
+
*/
|
|
25
|
+
rulesMatch?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Whether the typo search was exhaustive (`true`) or approximate (`false`). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled.
|
|
29
|
+
*/
|
|
30
|
+
typo?: boolean;
|
|
31
|
+
};
|
package/model/facetFilters.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Filter hits by facet value.
|
|
6
|
+
* [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
|
|
7
7
|
*/
|
|
8
8
|
export type FacetFilters = MixedSearchFilters[] | string;
|
package/model/facetOrdering.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { Facets } from './facets';
|
|
4
4
|
import type { Value } from './value';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Defines the ordering of facets (widgets).
|
|
8
8
|
*/
|
|
9
9
|
export type FacetOrdering = {
|
|
10
10
|
facets?: Facets;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Ordering of facet values within an individual facet.
|
|
14
14
|
*/
|
|
15
15
|
values?: Record<string, Value>;
|
|
16
16
|
};
|
package/model/facets.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Ordering of facets (widgets).
|
|
5
5
|
*/
|
|
6
6
|
export type Facets = {
|
|
7
7
|
/**
|
package/model/facetsStats.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
export type FacetsStats = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Minimum value in the results.
|
|
6
6
|
*/
|
|
7
7
|
min?: number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Maximum value in the results.
|
|
11
11
|
*/
|
|
12
12
|
max?: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Average facet value in the results.
|
|
16
16
|
*/
|
|
17
17
|
avg?: number;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sum of all values in the results.
|
|
21
21
|
*/
|
|
22
22
|
sum?: number;
|
|
23
23
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { TaskStatus } from './taskStatus';
|
|
4
|
+
|
|
5
|
+
export type GetRecommendTaskResponse = {
|
|
6
|
+
status: TaskStatus;
|
|
7
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { RecommendationsRequest } from './recommendationsRequest';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Recommend parameters.
|
|
7
7
|
*/
|
|
8
8
|
export type GetRecommendationsParams = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Request parameters depend on the model (recommendations or trending).
|
|
11
11
|
*/
|
|
12
12
|
requests: RecommendationsRequest[];
|
|
13
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { RecommendationsResponse } from './recommendationsResponse';
|
|
4
4
|
|
package/model/highlightResult.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { HighlightResultOption } from './highlightResultOption';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { MatchLevel } from './matchLevel';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import type { MatchLevel } from './matchLevel';
|
|
|
7
7
|
*/
|
|
8
8
|
export type HighlightResultOption = {
|
|
9
9
|
/**
|
|
10
|
-
* Markup text with
|
|
10
|
+
* Markup text with `facetQuery` matches highlighted.
|
|
11
11
|
*/
|
|
12
12
|
value: string;
|
|
13
13
|
|
package/model/ignorePlurals.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Treats singular, plurals, and other forms of declensions as matching terms.
|
|
4
|
+
* 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\").
|
|
5
5
|
*/
|
|
6
6
|
export type IgnorePlurals = string[] | boolean;
|
package/model/index.ts
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
export * from './advancedSyntaxFeatures';
|
|
4
4
|
export * from './alternativesAsExact';
|
|
5
|
+
export * from './anchoring';
|
|
6
|
+
export * from './aroundPrecision';
|
|
7
|
+
export * from './aroundPrecisionFromValueInner';
|
|
5
8
|
export * from './aroundRadius';
|
|
6
9
|
export * from './aroundRadiusAll';
|
|
10
|
+
export * from './automaticFacetFilter';
|
|
11
|
+
export * from './automaticFacetFilters';
|
|
7
12
|
export * from './baseRecommendRequest';
|
|
8
|
-
export * from './
|
|
13
|
+
export * from './baseRecommendationsQuery';
|
|
9
14
|
export * from './baseSearchParams';
|
|
10
15
|
export * from './baseSearchParamsWithoutQuery';
|
|
11
16
|
export * from './baseSearchResponse';
|
|
12
|
-
export * from './
|
|
17
|
+
export * from './baseTrendingFacetsQuery';
|
|
18
|
+
export * from './baseTrendingItemsQuery';
|
|
19
|
+
export * from './condition';
|
|
20
|
+
export * from './consequence';
|
|
21
|
+
export * from './consequenceHide';
|
|
22
|
+
export * from './consequenceParams';
|
|
23
|
+
export * from './consequenceQuery';
|
|
24
|
+
export * from './consequenceQueryObject';
|
|
25
|
+
export * from './deletedAtResponse';
|
|
13
26
|
export * from './distinct';
|
|
27
|
+
export * from './edit';
|
|
28
|
+
export * from './editType';
|
|
14
29
|
export * from './errorBase';
|
|
15
30
|
export * from './exactOnSingleWordQuery';
|
|
31
|
+
export * from './exhaustive';
|
|
16
32
|
export * from './facetFilters';
|
|
17
33
|
export * from './facetOrdering';
|
|
18
34
|
export * from './facets';
|
|
19
35
|
export * from './facetsStats';
|
|
36
|
+
export * from './getRecommendTaskResponse';
|
|
20
37
|
export * from './getRecommendationsParams';
|
|
21
38
|
export * from './getRecommendationsResponse';
|
|
22
39
|
export * from './highlightResult';
|
|
@@ -26,29 +43,46 @@ export * from './indexSettingsAsSearchParams';
|
|
|
26
43
|
export * from './matchLevel';
|
|
27
44
|
export * from './matchedGeoLocation';
|
|
28
45
|
export * from './mixedSearchFilters';
|
|
46
|
+
export * from './mode';
|
|
29
47
|
export * from './numericFilters';
|
|
30
48
|
export * from './optionalFilters';
|
|
49
|
+
export * from './params';
|
|
31
50
|
export * from './personalization';
|
|
51
|
+
export * from './promote';
|
|
52
|
+
export * from './promoteObjectID';
|
|
53
|
+
export * from './promoteObjectIDs';
|
|
32
54
|
export * from './queryType';
|
|
33
55
|
export * from './rankingInfo';
|
|
34
56
|
export * from './reRankingApplyFilter';
|
|
35
57
|
export * from './recommendHit';
|
|
36
58
|
export * from './recommendHits';
|
|
59
|
+
export * from './recommendModels';
|
|
37
60
|
export * from './recommendationModels';
|
|
38
|
-
export * from './
|
|
61
|
+
export * from './recommendationsQuery';
|
|
39
62
|
export * from './recommendationsRequest';
|
|
40
63
|
export * from './recommendationsResponse';
|
|
64
|
+
export * from './redirect';
|
|
65
|
+
export * from './redirectRuleIndexMetadata';
|
|
66
|
+
export * from './redirectRuleIndexMetadataData';
|
|
41
67
|
export * from './removeStopWords';
|
|
42
68
|
export * from './removeWordsIfNoResults';
|
|
43
69
|
export * from './renderingContent';
|
|
70
|
+
export * from './ruleResponse';
|
|
71
|
+
export * from './ruleResponseMetadata';
|
|
44
72
|
export * from './searchParamsObject';
|
|
45
73
|
export * from './searchParamsQuery';
|
|
74
|
+
export * from './searchRecommendRulesParams';
|
|
75
|
+
export * from './searchRecommendRulesResponse';
|
|
76
|
+
export * from './semanticSearch';
|
|
46
77
|
export * from './snippetResult';
|
|
47
78
|
export * from './snippetResultOption';
|
|
48
79
|
export * from './sortRemainingBy';
|
|
49
80
|
export * from './tagFilters';
|
|
50
|
-
export * from './
|
|
51
|
-
export * from './
|
|
81
|
+
export * from './taskStatus';
|
|
82
|
+
export * from './trendingFacetsModel';
|
|
83
|
+
export * from './trendingFacetsQuery';
|
|
84
|
+
export * from './trendingItemsModel';
|
|
85
|
+
export * from './trendingItemsQuery';
|
|
52
86
|
export * from './typoTolerance';
|
|
53
87
|
export * from './typoToleranceEnum';
|
|
54
88
|
export * from './value';
|
|
@@ -1,69 +1,62 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
|
|
4
4
|
import type { AlternativesAsExact } from './alternativesAsExact';
|
|
5
5
|
import type { Distinct } from './distinct';
|
|
6
6
|
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
|
|
7
7
|
import type { IgnorePlurals } from './ignorePlurals';
|
|
8
|
+
import type { Mode } from './mode';
|
|
8
9
|
import type { QueryType } from './queryType';
|
|
10
|
+
import type { ReRankingApplyFilter } from './reRankingApplyFilter';
|
|
9
11
|
import type { RemoveStopWords } from './removeStopWords';
|
|
10
12
|
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
|
|
11
13
|
import type { RenderingContent } from './renderingContent';
|
|
14
|
+
import type { SemanticSearch } from './semanticSearch';
|
|
12
15
|
import type { TypoTolerance } from './typoTolerance';
|
|
13
16
|
|
|
14
17
|
export type IndexSettingsAsSearchParams = {
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* 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`.
|
|
17
20
|
*/
|
|
18
21
|
attributesForFaceting?: string[];
|
|
19
22
|
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
unretrievableAttributes?: string[];
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* This parameter controls which attributes to retrieve and which not to retrieve.
|
|
24
|
+
* 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.
|
|
27
25
|
*/
|
|
28
26
|
attributesToRetrieve?: string[];
|
|
29
27
|
|
|
30
28
|
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
restrictSearchableAttributes?: string[];
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Controls how Algolia should sort your results.
|
|
29
|
+
* Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
|
|
37
30
|
*/
|
|
38
31
|
ranking?: string[];
|
|
39
32
|
|
|
40
33
|
/**
|
|
41
|
-
* Specifies the
|
|
34
|
+
* 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.
|
|
42
35
|
*/
|
|
43
36
|
customRanking?: string[];
|
|
44
37
|
|
|
45
38
|
/**
|
|
46
|
-
*
|
|
39
|
+
* Relevancy threshold below which less relevant results aren\'t included in the results.
|
|
47
40
|
*/
|
|
48
41
|
relevancyStrictness?: number;
|
|
49
42
|
|
|
50
43
|
/**
|
|
51
|
-
*
|
|
44
|
+
* Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
|
|
52
45
|
*/
|
|
53
46
|
attributesToHighlight?: string[];
|
|
54
47
|
|
|
55
48
|
/**
|
|
56
|
-
*
|
|
49
|
+
* 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`.
|
|
57
50
|
*/
|
|
58
51
|
attributesToSnippet?: string[];
|
|
59
52
|
|
|
60
53
|
/**
|
|
61
|
-
*
|
|
54
|
+
* HTML string to insert before the highlighted parts in all highlight and snippet results.
|
|
62
55
|
*/
|
|
63
56
|
highlightPreTag?: string;
|
|
64
57
|
|
|
65
58
|
/**
|
|
66
|
-
*
|
|
59
|
+
* HTML string to insert after the highlighted parts in all highlight and snippet results.
|
|
67
60
|
*/
|
|
68
61
|
highlightPostTag?: string;
|
|
69
62
|
|
|
@@ -78,17 +71,17 @@ export type IndexSettingsAsSearchParams = {
|
|
|
78
71
|
restrictHighlightAndSnippetArrays?: boolean;
|
|
79
72
|
|
|
80
73
|
/**
|
|
81
|
-
*
|
|
74
|
+
* Number of hits per page.
|
|
82
75
|
*/
|
|
83
76
|
hitsPerPage?: number;
|
|
84
77
|
|
|
85
78
|
/**
|
|
86
|
-
* Minimum number of characters a word in the query string must contain to accept matches with
|
|
79
|
+
* 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).
|
|
87
80
|
*/
|
|
88
81
|
minWordSizefor1Typo?: number;
|
|
89
82
|
|
|
90
83
|
/**
|
|
91
|
-
* Minimum number of characters a word in the query string must contain to accept matches with
|
|
84
|
+
* 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).
|
|
92
85
|
*/
|
|
93
86
|
minWordSizefor2Typos?: number;
|
|
94
87
|
|
|
@@ -100,7 +93,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
100
93
|
allowTyposOnNumericTokens?: boolean;
|
|
101
94
|
|
|
102
95
|
/**
|
|
103
|
-
*
|
|
96
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
|
|
104
97
|
*/
|
|
105
98
|
disableTypoToleranceOnAttributes?: string[];
|
|
106
99
|
|
|
@@ -109,27 +102,27 @@ export type IndexSettingsAsSearchParams = {
|
|
|
109
102
|
removeStopWords?: RemoveStopWords;
|
|
110
103
|
|
|
111
104
|
/**
|
|
112
|
-
*
|
|
105
|
+
* 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/).
|
|
113
106
|
*/
|
|
114
107
|
keepDiacriticsOnCharacters?: string;
|
|
115
108
|
|
|
116
109
|
/**
|
|
117
|
-
* Sets
|
|
110
|
+
* 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.
|
|
118
111
|
*/
|
|
119
112
|
queryLanguages?: string[];
|
|
120
113
|
|
|
121
114
|
/**
|
|
122
|
-
* Splits compound words into their
|
|
115
|
+
* [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.
|
|
123
116
|
*/
|
|
124
117
|
decompoundQuery?: boolean;
|
|
125
118
|
|
|
126
119
|
/**
|
|
127
|
-
*
|
|
120
|
+
* Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
|
|
128
121
|
*/
|
|
129
122
|
enableRules?: boolean;
|
|
130
123
|
|
|
131
124
|
/**
|
|
132
|
-
*
|
|
125
|
+
* Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
|
|
133
126
|
*/
|
|
134
127
|
enablePersonalization?: boolean;
|
|
135
128
|
|
|
@@ -137,69 +130,80 @@ export type IndexSettingsAsSearchParams = {
|
|
|
137
130
|
|
|
138
131
|
removeWordsIfNoResults?: RemoveWordsIfNoResults;
|
|
139
132
|
|
|
133
|
+
mode?: Mode;
|
|
134
|
+
|
|
135
|
+
semanticSearch?: SemanticSearch;
|
|
136
|
+
|
|
140
137
|
/**
|
|
141
|
-
* Enables the advanced query syntax.
|
|
138
|
+
* Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
|
|
142
139
|
*/
|
|
143
140
|
advancedSyntax?: boolean;
|
|
144
141
|
|
|
145
142
|
/**
|
|
146
|
-
*
|
|
143
|
+
* 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.
|
|
147
144
|
*/
|
|
148
145
|
optionalWords?: string[];
|
|
149
146
|
|
|
150
147
|
/**
|
|
151
|
-
*
|
|
148
|
+
* 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).
|
|
152
149
|
*/
|
|
153
150
|
disableExactOnAttributes?: string[];
|
|
154
151
|
|
|
155
152
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
156
153
|
|
|
157
154
|
/**
|
|
158
|
-
*
|
|
155
|
+
* 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).
|
|
159
156
|
*/
|
|
160
157
|
alternativesAsExact?: AlternativesAsExact[];
|
|
161
158
|
|
|
162
159
|
/**
|
|
163
|
-
* Allows you to specify which advanced syntax features are active when
|
|
160
|
+
* Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
|
|
164
161
|
*/
|
|
165
162
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
166
163
|
|
|
167
164
|
distinct?: Distinct;
|
|
168
165
|
|
|
169
166
|
/**
|
|
170
|
-
*
|
|
167
|
+
* Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
|
|
171
168
|
*/
|
|
172
|
-
|
|
169
|
+
replaceSynonymsInHighlight?: boolean;
|
|
173
170
|
|
|
174
171
|
/**
|
|
175
|
-
*
|
|
172
|
+
* Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
|
|
176
173
|
*/
|
|
177
|
-
|
|
174
|
+
minProximity?: number;
|
|
178
175
|
|
|
179
176
|
/**
|
|
180
|
-
*
|
|
177
|
+
* Attributes to include in the API response for search and browse queries.
|
|
181
178
|
*/
|
|
182
|
-
|
|
179
|
+
responseFields?: string[];
|
|
183
180
|
|
|
184
181
|
/**
|
|
185
|
-
*
|
|
182
|
+
* 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).
|
|
186
183
|
*/
|
|
187
|
-
|
|
184
|
+
maxFacetHits?: number;
|
|
188
185
|
|
|
189
186
|
/**
|
|
190
|
-
*
|
|
187
|
+
* Maximum number of facet values to return for each facet.
|
|
191
188
|
*/
|
|
192
|
-
|
|
189
|
+
maxValuesPerFacet?: number;
|
|
193
190
|
|
|
194
191
|
/**
|
|
195
|
-
*
|
|
192
|
+
* Controls how facet values are fetched.
|
|
196
193
|
*/
|
|
197
|
-
|
|
194
|
+
sortFacetValuesBy?: string;
|
|
198
195
|
|
|
199
196
|
/**
|
|
200
|
-
* When
|
|
197
|
+
* 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.
|
|
201
198
|
*/
|
|
202
199
|
attributeCriteriaComputedByMinProximity?: boolean;
|
|
203
200
|
|
|
204
201
|
renderingContent?: RenderingContent;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
|
|
205
|
+
*/
|
|
206
|
+
enableReRanking?: boolean;
|
|
207
|
+
|
|
208
|
+
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
205
209
|
};
|
package/model/matchLevel.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Indicates how well the attribute matched the search query.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
export type MatchedGeoLocation = {
|
|
4
4
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
export type MixedSearchFilters = string[] | string;
|
package/model/mode.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Search mode the index will use to query for results.
|
|
5
|
+
*/
|
|
6
|
+
export type Mode = 'keywordSearch' | 'neuralSearch';
|
package/model/numericFilters.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Filter on numeric attributes.
|
|
6
|
+
* [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
|
|
7
7
|
*/
|
|
8
8
|
export type NumericFilters = MixedSearchFilters[] | string;
|
package/model/optionalFilters.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Create filters
|
|
6
|
+
* 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.
|
|
7
7
|
*/
|
|
8
8
|
export type OptionalFilters = MixedSearchFilters[] | string;
|