algoliasearch 5.0.0-alpha.106 → 5.0.0-alpha.108
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/algoliasearch/builds/browser.d.ts +2 -2
- package/dist/algoliasearch/builds/node.d.ts +2 -2
- package/dist/algoliasearch.cjs +191 -191
- package/dist/algoliasearch.esm.browser.js +191 -191
- package/dist/algoliasearch.esm.node.js +191 -191
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/client-abtesting/model/aBTestResponse.d.ts +1 -1
- package/dist/client-abtesting/model/clientMethodProps.d.ts +2 -2
- package/dist/client-abtesting/src/abtestingClient.d.ts +3 -3
- package/dist/client-analytics/model/clientMethodProps.d.ts +65 -65
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +1 -1
- package/dist/client-analytics/model/topSearch.d.ts +1 -1
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts +66 -66
- package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
- package/dist/client-search/model/acl.d.ts +1 -1
- package/dist/client-search/model/action.d.ts +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/anchoring.d.ts +1 -1
- package/dist/client-search/model/apiKey.d.ts +8 -8
- package/dist/client-search/model/aroundPrecision.d.ts +1 -1
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/client-search/model/aroundRadius.d.ts +1 -1
- package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
- package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
- package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
- package/dist/client-search/model/baseIndexSettings.d.ts +22 -17
- package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchResponse.d.ts +6 -6
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/client-search/model/batchResponse.d.ts +2 -2
- package/dist/client-search/model/builtInOperation.d.ts +2 -2
- package/dist/client-search/model/builtInOperationType.d.ts +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +63 -63
- package/dist/client-search/model/condition.d.ts +7 -3
- package/dist/client-search/model/condition.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts +5 -5
- package/dist/client-search/model/consequenceHide.d.ts +2 -2
- package/dist/client-search/model/consequenceQuery.d.ts +1 -1
- package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
- package/dist/client-search/model/createdAtResponse.d.ts +1 -1
- package/dist/client-search/model/cursor.d.ts +1 -1
- package/dist/client-search/model/deleteByParams.d.ts +4 -4
- package/dist/client-search/model/deletedAtResponse.d.ts +1 -1
- package/dist/client-search/model/dictionaryEntry.d.ts +6 -8
- package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
- package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
- package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/client-search/model/distinct.d.ts +1 -1
- package/dist/client-search/model/edit.d.ts +1 -1
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/client-search/model/facetFilters.d.ts +1 -1
- package/dist/client-search/model/facetHits.d.ts +2 -2
- package/dist/client-search/model/facetOrdering.d.ts +2 -2
- package/dist/client-search/model/facets.d.ts +2 -2
- package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
- package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
- package/dist/client-search/model/highlightResultOption.d.ts +3 -3
- package/dist/client-search/model/hit.d.ts +4 -4
- package/dist/client-search/model/ignorePlurals.d.ts +3 -2
- package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
- package/dist/client-search/model/index.d.ts +2 -0
- package/dist/client-search/model/index.d.ts.map +1 -1
- package/dist/client-search/model/indexSettings.d.ts +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/client-search/model/log.d.ts +11 -11
- package/dist/client-search/model/logQuery.d.ts +1 -1
- package/dist/client-search/model/matchLevel.d.ts +1 -1
- package/dist/client-search/model/mode.d.ts +1 -1
- package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
- package/dist/client-search/model/numericFilters.d.ts +1 -1
- package/dist/client-search/model/operationIndexParams.d.ts +2 -2
- package/dist/client-search/model/operationType.d.ts +1 -1
- package/dist/client-search/model/optionalFilters.d.ts +1 -1
- package/dist/client-search/model/params.d.ts +1 -1
- package/dist/client-search/model/promoteObjectID.d.ts +2 -2
- package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
- package/dist/client-search/model/queryType.d.ts +1 -1
- package/dist/client-search/model/rankingInfo.d.ts +10 -7
- package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
- package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/client-search/model/removeStopWords.d.ts +3 -2
- package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/client-search/model/renderingContent.d.ts +1 -1
- package/dist/client-search/model/rule.d.ts +5 -5
- package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
- package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -7
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
- package/dist/client-search/model/searchHits.d.ts +4 -1
- package/dist/client-search/model/searchHits.d.ts.map +1 -1
- package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
- package/dist/client-search/model/searchRulesParams.d.ts +4 -8
- package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
- package/dist/client-search/model/searchStrategy.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
- package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
- package/dist/client-search/model/searchUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/client-search/model/semanticSearch.d.ts +2 -2
- package/dist/client-search/model/snippetResultOption.d.ts +2 -2
- package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
- package/dist/client-search/model/supportedLanguage.d.ts +5 -0
- package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
- package/dist/client-search/model/tagFilters.d.ts +1 -1
- package/dist/client-search/model/taskStatus.d.ts +1 -1
- package/dist/client-search/model/timeRange.d.ts +2 -2
- package/dist/client-search/model/typoTolerance.d.ts +1 -1
- package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
- package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +2 -2
- package/dist/client-search/model/updatedRuleResponse.d.ts +2 -2
- package/dist/client-search/model/userHit.d.ts +1 -1
- package/dist/client-search/model/userId.d.ts +1 -1
- package/dist/client-search/model/value.d.ts +1 -1
- package/dist/client-search/src/searchClient.d.ts +124 -123
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs +3 -3
- package/dist/lite/lite.esm.browser.js +3 -3
- package/dist/lite/lite.esm.node.js +3 -3
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/acl.d.ts +1 -1
- package/dist/lite/model/action.d.ts +1 -1
- package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
- package/dist/lite/model/anchoring.d.ts +1 -1
- package/dist/lite/model/apiKey.d.ts +8 -8
- package/dist/lite/model/aroundPrecision.d.ts +1 -1
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/lite/model/aroundRadius.d.ts +1 -1
- package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
- package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
- package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
- package/dist/lite/model/baseIndexSettings.d.ts +22 -17
- package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/lite/model/baseSearchResponse.d.ts +6 -6
- package/dist/lite/model/builtInOperation.d.ts +2 -2
- package/dist/lite/model/builtInOperationType.d.ts +1 -1
- package/dist/lite/model/condition.d.ts +7 -3
- package/dist/lite/model/condition.d.ts.map +1 -1
- package/dist/lite/model/consequence.d.ts +5 -5
- package/dist/lite/model/consequenceHide.d.ts +2 -2
- package/dist/lite/model/consequenceQuery.d.ts +1 -1
- package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
- package/dist/lite/model/cursor.d.ts +1 -1
- package/dist/lite/model/deleteByParams.d.ts +4 -4
- package/dist/lite/model/dictionaryEntry.d.ts +6 -8
- package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
- package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
- package/dist/lite/model/distinct.d.ts +1 -1
- package/dist/lite/model/edit.d.ts +1 -1
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/lite/model/facetFilters.d.ts +1 -1
- package/dist/lite/model/facetHits.d.ts +2 -2
- package/dist/lite/model/facetOrdering.d.ts +2 -2
- package/dist/lite/model/facets.d.ts +2 -2
- package/dist/lite/model/highlightResultOption.d.ts +3 -3
- package/dist/lite/model/hit.d.ts +4 -4
- package/dist/lite/model/ignorePlurals.d.ts +3 -2
- package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
- package/dist/lite/model/index.d.ts +2 -0
- package/dist/lite/model/index.d.ts.map +1 -1
- package/dist/lite/model/indexSettings.d.ts +1 -1
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/lite/model/matchLevel.d.ts +1 -1
- package/dist/lite/model/mode.d.ts +1 -1
- package/dist/lite/model/numericFilters.d.ts +1 -1
- package/dist/lite/model/operationType.d.ts +1 -1
- package/dist/lite/model/optionalFilters.d.ts +1 -1
- package/dist/lite/model/params.d.ts +1 -1
- package/dist/lite/model/promoteObjectID.d.ts +2 -2
- package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
- package/dist/lite/model/queryType.d.ts +1 -1
- package/dist/lite/model/rankingInfo.d.ts +10 -7
- package/dist/lite/model/rankingInfo.d.ts.map +1 -1
- package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/lite/model/removeStopWords.d.ts +3 -2
- package/dist/lite/model/removeStopWords.d.ts.map +1 -1
- package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/lite/model/renderingContent.d.ts +1 -1
- package/dist/lite/model/rule.d.ts +5 -5
- package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
- package/dist/lite/model/searchHits.d.ts +4 -1
- package/dist/lite/model/searchHits.d.ts.map +1 -1
- package/dist/lite/model/searchParamsQuery.d.ts +1 -1
- package/dist/lite/model/searchStrategy.d.ts +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/lite/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/lite/model/semanticSearch.d.ts +2 -2
- package/dist/lite/model/snippetResultOption.d.ts +2 -2
- package/dist/lite/model/sortRemainingBy.d.ts +1 -1
- package/dist/lite/model/supportedLanguage.d.ts +5 -0
- package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
- package/dist/lite/model/tagFilters.d.ts +1 -1
- package/dist/lite/model/taskStatus.d.ts +1 -1
- package/dist/lite/model/timeRange.d.ts +2 -2
- package/dist/lite/model/typoTolerance.d.ts +1 -1
- package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
- package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +2 -2
- package/dist/lite/model/userId.d.ts +1 -1
- package/dist/lite/model/value.d.ts +1 -1
- package/dist/lite/src/liteClient.d.ts +3 -3
- package/dist/lite/src/liteClient.d.ts.map +1 -1
- package/lite/model/acl.ts +1 -1
- package/lite/model/action.ts +1 -1
- package/lite/model/addApiKeyResponse.ts +1 -1
- package/lite/model/anchoring.ts +1 -1
- package/lite/model/apiKey.ts +8 -8
- package/lite/model/aroundPrecision.ts +1 -1
- package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
- package/lite/model/aroundRadius.ts +1 -1
- package/lite/model/aroundRadiusAll.ts +3 -0
- package/lite/model/automaticFacetFilter.ts +4 -4
- package/lite/model/automaticFacetFilters.ts +1 -1
- package/lite/model/baseIndexSettings.ts +24 -17
- package/lite/model/baseSearchParamsWithoutQuery.ts +24 -29
- package/lite/model/baseSearchResponse.ts +6 -6
- package/lite/model/builtInOperation.ts +2 -2
- package/lite/model/builtInOperationType.ts +1 -1
- package/lite/model/condition.ts +8 -3
- package/lite/model/consequence.ts +5 -5
- package/lite/model/consequenceHide.ts +2 -2
- package/lite/model/consequenceQuery.ts +1 -1
- package/lite/model/consequenceQueryObject.ts +2 -2
- package/lite/model/cursor.ts +1 -1
- package/lite/model/deleteByParams.ts +4 -4
- package/lite/model/dictionaryEntry.ts +6 -8
- package/lite/model/dictionaryEntryState.ts +1 -1
- package/lite/model/dictionaryLanguage.ts +2 -2
- package/lite/model/distinct.ts +1 -1
- package/lite/model/edit.ts +1 -1
- package/lite/model/exactOnSingleWordQuery.ts +1 -1
- package/lite/model/facetFilters.ts +1 -1
- package/lite/model/facetHits.ts +2 -2
- package/lite/model/facetOrdering.ts +2 -2
- package/lite/model/facets.ts +2 -2
- package/lite/model/highlightResultOption.ts +3 -3
- package/lite/model/hit.ts +4 -4
- package/lite/model/ignorePlurals.ts +4 -2
- package/lite/model/index.ts +2 -0
- package/lite/model/indexSettings.ts +1 -1
- package/lite/model/indexSettingsAsSearchParams.ts +32 -36
- package/lite/model/matchLevel.ts +1 -1
- package/lite/model/mode.ts +1 -1
- package/lite/model/numericFilters.ts +1 -1
- package/lite/model/operationType.ts +1 -1
- package/lite/model/optionalFilters.ts +1 -1
- package/lite/model/params.ts +1 -1
- package/lite/model/promoteObjectID.ts +2 -2
- package/lite/model/promoteObjectIDs.ts +2 -2
- package/lite/model/queryType.ts +1 -1
- package/lite/model/rankingInfo.ts +10 -7
- package/lite/model/reRankingApplyFilter.ts +1 -1
- package/lite/model/removeStopWords.ts +4 -2
- package/lite/model/removeWordsIfNoResults.ts +1 -1
- package/lite/model/renderingContent.ts +1 -1
- package/lite/model/rule.ts +5 -5
- package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
- package/lite/model/searchForFacetValuesResponse.ts +3 -0
- package/lite/model/searchForFacetsOptions.ts +2 -2
- package/lite/model/searchForHitsOptions.ts +1 -1
- package/lite/model/searchHits.ts +4 -1
- package/lite/model/searchParamsQuery.ts +1 -1
- package/lite/model/searchStrategy.ts +1 -1
- package/lite/model/searchSynonymsResponse.ts +2 -2
- package/lite/model/securedAPIKeyRestrictions.ts +5 -5
- package/lite/model/semanticSearch.ts +2 -2
- package/lite/model/snippetResultOption.ts +2 -2
- package/lite/model/sortRemainingBy.ts +1 -1
- package/lite/model/supportedLanguage.ts +74 -0
- package/lite/model/tagFilters.ts +1 -1
- package/lite/model/taskStatus.ts +1 -1
- package/lite/model/timeRange.ts +2 -2
- package/lite/model/typoTolerance.ts +1 -1
- package/lite/model/typoToleranceEnum.ts +3 -0
- package/lite/model/updatedRuleResponse.ts +2 -2
- package/lite/model/userId.ts +1 -1
- package/lite/model/value.ts +1 -1
- package/lite/src/liteClient.ts +3 -3
- package/package.json +11 -11
|
@@ -9,12 +9,12 @@ import type { TagFilters } from './tagFilters';
|
|
|
9
9
|
|
|
10
10
|
export type BaseSearchParamsWithoutQuery = {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
|
|
13
13
|
*/
|
|
14
14
|
similarQuery?: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* [
|
|
17
|
+
* Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
18
18
|
*/
|
|
19
19
|
filters?: string;
|
|
20
20
|
|
|
@@ -27,47 +27,47 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
27
27
|
tagFilters?: TagFilters;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
|
|
31
31
|
*/
|
|
32
32
|
sumOrFiltersScores?: boolean;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Restricts a
|
|
35
|
+
* Restricts a search to a subset of your searchable attributes.
|
|
36
36
|
*/
|
|
37
37
|
restrictSearchableAttributes?: string[];
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
|
|
41
41
|
*/
|
|
42
42
|
facets?: string[];
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
|
|
46
46
|
*/
|
|
47
47
|
facetingAfterDistinct?: boolean;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Page
|
|
50
|
+
* Page of search results to retrieve.
|
|
51
51
|
*/
|
|
52
52
|
page?: number;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Position of the first hit to retrieve.
|
|
56
56
|
*/
|
|
57
57
|
offset?: number;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Number of hits to retrieve (used in combination with `offset`).
|
|
61
61
|
*/
|
|
62
62
|
length?: number;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
|
|
66
66
|
*/
|
|
67
67
|
aroundLatLng?: string;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Whether to obtain the coordinates from the request\'s IP address.
|
|
71
71
|
*/
|
|
72
72
|
aroundLatLngViaIP?: boolean;
|
|
73
73
|
|
|
@@ -76,62 +76,57 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
76
76
|
aroundPrecision?: AroundPrecision;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Minimum radius (in meters)
|
|
79
|
+
* Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
|
|
80
80
|
*/
|
|
81
81
|
minimumAroundRadius?: number;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
|
|
85
85
|
*/
|
|
86
86
|
insideBoundingBox?: number[][];
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
|
|
90
90
|
*/
|
|
91
91
|
insidePolygon?: number[][];
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
|
|
95
95
|
*/
|
|
96
96
|
naturalLanguages?: string[];
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Assigns
|
|
99
|
+
* Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
|
|
100
100
|
*/
|
|
101
101
|
ruleContexts?: string[];
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
|
|
105
105
|
*/
|
|
106
106
|
personalizationImpact?: number;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
110
110
|
*/
|
|
111
111
|
userToken?: string;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Whether the search response should include detailed ranking information.
|
|
115
115
|
*/
|
|
116
116
|
getRankingInfo?: boolean;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
explain?: string[];
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Whether to take into account an index\'s synonyms for a particular search.
|
|
119
|
+
* Whether to take into account an index\'s synonyms for this search.
|
|
125
120
|
*/
|
|
126
121
|
synonyms?: boolean;
|
|
127
122
|
|
|
128
123
|
/**
|
|
129
|
-
*
|
|
124
|
+
* Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).
|
|
130
125
|
*/
|
|
131
126
|
clickAnalytics?: boolean;
|
|
132
127
|
|
|
133
128
|
/**
|
|
134
|
-
*
|
|
129
|
+
* Whether this search will be included in Analytics.
|
|
135
130
|
*/
|
|
136
131
|
analytics?: boolean;
|
|
137
132
|
|
|
@@ -141,12 +136,12 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
141
136
|
analyticsTags?: string[];
|
|
142
137
|
|
|
143
138
|
/**
|
|
144
|
-
* Whether to include
|
|
139
|
+
* Whether to include this search when calculating processing-time percentiles.
|
|
145
140
|
*/
|
|
146
141
|
percentileComputation?: boolean;
|
|
147
142
|
|
|
148
143
|
/**
|
|
149
|
-
*
|
|
144
|
+
* Whether to enable A/B testing for this search.
|
|
150
145
|
*/
|
|
151
146
|
enableABTest?: boolean;
|
|
152
147
|
};
|
|
@@ -22,7 +22,7 @@ export type BaseSearchResponse = Record<string, any> & {
|
|
|
22
22
|
aroundLatLng?: string;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Distance from a central coordinate provided by `aroundLatLng`.
|
|
26
26
|
*/
|
|
27
27
|
automaticRadius?: string;
|
|
28
28
|
|
|
@@ -44,7 +44,7 @@ export type BaseSearchResponse = Record<string, any> & {
|
|
|
44
44
|
exhaustiveTypo?: boolean;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Facet counts.
|
|
48
48
|
*/
|
|
49
49
|
facets?: Record<string, Record<string, number>>;
|
|
50
50
|
|
|
@@ -74,12 +74,12 @@ export type BaseSearchResponse = Record<string, any> & {
|
|
|
74
74
|
message?: string;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Number of hits
|
|
77
|
+
* Number of results (hits).
|
|
78
78
|
*/
|
|
79
79
|
nbHits: number;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* Number of pages of results
|
|
82
|
+
* Number of pages of results.
|
|
83
83
|
*/
|
|
84
84
|
nbPages: number;
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ export type BaseSearchResponse = Record<string, any> & {
|
|
|
89
89
|
nbSortedHits?: number;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* Page
|
|
92
|
+
* Page of search results to retrieve.
|
|
93
93
|
*/
|
|
94
94
|
page: number;
|
|
95
95
|
|
|
@@ -128,7 +128,7 @@ export type BaseSearchResponse = Record<string, any> & {
|
|
|
128
128
|
serverUsed?: string;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* An object with custom data. You can store up to 32 kB as custom data.
|
|
132
132
|
*/
|
|
133
133
|
userData?: any | null;
|
|
134
134
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import type { BuiltInOperationType } from './builtInOperationType';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Update to perform on the attribute.
|
|
7
7
|
*/
|
|
8
8
|
export type BuiltInOperation = {
|
|
9
9
|
_operation: BuiltInOperationType;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
|
|
12
|
+
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
|
|
13
13
|
*/
|
|
14
14
|
value: string;
|
|
15
15
|
};
|
|
@@ -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
|
+
* How to change the attribute.
|
|
5
5
|
*/
|
|
6
6
|
export type BuiltInOperationType =
|
|
7
7
|
| 'Add'
|
package/lite/model/condition.ts
CHANGED
|
@@ -4,19 +4,24 @@ import type { Anchoring } from './anchoring';
|
|
|
4
4
|
|
|
5
5
|
export type Condition = {
|
|
6
6
|
/**
|
|
7
|
-
* Query pattern
|
|
7
|
+
* Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
|
|
8
8
|
*/
|
|
9
9
|
pattern?: string;
|
|
10
10
|
|
|
11
11
|
anchoring?: Anchoring;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Whether the pattern
|
|
14
|
+
* Whether the pattern should match plurals, synonyms, and typos.
|
|
15
15
|
*/
|
|
16
16
|
alternatives?: boolean;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
|
|
20
20
|
*/
|
|
21
21
|
context?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
|
|
25
|
+
*/
|
|
26
|
+
filters?: string;
|
|
22
27
|
};
|
|
@@ -5,28 +5,28 @@ import type { ConsequenceParams } from './consequenceParams';
|
|
|
5
5
|
import type { Promote } from './promote';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences)
|
|
8
|
+
* Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
|
|
9
9
|
*/
|
|
10
10
|
export type Consequence = {
|
|
11
11
|
params?: ConsequenceParams;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Records to promote.
|
|
14
|
+
* Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
|
|
15
15
|
*/
|
|
16
16
|
promote?: Promote[];
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
|
|
20
20
|
*/
|
|
21
21
|
filterPromotes?: boolean;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Records
|
|
24
|
+
* Records you want to hide from the search results.
|
|
25
25
|
*/
|
|
26
26
|
hide?: ConsequenceHide[];
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1 kB of minified JSON.
|
|
30
30
|
*/
|
|
31
31
|
userData?: any | null;
|
|
32
32
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
* Object ID of the record to hide.
|
|
5
5
|
*/
|
|
6
6
|
export type ConsequenceHide = {
|
|
7
7
|
/**
|
|
8
|
-
* Unique
|
|
8
|
+
* Unique record identifier.
|
|
9
9
|
*/
|
|
10
10
|
objectID: string;
|
|
11
11
|
};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { ConsequenceQueryObject } from './consequenceQueryObject';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Replace or edit the search query. If `consequenceQuery` is a string, the entire search query is replaced with that string. If `consequenceQuery` is an object, it describes incremental edits made to the query.
|
|
7
7
|
*/
|
|
8
8
|
export type ConsequenceQuery = ConsequenceQueryObject | string;
|
|
@@ -4,12 +4,12 @@ import type { Edit } from './edit';
|
|
|
4
4
|
|
|
5
5
|
export type ConsequenceQueryObject = {
|
|
6
6
|
/**
|
|
7
|
-
* Words to remove.
|
|
7
|
+
* Words to remove from the search query.
|
|
8
8
|
*/
|
|
9
9
|
remove?: string[];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Changes to make to the search query.
|
|
13
13
|
*/
|
|
14
14
|
edits?: Edit[];
|
|
15
15
|
};
|
package/lite/model/cursor.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type Cursor = {
|
|
4
4
|
/**
|
|
5
|
-
* Cursor
|
|
5
|
+
* Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute.
|
|
6
6
|
*/
|
|
7
7
|
cursor?: string;
|
|
8
8
|
};
|
|
@@ -9,7 +9,7 @@ export type DeleteByParams = {
|
|
|
9
9
|
facetFilters?: FacetFilters;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* [
|
|
12
|
+
* Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
13
13
|
*/
|
|
14
14
|
filters?: string;
|
|
15
15
|
|
|
@@ -18,19 +18,19 @@ export type DeleteByParams = {
|
|
|
18
18
|
tagFilters?: TagFilters;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
|
|
22
22
|
*/
|
|
23
23
|
aroundLatLng?: string;
|
|
24
24
|
|
|
25
25
|
aroundRadius?: AroundRadius;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
|
|
29
29
|
*/
|
|
30
30
|
insideBoundingBox?: number[][];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
|
|
34
34
|
*/
|
|
35
35
|
insidePolygon?: number[][];
|
|
36
36
|
};
|
|
@@ -1,33 +1,31 @@
|
|
|
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 { DictionaryEntryState } from './dictionaryEntryState';
|
|
4
|
+
import type { SupportedLanguage } from './supportedLanguage';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Dictionary entry.
|
|
7
8
|
*/
|
|
8
9
|
export type DictionaryEntry = Record<string, any> & {
|
|
9
10
|
/**
|
|
10
|
-
* Unique identifier for
|
|
11
|
+
* Unique identifier for the dictionary entry.
|
|
11
12
|
*/
|
|
12
13
|
objectID: string;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
* [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
|
|
16
|
-
*/
|
|
17
|
-
language: string;
|
|
15
|
+
language: SupportedLanguage;
|
|
18
16
|
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
18
|
+
* Matching dictionary word for `stopwords` and `compounds` dictionaries.
|
|
21
19
|
*/
|
|
22
20
|
word?: string;
|
|
23
21
|
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
23
|
+
* Matching words in the `plurals` dictionary including declensions.
|
|
26
24
|
*/
|
|
27
25
|
words?: string[];
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
28
|
+
* Invividual components of a compound word in the `compounds` dictionary.
|
|
31
29
|
*/
|
|
32
30
|
decomposition?: string[];
|
|
33
31
|
|
|
@@ -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
|
+
* Whether a dictionary entry is active.
|
|
5
5
|
*/
|
|
6
6
|
export type DictionaryEntryState = 'disabled' | 'enabled';
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
* Dictionary type. If `null`, this dictionary type isn\'t supported for the language.
|
|
5
5
|
*/
|
|
6
6
|
export type DictionaryLanguage = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of custom dictionary entries.
|
|
9
9
|
*/
|
|
10
10
|
nbCustomEntries?: number;
|
|
11
11
|
};
|
package/lite/model/distinct.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 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.
|
|
5
5
|
*/
|
|
6
6
|
export type Distinct = boolean | number;
|
package/lite/model/edit.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
|
-
* 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
|
|
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 search query has only one word. <dl> <dt><code>attribute</code></dt> <dd> 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\". </dd> <dt><code>none</code></dt> <dd> The Exact ranking criterion is ignored on single-word searches. </dd> <dt><code>word</code></dt> <dd> 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. </dd> </dl> If `exactOnSingleWordQuery` is `word`, only exact matches will be highlighted, partial and prefix matches won\'t.
|
|
5
5
|
*/
|
|
6
6
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* 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`.
|
|
7
7
|
*/
|
|
8
8
|
export type FacetFilters = MixedSearchFilters[] | string;
|
package/lite/model/facetHits.ts
CHANGED
|
@@ -7,12 +7,12 @@ export type FacetHits = {
|
|
|
7
7
|
value: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Highlighted attribute value, including HTML tags.
|
|
11
11
|
*/
|
|
12
12
|
highlighted: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Number of records
|
|
15
|
+
* Number of records with this facet value. [The count may be approximated](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
|
|
16
16
|
*/
|
|
17
17
|
count: number;
|
|
18
18
|
};
|
|
@@ -4,13 +4,13 @@ import type { Facets } from './facets';
|
|
|
4
4
|
import type { Value } from './value';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Order of facet names and facet values in your UI.
|
|
8
8
|
*/
|
|
9
9
|
export type FacetOrdering = {
|
|
10
10
|
facets?: Facets;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Order of facet values. One object for each facet.
|
|
14
14
|
*/
|
|
15
15
|
values?: Record<string, Value>;
|
|
16
16
|
};
|
package/lite/model/facets.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
* Order of facet names.
|
|
5
5
|
*/
|
|
6
6
|
export type Facets = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
|
9
9
|
*/
|
|
10
10
|
order?: string[];
|
|
11
11
|
};
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import type { MatchLevel } from './matchLevel';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Surround words that match the query with HTML tags for highlighting.
|
|
7
7
|
*/
|
|
8
8
|
export type HighlightResultOption = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Highlighted attribute value, including HTML tags.
|
|
11
11
|
*/
|
|
12
12
|
value: string;
|
|
13
13
|
|
|
14
14
|
matchLevel: MatchLevel;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* List of words from the query
|
|
17
|
+
* List of matched words from the search query.
|
|
18
18
|
*/
|
|
19
19
|
matchedWords: string[];
|
|
20
20
|
|
package/lite/model/hit.ts
CHANGED
|
@@ -5,21 +5,21 @@ import type { RankingInfo } from './rankingInfo';
|
|
|
5
5
|
import type { SnippetResult } from './snippetResult';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* A
|
|
8
|
+
* Search result. A hit is a record from your index, augmented with special attributes for highlighting, snippeting, and ranking.
|
|
9
9
|
*/
|
|
10
10
|
export type Hit<T = Record<string, any>> = T & {
|
|
11
11
|
/**
|
|
12
|
-
* Unique
|
|
12
|
+
* Unique record identifier.
|
|
13
13
|
*/
|
|
14
14
|
objectID: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Surround words that match the query with HTML tags for highlighting.
|
|
18
18
|
*/
|
|
19
19
|
_highlightResult?: Record<string, HighlightResult>;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Snippets that show the context around a matching search query.
|
|
23
23
|
*/
|
|
24
24
|
_snippetResult?: Record<string, SnippetResult>;
|
|
25
25
|
|
|
@@ -1,6 +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
|
+
import type { SupportedLanguage } from './supportedLanguage';
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
|
|
5
7
|
*/
|
|
6
|
-
export type IgnorePlurals =
|
|
8
|
+
export type IgnorePlurals = SupportedLanguage[] | boolean;
|