@algolia/recommend 5.0.0-alpha.1 → 5.0.0-alpha.100
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/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- 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/baseRecommendedForYouQuery.d.ts +8 -0
- package/dist/model/baseRecommendedForYouQuery.d.ts.map +1 -0
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +7 -0
- package/dist/model/baseRecommendedForYouQueryParameters.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 +5 -0
- package/dist/model/distinct.d.ts.map +1 -0
- 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 +94 -52
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +162 -158
- 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/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/recommendationsHit.d.ts +4 -0
- package/dist/model/recommendationsHit.d.ts.map +1 -0
- package/dist/model/recommendationsHits.d.ts +13 -0
- package/dist/model/recommendationsHits.d.ts.map +1 -0
- package/dist/model/recommendationsQuery.d.ts +4 -0
- package/dist/model/recommendationsQuery.d.ts.map +1 -0
- package/dist/model/recommendationsRequest.d.ts +5 -3
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendationsResults.d.ts +4 -0
- package/dist/model/recommendationsResults.d.ts.map +1 -0
- package/dist/model/recommendedForYouModel.d.ts +5 -0
- package/dist/model/recommendedForYouModel.d.ts.map +1 -0
- package/dist/model/recommendedForYouQuery.d.ts +4 -0
- package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
- package/dist/model/recommendedForYouQueryParameters.d.ts +4 -0
- package/dist/model/recommendedForYouQueryParameters.d.ts.map +1 -0
- 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 +26 -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/trendingFacetHit.d.ts +18 -0
- package/dist/model/trendingFacetHit.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 +387 -0
- package/dist/recommend.esm.browser.js +588 -460
- package/dist/recommend.esm.node.js +376 -222
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +135 -70
- 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 +7 -9
- package/model/baseRecommendationsQuery.ts +17 -0
- package/model/baseRecommendedForYouQuery.ts +12 -0
- package/model/baseRecommendedForYouQueryParameters.ts +8 -0
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +69 -42
- package/model/baseSearchResponse.ts +61 -31
- package/model/baseTrendingFacetsQuery.ts +12 -0
- package/model/baseTrendingItemsQuery.ts +22 -0
- package/model/clientMethodProps.ts +91 -19
- 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 +6 -0
- 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 +4 -3
- package/model/facets.ts +2 -2
- package/model/facetsStats.ts +8 -5
- package/model/getRecommendTaskResponse.ts +7 -0
- package/model/getRecommendationsParams.ts +3 -3
- package/model/getRecommendationsResponse.ts +3 -3
- package/model/highlightResult.ts +5 -2
- package/model/highlightResultOption.ts +5 -2
- package/model/ignorePlurals.ts +2 -2
- package/model/index.ts +50 -8
- package/model/indexSettingsAsSearchParams.ts +92 -44
- package/model/matchLevel.ts +1 -1
- package/model/matchedGeoLocation.ts +3 -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 +3 -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 +13 -1
- package/model/reRankingApplyFilter.ts +2 -2
- package/model/recommendHit.ts +9 -4
- package/model/recommendModels.ts +7 -0
- package/model/recommendationModels.ts +2 -2
- package/model/recommendationsHit.ts +6 -0
- package/model/recommendationsHits.ts +17 -0
- package/model/recommendationsQuery.ts +7 -0
- package/model/recommendationsRequest.ts +10 -4
- package/model/recommendationsResults.ts +6 -0
- package/model/recommendedForYouModel.ts +6 -0
- package/model/recommendedForYouQuery.ts +7 -0
- package/model/recommendedForYouQueryParameters.ts +7 -0
- 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 +31 -0
- package/model/searchRecommendRulesResponse.ts +25 -0
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +5 -2
- package/model/snippetResultOption.ts +3 -2
- package/model/sortRemainingBy.ts +2 -2
- package/model/tagFilters.ts +2 -2
- package/model/taskStatus.ts +6 -0
- package/model/trendingFacetHit.ts +21 -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 +2 -1
- package/package.json +32 -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/recommendHits.d.ts +0 -5
- package/dist/model/recommendHits.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/recommendationsResponse.d.ts +0 -4
- package/dist/model/recommendationsResponse.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 -235
- package/model/baseRecommendationRequest.ts +0 -11
- package/model/baseTrendingRequest.ts +0 -15
- package/model/recommendHits.ts +0 -7
- package/model/recommendationRequest.ts +0 -7
- package/model/recommendationsResponse.ts +0 -6
- package/model/trendingModels.ts +0 -6
- package/model/trendingRequest.ts +0 -6
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* Response, taskID, and deletion timestamp.
|
|
5
|
+
*/
|
|
6
|
+
export type DeletedAtResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* 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`.
|
|
9
|
+
*/
|
|
10
|
+
taskID: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
14
|
+
*/
|
|
15
|
+
deletedAt: string;
|
|
16
|
+
};
|
|
@@ -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
|
+
* 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
|
+
*/
|
|
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,15 +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
|
+
* Ordering of facet values within an individual facet.
|
|
13
14
|
*/
|
|
14
15
|
values?: Record<string, Value>;
|
|
15
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,20 +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
|
+
* Maximum value in the results.
|
|
10
11
|
*/
|
|
11
12
|
max?: number;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Average facet value in the results.
|
|
14
16
|
*/
|
|
15
17
|
avg?: number;
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
20
|
+
* Sum of all values in the results.
|
|
18
21
|
*/
|
|
19
22
|
sum?: number;
|
|
20
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,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
|
-
import type {
|
|
3
|
+
import type { RecommendationsResults } from './recommendationsResults';
|
|
4
4
|
|
|
5
5
|
export type GetRecommendationsResponse = {
|
|
6
|
-
results?:
|
|
6
|
+
results?: RecommendationsResults[];
|
|
7
7
|
};
|
package/model/highlightResult.ts
CHANGED
|
@@ -1,5 +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 { HighlightResultOption } from './highlightResultOption';
|
|
4
4
|
|
|
5
|
-
export type HighlightResult =
|
|
5
|
+
export type HighlightResult =
|
|
6
|
+
| HighlightResultOption
|
|
7
|
+
| HighlightResultOption[]
|
|
8
|
+
| Record<string, HighlightResultOption>;
|
|
@@ -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,14 +7,17 @@ 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
14
|
matchLevel: MatchLevel;
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* List of words from the query that matched the object.
|
|
16
18
|
*/
|
|
17
19
|
matchedWords: string[];
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Whether the entire attribute value is highlighted.
|
|
20
23
|
*/
|
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,21 +1,41 @@
|
|
|
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';
|
|
14
|
+
export * from './baseRecommendedForYouQuery';
|
|
15
|
+
export * from './baseRecommendedForYouQueryParameters';
|
|
9
16
|
export * from './baseSearchParams';
|
|
10
17
|
export * from './baseSearchParamsWithoutQuery';
|
|
11
18
|
export * from './baseSearchResponse';
|
|
12
|
-
export * from './
|
|
19
|
+
export * from './baseTrendingFacetsQuery';
|
|
20
|
+
export * from './baseTrendingItemsQuery';
|
|
21
|
+
export * from './condition';
|
|
22
|
+
export * from './consequence';
|
|
23
|
+
export * from './consequenceHide';
|
|
24
|
+
export * from './consequenceParams';
|
|
25
|
+
export * from './consequenceQuery';
|
|
26
|
+
export * from './consequenceQueryObject';
|
|
27
|
+
export * from './deletedAtResponse';
|
|
28
|
+
export * from './distinct';
|
|
29
|
+
export * from './edit';
|
|
30
|
+
export * from './editType';
|
|
13
31
|
export * from './errorBase';
|
|
14
32
|
export * from './exactOnSingleWordQuery';
|
|
33
|
+
export * from './exhaustive';
|
|
15
34
|
export * from './facetFilters';
|
|
16
35
|
export * from './facetOrdering';
|
|
17
36
|
export * from './facets';
|
|
18
37
|
export * from './facetsStats';
|
|
38
|
+
export * from './getRecommendTaskResponse';
|
|
19
39
|
export * from './getRecommendationsParams';
|
|
20
40
|
export * from './getRecommendationsResponse';
|
|
21
41
|
export * from './highlightResult';
|
|
@@ -25,29 +45,51 @@ export * from './indexSettingsAsSearchParams';
|
|
|
25
45
|
export * from './matchLevel';
|
|
26
46
|
export * from './matchedGeoLocation';
|
|
27
47
|
export * from './mixedSearchFilters';
|
|
48
|
+
export * from './mode';
|
|
28
49
|
export * from './numericFilters';
|
|
29
50
|
export * from './optionalFilters';
|
|
51
|
+
export * from './params';
|
|
30
52
|
export * from './personalization';
|
|
53
|
+
export * from './promote';
|
|
54
|
+
export * from './promoteObjectID';
|
|
55
|
+
export * from './promoteObjectIDs';
|
|
31
56
|
export * from './queryType';
|
|
32
57
|
export * from './rankingInfo';
|
|
33
58
|
export * from './reRankingApplyFilter';
|
|
34
59
|
export * from './recommendHit';
|
|
35
|
-
export * from './
|
|
60
|
+
export * from './recommendModels';
|
|
36
61
|
export * from './recommendationModels';
|
|
37
|
-
export * from './
|
|
62
|
+
export * from './recommendationsHit';
|
|
63
|
+
export * from './recommendationsHits';
|
|
64
|
+
export * from './recommendationsQuery';
|
|
38
65
|
export * from './recommendationsRequest';
|
|
39
|
-
export * from './
|
|
66
|
+
export * from './recommendationsResults';
|
|
67
|
+
export * from './recommendedForYouModel';
|
|
68
|
+
export * from './recommendedForYouQuery';
|
|
69
|
+
export * from './recommendedForYouQueryParameters';
|
|
70
|
+
export * from './redirect';
|
|
71
|
+
export * from './redirectRuleIndexMetadata';
|
|
72
|
+
export * from './redirectRuleIndexMetadataData';
|
|
40
73
|
export * from './removeStopWords';
|
|
41
74
|
export * from './removeWordsIfNoResults';
|
|
42
75
|
export * from './renderingContent';
|
|
76
|
+
export * from './ruleResponse';
|
|
77
|
+
export * from './ruleResponseMetadata';
|
|
43
78
|
export * from './searchParamsObject';
|
|
44
79
|
export * from './searchParamsQuery';
|
|
80
|
+
export * from './searchRecommendRulesParams';
|
|
81
|
+
export * from './searchRecommendRulesResponse';
|
|
82
|
+
export * from './semanticSearch';
|
|
45
83
|
export * from './snippetResult';
|
|
46
84
|
export * from './snippetResultOption';
|
|
47
85
|
export * from './sortRemainingBy';
|
|
48
86
|
export * from './tagFilters';
|
|
49
|
-
export * from './
|
|
50
|
-
export * from './
|
|
87
|
+
export * from './taskStatus';
|
|
88
|
+
export * from './trendingFacetHit';
|
|
89
|
+
export * from './trendingFacetsModel';
|
|
90
|
+
export * from './trendingFacetsQuery';
|
|
91
|
+
export * from './trendingItemsModel';
|
|
92
|
+
export * from './trendingItemsQuery';
|
|
51
93
|
export * from './typoTolerance';
|
|
52
94
|
export * from './typoToleranceEnum';
|
|
53
95
|
export * from './value';
|
|
@@ -1,161 +1,209 @@
|
|
|
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
|
+
import type { Distinct } from './distinct';
|
|
5
6
|
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
|
|
6
7
|
import type { IgnorePlurals } from './ignorePlurals';
|
|
8
|
+
import type { Mode } from './mode';
|
|
7
9
|
import type { QueryType } from './queryType';
|
|
10
|
+
import type { ReRankingApplyFilter } from './reRankingApplyFilter';
|
|
8
11
|
import type { RemoveStopWords } from './removeStopWords';
|
|
9
12
|
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
|
|
10
13
|
import type { RenderingContent } from './renderingContent';
|
|
14
|
+
import type { SemanticSearch } from './semanticSearch';
|
|
11
15
|
import type { TypoTolerance } from './typoTolerance';
|
|
12
16
|
|
|
13
17
|
export type IndexSettingsAsSearchParams = {
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
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`.
|
|
16
20
|
*/
|
|
17
21
|
attributesForFaceting?: string[];
|
|
22
|
+
|
|
18
23
|
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
unretrievableAttributes?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* 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.
|
|
24
25
|
*/
|
|
25
26
|
attributesToRetrieve?: string[];
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
restrictSearchableAttributes?: string[];
|
|
30
|
-
/**
|
|
31
|
-
* 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/).
|
|
32
30
|
*/
|
|
33
31
|
ranking?: string[];
|
|
32
|
+
|
|
34
33
|
/**
|
|
35
|
-
* 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.
|
|
36
35
|
*/
|
|
37
36
|
customRanking?: string[];
|
|
37
|
+
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Relevancy threshold below which less relevant results aren\'t included in the results.
|
|
40
40
|
*/
|
|
41
41
|
relevancyStrictness?: number;
|
|
42
|
+
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
|
|
44
45
|
*/
|
|
45
46
|
attributesToHighlight?: string[];
|
|
47
|
+
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
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`.
|
|
48
50
|
*/
|
|
49
51
|
attributesToSnippet?: string[];
|
|
52
|
+
|
|
50
53
|
/**
|
|
51
|
-
*
|
|
54
|
+
* HTML string to insert before the highlighted parts in all highlight and snippet results.
|
|
52
55
|
*/
|
|
53
56
|
highlightPreTag?: string;
|
|
57
|
+
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* HTML string to insert after the highlighted parts in all highlight and snippet results.
|
|
56
60
|
*/
|
|
57
61
|
highlightPostTag?: string;
|
|
62
|
+
|
|
58
63
|
/**
|
|
59
64
|
* String used as an ellipsis indicator when a snippet is truncated.
|
|
60
65
|
*/
|
|
61
66
|
snippetEllipsisText?: string;
|
|
67
|
+
|
|
62
68
|
/**
|
|
63
69
|
* Restrict highlighting and snippeting to items that matched the query.
|
|
64
70
|
*/
|
|
65
71
|
restrictHighlightAndSnippetArrays?: boolean;
|
|
72
|
+
|
|
66
73
|
/**
|
|
67
|
-
*
|
|
74
|
+
* Number of hits per page.
|
|
68
75
|
*/
|
|
69
76
|
hitsPerPage?: number;
|
|
77
|
+
|
|
70
78
|
/**
|
|
71
|
-
* 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).
|
|
72
80
|
*/
|
|
73
81
|
minWordSizefor1Typo?: number;
|
|
82
|
+
|
|
74
83
|
/**
|
|
75
|
-
* 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).
|
|
76
85
|
*/
|
|
77
86
|
minWordSizefor2Typos?: number;
|
|
87
|
+
|
|
78
88
|
typoTolerance?: TypoTolerance;
|
|
89
|
+
|
|
79
90
|
/**
|
|
80
91
|
* Whether to allow typos on numbers (\"numeric tokens\") in the query string.
|
|
81
92
|
*/
|
|
82
93
|
allowTyposOnNumericTokens?: boolean;
|
|
94
|
+
|
|
83
95
|
/**
|
|
84
|
-
*
|
|
96
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
|
|
85
97
|
*/
|
|
86
98
|
disableTypoToleranceOnAttributes?: string[];
|
|
99
|
+
|
|
87
100
|
ignorePlurals?: IgnorePlurals;
|
|
101
|
+
|
|
88
102
|
removeStopWords?: RemoveStopWords;
|
|
103
|
+
|
|
89
104
|
/**
|
|
90
|
-
*
|
|
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/).
|
|
91
106
|
*/
|
|
92
107
|
keepDiacriticsOnCharacters?: string;
|
|
108
|
+
|
|
93
109
|
/**
|
|
94
|
-
* 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.
|
|
95
111
|
*/
|
|
96
112
|
queryLanguages?: string[];
|
|
113
|
+
|
|
97
114
|
/**
|
|
98
|
-
* 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.
|
|
99
116
|
*/
|
|
100
117
|
decompoundQuery?: boolean;
|
|
118
|
+
|
|
101
119
|
/**
|
|
102
|
-
*
|
|
120
|
+
* Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
|
|
103
121
|
*/
|
|
104
122
|
enableRules?: boolean;
|
|
123
|
+
|
|
105
124
|
/**
|
|
106
|
-
*
|
|
125
|
+
* Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
|
|
107
126
|
*/
|
|
108
127
|
enablePersonalization?: boolean;
|
|
128
|
+
|
|
109
129
|
queryType?: QueryType;
|
|
130
|
+
|
|
110
131
|
removeWordsIfNoResults?: RemoveWordsIfNoResults;
|
|
132
|
+
|
|
133
|
+
mode?: Mode;
|
|
134
|
+
|
|
135
|
+
semanticSearch?: SemanticSearch;
|
|
136
|
+
|
|
111
137
|
/**
|
|
112
|
-
* 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).
|
|
113
139
|
*/
|
|
114
140
|
advancedSyntax?: boolean;
|
|
141
|
+
|
|
115
142
|
/**
|
|
116
|
-
*
|
|
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.
|
|
117
144
|
*/
|
|
118
145
|
optionalWords?: string[];
|
|
146
|
+
|
|
119
147
|
/**
|
|
120
|
-
*
|
|
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).
|
|
121
149
|
*/
|
|
122
150
|
disableExactOnAttributes?: string[];
|
|
151
|
+
|
|
123
152
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
153
|
+
|
|
124
154
|
/**
|
|
125
|
-
*
|
|
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).
|
|
126
156
|
*/
|
|
127
157
|
alternativesAsExact?: AlternativesAsExact[];
|
|
158
|
+
|
|
128
159
|
/**
|
|
129
|
-
* 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.
|
|
130
161
|
*/
|
|
131
162
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
distinct?: number;
|
|
136
|
-
/**
|
|
137
|
-
* Whether to take into account an index\'s synonyms for a particular search.
|
|
138
|
-
*/
|
|
139
|
-
synonyms?: boolean;
|
|
163
|
+
|
|
164
|
+
distinct?: Distinct;
|
|
165
|
+
|
|
140
166
|
/**
|
|
141
167
|
* Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
|
|
142
168
|
*/
|
|
143
169
|
replaceSynonymsInHighlight?: boolean;
|
|
170
|
+
|
|
144
171
|
/**
|
|
145
|
-
* Precision of the proximity ranking criterion.
|
|
172
|
+
* Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
|
|
146
173
|
*/
|
|
147
174
|
minProximity?: number;
|
|
175
|
+
|
|
148
176
|
/**
|
|
149
|
-
*
|
|
177
|
+
* Attributes to include in the API response for search and browse queries.
|
|
150
178
|
*/
|
|
151
179
|
responseFields?: string[];
|
|
180
|
+
|
|
152
181
|
/**
|
|
153
|
-
* Maximum number of facet hits to return
|
|
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).
|
|
154
183
|
*/
|
|
155
184
|
maxFacetHits?: number;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Maximum number of facet values to return for each facet.
|
|
188
|
+
*/
|
|
189
|
+
maxValuesPerFacet?: number;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Controls how facet values are fetched.
|
|
193
|
+
*/
|
|
194
|
+
sortFacetValuesBy?: string;
|
|
195
|
+
|
|
156
196
|
/**
|
|
157
|
-
* 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.
|
|
158
198
|
*/
|
|
159
199
|
attributeCriteriaComputedByMinProximity?: boolean;
|
|
200
|
+
|
|
160
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;
|
|
161
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.
|