@algolia/recommend 5.0.0-alpha.99 → 5.0.0-beta.10
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/LICENSE +21 -0
- package/dist/builds/browser.d.ts +21 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +21 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/model/aroundPrecision.d.ts +1 -1
- package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts +3 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/autoFacetFilter.d.ts +14 -0
- package/dist/model/autoFacetFilter.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +6 -4
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +26 -29
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +8 -20
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/boughtTogetherQuery.d.ts +4 -0
- package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +18 -11
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +6 -9
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +9 -17
- package/dist/model/consequence.d.ts.map +1 -1
- package/dist/model/deletedAtResponse.d.ts +2 -2
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +2 -3
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +2 -2
- package/dist/model/fallbackParams.d.ts +3 -0
- package/dist/model/fallbackParams.d.ts.map +1 -0
- package/dist/model/fbtModel.d.ts +5 -0
- package/dist/model/fbtModel.d.ts.map +1 -0
- package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
- package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
- package/dist/model/getRecommendationsParams.d.ts +2 -2
- package/dist/model/hideConsequenceObject.d.ts +10 -0
- package/dist/model/hideConsequenceObject.d.ts.map +1 -0
- package/dist/model/highlightResult.d.ts +1 -1
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +3 -3
- package/dist/model/ignorePlurals.d.ts +3 -2
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +23 -24
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/lookingSimilar.d.ts +11 -0
- package/dist/model/lookingSimilar.d.ts.map +1 -0
- package/dist/model/lookingSimilarModel.d.ts +5 -0
- package/dist/model/lookingSimilarModel.d.ts.map +1 -0
- package/dist/model/lookingSimilarQuery.d.ts +4 -0
- package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
- package/dist/model/matchLevel.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/numericFilters.d.ts +2 -3
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts +2 -3
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/paramsConsequence.d.ts +19 -0
- package/dist/model/paramsConsequence.d.ts.map +1 -0
- package/dist/model/promoteConsequenceObject.d.ts +14 -0
- package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/rankingInfo.d.ts +13 -10
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +2 -3
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/recommendHit.d.ts +3 -3
- package/dist/model/recommendRule.d.ts +24 -0
- package/dist/model/recommendRule.d.ts.map +1 -0
- package/dist/model/recommendRuleMetadata.d.ts +10 -0
- package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
- package/dist/model/recommendationsHits.d.ts +0 -8
- package/dist/model/recommendationsHits.d.ts.map +1 -1
- package/dist/model/recommendationsRequest.d.ts +4 -2
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendationsResults.d.ts +2 -1
- package/dist/model/recommendationsResults.d.ts.map +1 -1
- package/dist/model/recommendedForYou.d.ts +7 -0
- package/dist/model/recommendedForYou.d.ts.map +1 -0
- package/dist/model/recommendedForYouModel.d.ts +1 -1
- package/dist/model/recommendedForYouQuery.d.ts +2 -2
- package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
- package/dist/model/redirect.d.ts +1 -1
- package/dist/model/redirectURL.d.ts +7 -0
- package/dist/model/redirectURL.d.ts.map +1 -0
- package/dist/model/relatedModel.d.ts +5 -0
- package/dist/model/relatedModel.d.ts.map +1 -0
- package/dist/model/relatedProducts.d.ts +11 -0
- package/dist/model/relatedProducts.d.ts.map +1 -0
- package/dist/model/relatedQuery.d.ts +4 -0
- package/dist/model/relatedQuery.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +3 -2
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +3 -1
- package/dist/model/renderingContent.d.ts.map +1 -1
- package/dist/model/searchPagination.d.ts +19 -0
- package/dist/model/searchPagination.d.ts.map +1 -0
- package/dist/model/searchParams.d.ts +3 -0
- package/dist/model/searchParams.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +3 -0
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +18 -6
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesResponse.d.ts +6 -6
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
- package/dist/model/semanticSearch.d.ts +2 -2
- package/dist/model/snippetResult.d.ts +1 -1
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +2 -2
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/supportedLanguage.d.ts +5 -0
- package/dist/model/supportedLanguage.d.ts.map +1 -0
- package/dist/model/tagFilters.d.ts +2 -3
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts +1 -1
- package/dist/model/trendingFacetHit.d.ts +2 -2
- package/dist/model/trendingFacets.d.ts +11 -0
- package/dist/model/trendingFacets.d.ts.map +1 -0
- package/dist/model/trendingFacetsModel.d.ts +1 -1
- package/dist/model/trendingFacetsQuery.d.ts +2 -2
- package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
- package/dist/model/trendingItems.d.ts +15 -0
- package/dist/model/trendingItems.d.ts.map +1 -0
- package/dist/model/trendingItemsModel.d.ts +1 -1
- package/dist/model/trendingItemsQuery.d.ts +2 -2
- package/dist/model/trendingItemsQuery.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts +3 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/value.d.ts +5 -1
- package/dist/model/value.d.ts.map +1 -1
- package/dist/recommend.cjs +61 -45
- package/dist/recommend.esm.browser.js +58 -54
- package/dist/recommend.esm.node.js +61 -45
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +36 -34
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/model/aroundPrecision.ts +1 -1
- package/model/aroundPrecisionFromValueInner.ts +9 -0
- package/model/aroundRadius.ts +1 -1
- package/model/aroundRadiusAll.ts +3 -0
- package/model/autoFacetFilter.ts +16 -0
- package/model/baseRecommendRequest.ts +8 -4
- package/model/baseSearchParamsWithoutQuery.ts +26 -30
- package/model/baseSearchResponse.ts +9 -24
- package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
- package/model/clientMethodProps.ts +19 -11
- package/model/condition.ts +6 -12
- package/model/consequence.ts +9 -19
- package/model/deletedAtResponse.ts +2 -2
- package/model/distinct.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +2 -4
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +2 -2
- package/model/{recommendationModels.ts → fallbackParams.ts} +3 -4
- package/model/fbtModel.ts +6 -0
- package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +6 -5
- package/model/getRecommendationsParams.ts +2 -2
- package/model/hideConsequenceObject.ts +11 -0
- package/model/highlightResult.ts +1 -0
- package/model/highlightResultOption.ts +3 -3
- package/model/ignorePlurals.ts +4 -2
- package/model/index.ts +23 -24
- package/model/indexSettingsAsSearchParams.ts +32 -36
- package/model/lookingSimilar.ts +15 -0
- package/model/lookingSimilarModel.ts +6 -0
- package/model/lookingSimilarQuery.ts +6 -0
- package/model/matchLevel.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/numericFilters.ts +2 -4
- package/model/optionalFilters.ts +2 -4
- package/model/paramsConsequence.ts +23 -0
- package/model/promoteConsequenceObject.ts +16 -0
- package/model/queryType.ts +1 -1
- package/model/rankingInfo.ts +13 -10
- package/model/reRankingApplyFilter.ts +2 -4
- package/model/recommendHit.ts +3 -3
- package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
- package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
- package/model/recommendationsHits.ts +0 -10
- package/model/recommendationsRequest.ts +6 -2
- package/model/recommendationsResults.ts +4 -1
- package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
- package/model/recommendedForYouModel.ts +1 -1
- package/model/recommendedForYouQuery.ts +2 -3
- package/model/redirect.ts +1 -1
- package/model/{editType.ts → redirectURL.ts} +4 -2
- package/model/relatedModel.ts +6 -0
- package/model/relatedProducts.ts +15 -0
- package/model/relatedQuery.ts +6 -0
- package/model/removeStopWords.ts +4 -2
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +4 -1
- package/model/searchPagination.ts +23 -0
- package/model/{mixedSearchFilters.ts → searchParams.ts} +3 -1
- package/model/searchParamsObject.ts +3 -0
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchRecommendRulesParams.ts +21 -6
- package/model/searchRecommendRulesResponse.ts +6 -6
- package/model/semanticSearch.ts +2 -2
- package/model/snippetResult.ts +2 -1
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +1 -1
- package/model/supportedLanguage.ts +74 -0
- package/model/tagFilters.ts +2 -4
- package/model/taskStatus.ts +1 -1
- package/model/trendingFacetHit.ts +2 -2
- package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
- package/model/trendingFacetsModel.ts +1 -1
- package/model/trendingFacetsQuery.ts +2 -3
- package/model/trendingItems.ts +20 -0
- package/model/trendingItemsModel.ts +1 -1
- package/model/trendingItemsQuery.ts +2 -2
- package/model/typoTolerance.ts +1 -1
- package/model/typoToleranceEnum.ts +3 -0
- package/model/value.ts +6 -1
- package/package.json +11 -8
- package/dist/model/anchoring.d.ts +0 -5
- package/dist/model/anchoring.d.ts.map +0 -1
- package/dist/model/automaticFacetFilter.d.ts +0 -18
- package/dist/model/automaticFacetFilter.d.ts.map +0 -1
- package/dist/model/automaticFacetFilters.d.ts +0 -6
- package/dist/model/automaticFacetFilters.d.ts.map +0 -1
- package/dist/model/baseRecommendationsQuery.d.ts +0 -12
- package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
- package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
- package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
- package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
- package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
- package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
- package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
- package/dist/model/consequenceHide.d.ts +0 -10
- package/dist/model/consequenceHide.d.ts.map +0 -1
- package/dist/model/consequenceParams.d.ts +0 -5
- package/dist/model/consequenceParams.d.ts.map +0 -1
- package/dist/model/consequenceQuery.d.ts +0 -6
- package/dist/model/consequenceQuery.d.ts.map +0 -1
- package/dist/model/consequenceQueryObject.d.ts +0 -12
- package/dist/model/consequenceQueryObject.d.ts.map +0 -1
- package/dist/model/edit.d.ts +0 -13
- package/dist/model/edit.d.ts.map +0 -1
- package/dist/model/editType.d.ts +0 -5
- package/dist/model/editType.d.ts.map +0 -1
- package/dist/model/mixedSearchFilters.d.ts +0 -2
- package/dist/model/mixedSearchFilters.d.ts.map +0 -1
- package/dist/model/params.d.ts +0 -13
- package/dist/model/params.d.ts.map +0 -1
- package/dist/model/promote.d.ts +0 -4
- package/dist/model/promote.d.ts.map +0 -1
- package/dist/model/promoteObjectID.d.ts +0 -14
- package/dist/model/promoteObjectID.d.ts.map +0 -1
- package/dist/model/promoteObjectIDs.d.ts +0 -14
- package/dist/model/promoteObjectIDs.d.ts.map +0 -1
- package/dist/model/recommendationModels.d.ts +0 -5
- package/dist/model/recommendationModels.d.ts.map +0 -1
- package/dist/model/recommendationsQuery.d.ts +0 -4
- package/dist/model/recommendationsQuery.d.ts.map +0 -1
- package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
- package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
- package/dist/model/ruleResponse.d.ts +0 -27
- package/dist/model/ruleResponse.d.ts.map +0 -1
- package/dist/model/ruleResponseMetadata.d.ts +0 -7
- package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
- package/model/anchoring.ts +0 -6
- package/model/automaticFacetFilter.ts +0 -21
- package/model/automaticFacetFilters.ts +0 -8
- package/model/baseRecommendationsQuery.ts +0 -17
- package/model/baseRecommendedForYouQueryParameters.ts +0 -8
- package/model/baseTrendingItemsQuery.ts +0 -22
- package/model/consequenceParams.ts +0 -9
- package/model/consequenceQuery.ts +0 -8
- package/model/consequenceQueryObject.ts +0 -15
- package/model/edit.ts +0 -17
- package/model/params.ts +0 -18
- package/model/promote.ts +0 -6
- package/model/promoteObjectID.ts +0 -16
- package/model/promoteObjectIDs.ts +0 -16
- package/model/recommendedForYouQueryParameters.ts +0 -7
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { HideConsequenceObject } from './hideConsequenceObject';
|
|
2
|
+
import type { ParamsConsequence } from './paramsConsequence';
|
|
3
|
+
import type { PromoteConsequenceObject } from './promoteConsequenceObject';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Effect of the rule.
|
|
6
6
|
*/
|
|
7
7
|
export type Consequence = {
|
|
8
|
-
params?: ConsequenceParams;
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
9
|
+
* Exclude items from recommendations.
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
hide?: HideConsequenceObject[];
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
13
|
+
* Place items at specific positions in the list of recommendations.
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* Records to hide. By default, you can hide up to 50 records per rule.
|
|
19
|
-
*/
|
|
20
|
-
hide?: ConsequenceHide[];
|
|
21
|
-
/**
|
|
22
|
-
* Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
|
|
23
|
-
*/
|
|
24
|
-
userData?: any | null;
|
|
15
|
+
promote?: PromoteConsequenceObject[];
|
|
16
|
+
params?: ParamsConsequence;
|
|
25
17
|
};
|
|
26
18
|
//# sourceMappingURL=consequence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAErC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B,CAAC"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type DeletedAtResponse = {
|
|
5
5
|
/**
|
|
6
|
-
* Unique identifier of a task.
|
|
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](#tag/Indices/operation/getTask) and this `taskID`.
|
|
7
7
|
*/
|
|
8
8
|
taskID: number;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Date and time when the object was deleted, in RFC 3339 format.
|
|
11
11
|
*/
|
|
12
12
|
deletedAt: string;
|
|
13
13
|
};
|
package/dist/model/distinct.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
|
|
3
3
|
*/
|
|
4
4
|
export type Distinct = boolean | number;
|
|
5
5
|
//# sourceMappingURL=distinct.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
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
|
|
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 search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
|
|
3
3
|
*/
|
|
4
4
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
5
5
|
//# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
2
|
+
* Filter the search by facet values, so that only records with the same facet values are retrieved. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** - `[filter1, filter2]` is interpreted as `filter1 AND filter2`. - `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`. - `facet:-value` is interpreted as `NOT facet:value`. While it\'s best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash: `facet:\\-value`.
|
|
4
3
|
*/
|
|
5
|
-
export type FacetFilters =
|
|
4
|
+
export type FacetFilters = FacetFilters[] | string;
|
|
6
5
|
//# sourceMappingURL=facetFilters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facetFilters.d.ts","sourceRoot":"","sources":["../../model/facetFilters.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"facetFilters.d.ts","sourceRoot":"","sources":["../../model/facetFilters.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Facets } from './facets';
|
|
2
2
|
import type { Value } from './value';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Order of facet names and facet values in your UI.
|
|
5
5
|
*/
|
|
6
6
|
export type FacetOrdering = {
|
|
7
7
|
facets?: Facets;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Order of facet values. One object for each facet.
|
|
10
10
|
*/
|
|
11
11
|
values?: Record<string, Value>;
|
|
12
12
|
};
|
package/dist/model/facets.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Order of facet names.
|
|
3
3
|
*/
|
|
4
4
|
export type Facets = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
|
7
7
|
*/
|
|
8
8
|
order?: string[];
|
|
9
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallbackParams.d.ts","sourceRoot":"","sources":["../../model/fallbackParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fbtModel.d.ts","sourceRoot":"","sources":["../../model/fbtModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frequentlyBoughtTogether.d.ts","sourceRoot":"","sources":["../../model/frequentlyBoughtTogether.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RecommendationsRequest } from './recommendationsRequest';
|
|
2
2
|
/**
|
|
3
|
-
* Recommend
|
|
3
|
+
* Recommend request body.
|
|
4
4
|
*/
|
|
5
5
|
export type GetRecommendationsParams = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Recommendation request with parameters depending on the requested model.
|
|
8
8
|
*/
|
|
9
9
|
requests: RecommendationsRequest[];
|
|
10
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hideConsequenceObject.d.ts","sourceRoot":"","sources":["../../model/hideConsequenceObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { HighlightResultOption } from './highlightResultOption';
|
|
2
|
-
export type HighlightResult = HighlightResultOption | Record<string, HighlightResultOption>;
|
|
2
|
+
export type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption>;
|
|
3
3
|
//# sourceMappingURL=highlightResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { MatchLevel } from './matchLevel';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Surround words that match the query with HTML tags for highlighting.
|
|
4
4
|
*/
|
|
5
5
|
export type HighlightResultOption = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Highlighted attribute value, including HTML tags.
|
|
8
8
|
*/
|
|
9
9
|
value: string;
|
|
10
10
|
matchLevel: MatchLevel;
|
|
11
11
|
/**
|
|
12
|
-
* List of words from the query
|
|
12
|
+
* List of matched words from the search query.
|
|
13
13
|
*/
|
|
14
14
|
matchedWords: string[];
|
|
15
15
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { SupportedLanguage } from './supportedLanguage';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
|
|
3
4
|
*/
|
|
4
|
-
export type IgnorePlurals =
|
|
5
|
+
export type IgnorePlurals = SupportedLanguage[] | boolean;
|
|
5
6
|
//# sourceMappingURL=ignorePlurals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignorePlurals.d.ts","sourceRoot":"","sources":["../../model/ignorePlurals.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"ignorePlurals.d.ts","sourceRoot":"","sources":["../../model/ignorePlurals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,EAAE,GAAG,OAAO,CAAC"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
export * from './advancedSyntaxFeatures';
|
|
2
2
|
export * from './alternativesAsExact';
|
|
3
|
-
export * from './anchoring';
|
|
4
3
|
export * from './aroundPrecision';
|
|
5
4
|
export * from './aroundPrecisionFromValueInner';
|
|
6
5
|
export * from './aroundRadius';
|
|
7
6
|
export * from './aroundRadiusAll';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './automaticFacetFilters';
|
|
7
|
+
export * from './autoFacetFilter';
|
|
10
8
|
export * from './baseRecommendRequest';
|
|
11
|
-
export * from './baseRecommendationsQuery';
|
|
12
|
-
export * from './baseRecommendedForYouQuery';
|
|
13
|
-
export * from './baseRecommendedForYouQueryParameters';
|
|
14
9
|
export * from './baseSearchParams';
|
|
15
10
|
export * from './baseSearchParamsWithoutQuery';
|
|
16
11
|
export * from './baseSearchResponse';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './baseTrendingItemsQuery';
|
|
12
|
+
export * from './boughtTogetherQuery';
|
|
19
13
|
export * from './condition';
|
|
20
14
|
export * from './consequence';
|
|
21
|
-
export * from './consequenceHide';
|
|
22
|
-
export * from './consequenceParams';
|
|
23
|
-
export * from './consequenceQuery';
|
|
24
|
-
export * from './consequenceQueryObject';
|
|
25
15
|
export * from './deletedAtResponse';
|
|
26
16
|
export * from './distinct';
|
|
27
|
-
export * from './edit';
|
|
28
|
-
export * from './editType';
|
|
29
17
|
export * from './errorBase';
|
|
30
18
|
export * from './exactOnSingleWordQuery';
|
|
31
19
|
export * from './exhaustive';
|
|
@@ -33,46 +21,54 @@ export * from './facetFilters';
|
|
|
33
21
|
export * from './facetOrdering';
|
|
34
22
|
export * from './facets';
|
|
35
23
|
export * from './facetsStats';
|
|
24
|
+
export * from './fallbackParams';
|
|
25
|
+
export * from './fbtModel';
|
|
26
|
+
export * from './frequentlyBoughtTogether';
|
|
36
27
|
export * from './getRecommendTaskResponse';
|
|
37
28
|
export * from './getRecommendationsParams';
|
|
38
29
|
export * from './getRecommendationsResponse';
|
|
30
|
+
export * from './hideConsequenceObject';
|
|
39
31
|
export * from './highlightResult';
|
|
40
32
|
export * from './highlightResultOption';
|
|
41
33
|
export * from './ignorePlurals';
|
|
42
34
|
export * from './indexSettingsAsSearchParams';
|
|
35
|
+
export * from './lookingSimilar';
|
|
36
|
+
export * from './lookingSimilarModel';
|
|
37
|
+
export * from './lookingSimilarQuery';
|
|
43
38
|
export * from './matchLevel';
|
|
44
39
|
export * from './matchedGeoLocation';
|
|
45
|
-
export * from './mixedSearchFilters';
|
|
46
40
|
export * from './mode';
|
|
47
41
|
export * from './numericFilters';
|
|
48
42
|
export * from './optionalFilters';
|
|
49
|
-
export * from './
|
|
43
|
+
export * from './paramsConsequence';
|
|
50
44
|
export * from './personalization';
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './promoteObjectID';
|
|
53
|
-
export * from './promoteObjectIDs';
|
|
45
|
+
export * from './promoteConsequenceObject';
|
|
54
46
|
export * from './queryType';
|
|
55
47
|
export * from './rankingInfo';
|
|
56
48
|
export * from './reRankingApplyFilter';
|
|
57
49
|
export * from './recommendHit';
|
|
58
50
|
export * from './recommendModels';
|
|
59
|
-
export * from './
|
|
51
|
+
export * from './recommendRule';
|
|
52
|
+
export * from './recommendRuleMetadata';
|
|
60
53
|
export * from './recommendationsHit';
|
|
61
54
|
export * from './recommendationsHits';
|
|
62
|
-
export * from './recommendationsQuery';
|
|
63
55
|
export * from './recommendationsRequest';
|
|
64
56
|
export * from './recommendationsResults';
|
|
57
|
+
export * from './recommendedForYou';
|
|
65
58
|
export * from './recommendedForYouModel';
|
|
66
59
|
export * from './recommendedForYouQuery';
|
|
67
|
-
export * from './recommendedForYouQueryParameters';
|
|
68
60
|
export * from './redirect';
|
|
69
61
|
export * from './redirectRuleIndexMetadata';
|
|
70
62
|
export * from './redirectRuleIndexMetadataData';
|
|
63
|
+
export * from './redirectURL';
|
|
64
|
+
export * from './relatedModel';
|
|
65
|
+
export * from './relatedProducts';
|
|
66
|
+
export * from './relatedQuery';
|
|
71
67
|
export * from './removeStopWords';
|
|
72
68
|
export * from './removeWordsIfNoResults';
|
|
73
69
|
export * from './renderingContent';
|
|
74
|
-
export * from './
|
|
75
|
-
export * from './
|
|
70
|
+
export * from './searchPagination';
|
|
71
|
+
export * from './searchParams';
|
|
76
72
|
export * from './searchParamsObject';
|
|
77
73
|
export * from './searchParamsQuery';
|
|
78
74
|
export * from './searchRecommendRulesParams';
|
|
@@ -81,11 +77,14 @@ export * from './semanticSearch';
|
|
|
81
77
|
export * from './snippetResult';
|
|
82
78
|
export * from './snippetResultOption';
|
|
83
79
|
export * from './sortRemainingBy';
|
|
80
|
+
export * from './supportedLanguage';
|
|
84
81
|
export * from './tagFilters';
|
|
85
82
|
export * from './taskStatus';
|
|
86
83
|
export * from './trendingFacetHit';
|
|
84
|
+
export * from './trendingFacets';
|
|
87
85
|
export * from './trendingFacetsModel';
|
|
88
86
|
export * from './trendingFacetsQuery';
|
|
87
|
+
export * from './trendingItems';
|
|
89
88
|
export * from './trendingItemsModel';
|
|
90
89
|
export * from './trendingItemsQuery';
|
|
91
90
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AAC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StopWords } from './removeStopWords';
|
|
|
10
10
|
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
|
|
11
11
|
import type { RenderingContent } from './renderingContent';
|
|
12
12
|
import type { SemanticSearch } from './semanticSearch';
|
|
13
|
+
import type { SupportedLanguage } from './supportedLanguage';
|
|
13
14
|
import type { TypoTolerance } from './typoTolerance';
|
|
14
15
|
export type IndexSettingsAsSearchParams = {
|
|
15
16
|
/**
|
|
16
|
-
* Attributes
|
|
17
|
-
*/
|
|
18
|
-
attributesForFaceting?: string[];
|
|
19
|
-
/**
|
|
20
|
-
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
|
|
17
|
+
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
|
|
21
18
|
*/
|
|
22
19
|
attributesToRetrieve?: string[];
|
|
23
20
|
/**
|
|
24
|
-
* Determines the order in which Algolia
|
|
21
|
+
* Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
|
|
25
22
|
*/
|
|
26
23
|
ranking?: string[];
|
|
27
24
|
/**
|
|
28
|
-
*
|
|
25
|
+
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
|
|
29
26
|
*/
|
|
30
27
|
customRanking?: string[];
|
|
31
28
|
/**
|
|
32
|
-
* Relevancy threshold below which less relevant results aren\'t included in the results.
|
|
29
|
+
* Relevancy threshold below which less relevant results aren\'t included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
|
|
33
30
|
*/
|
|
34
31
|
relevancyStrictness?: number;
|
|
35
32
|
/**
|
|
36
|
-
* Attributes to highlight.
|
|
33
|
+
* Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
|
|
37
34
|
*/
|
|
38
35
|
attributesToHighlight?: string[];
|
|
39
36
|
/**
|
|
40
|
-
* Attributes to
|
|
37
|
+
* Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
|
|
41
38
|
*/
|
|
42
39
|
attributesToSnippet?: string[];
|
|
43
40
|
/**
|
|
44
|
-
* HTML
|
|
41
|
+
* HTML tag to insert before the highlighted parts in all highlighted results and snippets.
|
|
45
42
|
*/
|
|
46
43
|
highlightPreTag?: string;
|
|
47
44
|
/**
|
|
48
|
-
* HTML
|
|
45
|
+
* HTML tag to insert after the highlighted parts in all highlighted results and snippets.
|
|
49
46
|
*/
|
|
50
47
|
highlightPostTag?: string;
|
|
51
48
|
/**
|
|
@@ -53,7 +50,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
53
50
|
*/
|
|
54
51
|
snippetEllipsisText?: string;
|
|
55
52
|
/**
|
|
56
|
-
*
|
|
53
|
+
* Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
|
|
57
54
|
*/
|
|
58
55
|
restrictHighlightAndSnippetArrays?: boolean;
|
|
59
56
|
/**
|
|
@@ -61,42 +58,42 @@ export type IndexSettingsAsSearchParams = {
|
|
|
61
58
|
*/
|
|
62
59
|
hitsPerPage?: number;
|
|
63
60
|
/**
|
|
64
|
-
* Minimum number of characters a word in the query
|
|
61
|
+
* Minimum number of characters a word in the search query must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
65
62
|
*/
|
|
66
63
|
minWordSizefor1Typo?: number;
|
|
67
64
|
/**
|
|
68
|
-
* Minimum number of characters a word in the query
|
|
65
|
+
* Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
69
66
|
*/
|
|
70
67
|
minWordSizefor2Typos?: number;
|
|
71
68
|
typoTolerance?: TypoTolerance;
|
|
72
69
|
/**
|
|
73
|
-
* Whether to allow typos on numbers
|
|
70
|
+
* Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
|
|
74
71
|
*/
|
|
75
72
|
allowTyposOnNumericTokens?: boolean;
|
|
76
73
|
/**
|
|
77
|
-
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
|
|
74
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive. Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
|
|
78
75
|
*/
|
|
79
76
|
disableTypoToleranceOnAttributes?: string[];
|
|
80
77
|
ignorePlurals?: IgnorePlurals;
|
|
81
78
|
removeStopWords?: RemoveStopWords;
|
|
82
79
|
/**
|
|
83
|
-
* Characters
|
|
80
|
+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
|
|
84
81
|
*/
|
|
85
82
|
keepDiacriticsOnCharacters?: string;
|
|
86
83
|
/**
|
|
87
|
-
*
|
|
84
|
+
* Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don\'t specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
|
|
88
85
|
*/
|
|
89
|
-
queryLanguages?:
|
|
86
|
+
queryLanguages?: SupportedLanguage[];
|
|
90
87
|
/**
|
|
91
|
-
*
|
|
88
|
+
* Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
|
|
92
89
|
*/
|
|
93
90
|
decompoundQuery?: boolean;
|
|
94
91
|
/**
|
|
95
|
-
*
|
|
92
|
+
* Whether to enable rules.
|
|
96
93
|
*/
|
|
97
94
|
enableRules?: boolean;
|
|
98
95
|
/**
|
|
99
|
-
*
|
|
96
|
+
* Whether to enable Personalization.
|
|
100
97
|
*/
|
|
101
98
|
enablePersonalization?: boolean;
|
|
102
99
|
queryType?: QueryType;
|
|
@@ -104,41 +101,41 @@ export type IndexSettingsAsSearchParams = {
|
|
|
104
101
|
mode?: Mode;
|
|
105
102
|
semanticSearch?: SemanticSearch;
|
|
106
103
|
/**
|
|
107
|
-
*
|
|
104
|
+
* Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
|
|
108
105
|
*/
|
|
109
106
|
advancedSyntax?: boolean;
|
|
110
107
|
/**
|
|
111
|
-
* Words
|
|
108
|
+
* Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words dividied by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
|
|
112
109
|
*/
|
|
113
110
|
optionalWords?: string[];
|
|
114
111
|
/**
|
|
115
|
-
*
|
|
112
|
+
* Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
|
|
116
113
|
*/
|
|
117
114
|
disableExactOnAttributes?: string[];
|
|
118
115
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
119
116
|
/**
|
|
120
|
-
* Alternatives that should be considered
|
|
117
|
+
* Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
|
|
121
118
|
*/
|
|
122
119
|
alternativesAsExact?: AlternativesAsExact[];
|
|
123
120
|
/**
|
|
124
|
-
*
|
|
121
|
+
* Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
|
|
125
122
|
*/
|
|
126
123
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
127
124
|
distinct?: Distinct;
|
|
128
125
|
/**
|
|
129
|
-
* Whether to
|
|
126
|
+
* Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records, but all occurences of \"house\" are replaced by \"home\" in the highlighted response.
|
|
130
127
|
*/
|
|
131
128
|
replaceSynonymsInHighlight?: boolean;
|
|
132
129
|
/**
|
|
133
|
-
*
|
|
130
|
+
* Minimum proximity score for two matching words. This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity) by equally scoring matches that are farther apart. For example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.
|
|
134
131
|
*/
|
|
135
132
|
minProximity?: number;
|
|
136
133
|
/**
|
|
137
|
-
*
|
|
134
|
+
* Properties to include in the API response of `search` and `browse` requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can\'t exclude these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or any property triggered by the `getRankingInfo` parameter. Don\'t exclude properties that you might need in your search UI.
|
|
138
135
|
*/
|
|
139
136
|
responseFields?: string[];
|
|
140
137
|
/**
|
|
141
|
-
* Maximum number of facet
|
|
138
|
+
* Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
142
139
|
*/
|
|
143
140
|
maxFacetHits?: number;
|
|
144
141
|
/**
|
|
@@ -146,16 +143,16 @@ export type IndexSettingsAsSearchParams = {
|
|
|
146
143
|
*/
|
|
147
144
|
maxValuesPerFacet?: number;
|
|
148
145
|
/**
|
|
149
|
-
*
|
|
146
|
+
* Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
|
|
150
147
|
*/
|
|
151
148
|
sortFacetValuesBy?: string;
|
|
152
149
|
/**
|
|
153
|
-
*
|
|
150
|
+
* Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.
|
|
154
151
|
*/
|
|
155
152
|
attributeCriteriaComputedByMinProximity?: boolean;
|
|
156
153
|
renderingContent?: RenderingContent;
|
|
157
154
|
/**
|
|
158
|
-
*
|
|
155
|
+
* Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
|
|
159
156
|
*/
|
|
160
157
|
enableReRanking?: boolean;
|
|
161
158
|
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexSettingsAsSearchParams.d.ts","sourceRoot":"","sources":["../../model/indexSettingsAsSearchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,o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AAC,EAAE,OAAO,CAAC;IAEhC,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE5C;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAElD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,uCAAuC,CAAC,EAAE,OAAO,CAAC;IAElD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FallbackParams } from './fallbackParams';
|
|
2
|
+
import type { LookingSimilarModel } from './lookingSimilarModel';
|
|
3
|
+
export type LookingSimilar = {
|
|
4
|
+
model: LookingSimilarModel;
|
|
5
|
+
/**
|
|
6
|
+
* Unique record identifier.
|
|
7
|
+
*/
|
|
8
|
+
objectID: string;
|
|
9
|
+
fallbackParameters?: FallbackParams;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=lookingSimilar.d.ts.map
|