@algolia/client-search 5.0.0-alpha.73 → 5.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-search.cjs.js +188 -186
- package/dist/client-search.esm.browser.js +188 -184
- package/dist/client-search.esm.node.js +188 -184
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +1 -1
- package/dist/model/action.d.ts +1 -1
- package/dist/model/addApiKeyResponse.d.ts +2 -2
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +9 -9
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/assignUserIdParams.d.ts +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/model/baseIndexSettings.d.ts +14 -14
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/model/baseSearchResponse.d.ts +20 -20
- package/dist/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/model/batchAssignUserIdsParams.d.ts +2 -2
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchParams.d.ts +1 -1
- package/dist/model/batchRequest.d.ts +1 -1
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/batchWriteParams.d.ts +1 -1
- package/dist/model/builtInOperation.d.ts +1 -1
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +88 -84
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +4 -4
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +2 -2
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deleteSourceResponse.d.ts +1 -1
- package/dist/model/deletedAtResponse.d.ts +3 -3
- package/dist/model/dictionaryEntry.d.ts +6 -6
- package/dist/model/dictionaryEntryState.d.ts +1 -1
- package/dist/model/dictionaryLanguage.d.ts +2 -2
- package/dist/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +1 -1
- package/dist/model/facetHits.d.ts +3 -3
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +1 -1
- package/dist/model/facetsStats.d.ts +4 -4
- package/dist/model/fetchedIndex.d.ts +1 -1
- package/dist/model/getObjectsParams.d.ts +1 -1
- package/dist/model/getObjectsRequest.d.ts +4 -4
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/getTopUserIdsResponse.d.ts +2 -2
- package/dist/model/hasPendingMappingsResponse.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +1 -1
- package/dist/model/hit.d.ts +1 -1
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/indexSettings.d.ts +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/model/languages.d.ts +1 -1
- package/dist/model/listApiKeysResponse.d.ts +1 -1
- package/dist/model/listClustersResponse.d.ts +2 -2
- package/dist/model/listIndicesResponse.d.ts +1 -1
- package/dist/model/listUserIdsResponse.d.ts +2 -2
- package/dist/model/log.d.ts +7 -7
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/multipleBatchRequest.d.ts +1 -1
- package/dist/model/multipleBatchResponse.d.ts +2 -2
- package/dist/model/numericFilters.d.ts +1 -1
- package/dist/model/operationIndexParams.d.ts +2 -2
- package/dist/model/operationType.d.ts +1 -1
- package/dist/model/optionalFilters.d.ts +1 -1
- package/dist/model/params.d.ts +1 -1
- package/dist/model/promoteObjectID.d.ts +3 -3
- package/dist/model/promoteObjectIDs.d.ts +3 -3
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeUserIdResponse.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/replaceSourceResponse.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +5 -2
- package/dist/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/model/saveSynonymResponse.d.ts +3 -3
- package/dist/model/searchDictionaryEntriesParams.d.ts +5 -5
- package/dist/model/searchForFacetValuesRequest.d.ts +2 -2
- package/dist/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchParamsString.d.ts +1 -1
- package/dist/model/searchRulesParams.d.ts +7 -7
- package/dist/model/searchStrategy.d.ts +3 -0
- package/dist/model/searchStrategy.d.ts.map +1 -1
- package/dist/model/searchSynonymsParams.d.ts +1 -1
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchTypeDefault.d.ts +1 -1
- package/dist/model/searchTypeFacet.d.ts +1 -1
- package/dist/model/searchUserIdsParams.d.ts +4 -4
- package/dist/model/searchUserIdsResponse.d.ts +5 -5
- package/dist/model/snippetResultOption.d.ts +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/source.d.ts +3 -3
- package/dist/model/standardEntries.d.ts +4 -4
- package/dist/model/synonymHit.d.ts +6 -6
- package/dist/model/synonymType.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +3 -0
- package/dist/model/taskStatus.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +2 -2
- package/dist/model/updatedAtResponse.d.ts +3 -3
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +4 -4
- package/dist/model/updatedRuleResponse.d.ts +3 -3
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +2 -2
- package/dist/src/searchClient.d.ts +185 -184
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/acl.ts +1 -1
- package/model/action.ts +1 -1
- package/model/addApiKeyResponse.ts +2 -2
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +9 -9
- package/model/aroundRadius.ts +1 -1
- package/model/assignUserIdParams.ts +1 -1
- package/model/baseGetApiKeyResponse.ts +2 -2
- package/model/baseIndexSettings.ts +14 -14
- package/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/model/baseSearchResponse.ts +20 -20
- package/model/baseSearchResponseRedirect.ts +1 -1
- package/model/batchAssignUserIdsParams.ts +2 -2
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchParams.ts +1 -1
- package/model/batchRequest.ts +1 -1
- package/model/batchResponse.ts +2 -2
- package/model/batchWriteParams.ts +1 -1
- package/model/builtInOperation.ts +1 -1
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +88 -84
- package/model/consequence.ts +4 -4
- package/model/consequenceHide.ts +2 -2
- package/model/createdAtResponse.ts +2 -2
- package/model/cursor.ts +1 -1
- package/model/deleteApiKeyResponse.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deleteSourceResponse.ts +1 -1
- package/model/deletedAtResponse.ts +3 -3
- package/model/dictionaryEntry.ts +6 -6
- package/model/dictionaryEntryState.ts +1 -1
- package/model/dictionaryLanguage.ts +2 -2
- package/model/dictionarySettingsParams.ts +1 -1
- package/model/distinct.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetHits.ts +3 -3
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +1 -1
- package/model/facetsStats.ts +4 -4
- package/model/fetchedIndex.ts +1 -1
- package/model/getObjectsParams.ts +1 -1
- package/model/getObjectsRequest.ts +4 -4
- package/model/getObjectsResponse.ts +1 -1
- package/model/getTopUserIdsResponse.ts +2 -2
- package/model/hasPendingMappingsResponse.ts +2 -2
- package/model/highlightResultOption.ts +1 -1
- package/model/hit.ts +1 -1
- package/model/ignorePlurals.ts +1 -1
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -30
- package/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/model/languages.ts +1 -1
- package/model/listApiKeysResponse.ts +1 -1
- package/model/listClustersResponse.ts +2 -2
- package/model/listIndicesResponse.ts +1 -1
- package/model/listUserIdsResponse.ts +2 -2
- package/model/log.ts +7 -7
- package/model/logQuery.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/multipleBatchRequest.ts +1 -1
- package/model/multipleBatchResponse.ts +2 -2
- package/model/numericFilters.ts +1 -1
- package/model/operationIndexParams.ts +2 -2
- package/model/operationType.ts +1 -1
- package/model/optionalFilters.ts +1 -1
- package/model/params.ts +1 -1
- package/model/promoteObjectID.ts +3 -3
- package/model/promoteObjectIDs.ts +3 -3
- package/model/queryType.ts +1 -1
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/redirectRuleIndexMetadata.ts +1 -1
- package/model/redirectRuleIndexMetadataData.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeUserIdResponse.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/replaceSourceResponse.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +5 -2
- package/model/saveSynonymResponse.ts +3 -3
- package/model/searchDictionaryEntriesParams.ts +5 -5
- package/model/searchForFacetValuesRequest.ts +2 -2
- package/model/searchForFacetsOptions.ts +3 -3
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchParamsString.ts +1 -1
- package/model/searchRulesParams.ts +7 -7
- package/model/searchStrategy.ts +3 -0
- package/model/searchSynonymsParams.ts +1 -1
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchTypeDefault.ts +1 -1
- package/model/searchTypeFacet.ts +1 -1
- package/model/searchUserIdsParams.ts +4 -4
- package/model/searchUserIdsResponse.ts +5 -5
- package/model/snippetResultOption.ts +1 -1
- package/model/sortRemainingBy.ts +1 -1
- package/model/source.ts +3 -3
- package/model/standardEntries.ts +4 -4
- package/model/synonymHit.ts +6 -6
- package/model/synonymType.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +3 -0
- package/model/typoTolerance.ts +1 -1
- package/model/updateApiKeyResponse.ts +2 -2
- package/model/updatedAtResponse.ts +3 -3
- package/model/updatedAtWithObjectIdResponse.ts +4 -4
- package/model/updatedRuleResponse.ts +3 -3
- package/model/userHit.ts +1 -1
- package/model/userId.ts +2 -2
- package/package.json +8 -7
package/model/consequenceHide.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
|
-
* Unique identifier of the
|
|
4
|
+
* Unique identifier of the record to hide.
|
|
5
5
|
*/
|
|
6
6
|
export type ConsequenceHide = {
|
|
7
7
|
/**
|
|
8
|
-
* Unique identifier
|
|
8
|
+
* Unique object identifier.
|
|
9
9
|
*/
|
|
10
10
|
objectID: string;
|
|
11
11
|
};
|
|
@@ -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
|
+
* Response and creation timestamp.
|
|
5
5
|
*/
|
|
6
6
|
export type CreatedAtResponse = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Timestamp of creation in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
9
9
|
*/
|
|
10
10
|
createdAt: string;
|
|
11
11
|
};
|
package/model/cursor.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type Cursor = {
|
|
4
4
|
/**
|
|
5
|
-
* Cursor indicating the location to resume browsing from. Must match the value returned by the previous call.
|
|
5
|
+
* Cursor indicating the location to resume browsing from. Must match the value returned by the previous call. Pass this value to the subsequent browse call to get the next page of results. When the end of the index has been reached, `cursor` is absent from the response.
|
|
6
6
|
*/
|
|
7
7
|
cursor?: string;
|
|
8
8
|
};
|
package/model/deleteByParams.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type DeleteByParams = {
|
|
|
9
9
|
facetFilters?: FacetFilters;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Filter the query with numeric, facet
|
|
12
|
+
* [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
|
|
13
13
|
*/
|
|
14
14
|
filters?: string;
|
|
15
15
|
|
|
@@ -18,19 +18,19 @@ export type DeleteByParams = {
|
|
|
18
18
|
tagFilters?: TagFilters;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Search for entries around a central geolocation, enabling a
|
|
21
|
+
* Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
|
|
22
22
|
*/
|
|
23
23
|
aroundLatLng?: string;
|
|
24
24
|
|
|
25
25
|
aroundRadius?: AroundRadius;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Search inside a rectangular area (in
|
|
28
|
+
* Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
|
|
29
29
|
*/
|
|
30
30
|
insideBoundingBox?: number[];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* Search inside a polygon (in
|
|
33
|
+
* Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
|
|
34
34
|
*/
|
|
35
35
|
insidePolygon?: number[];
|
|
36
36
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Response, taskID, and deletion timestamp.
|
|
5
5
|
*/
|
|
6
6
|
export type DeletedAtResponse = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
|
|
9
9
|
*/
|
|
10
10
|
taskID: number;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
14
14
|
*/
|
|
15
15
|
deletedAt: string;
|
|
16
16
|
};
|
package/model/dictionaryEntry.ts
CHANGED
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
import type { DictionaryEntryState } from './dictionaryEntryState';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Dictionary entry.
|
|
7
7
|
*/
|
|
8
8
|
export type DictionaryEntry = Record<string, any> & {
|
|
9
9
|
/**
|
|
10
|
-
* Unique identifier
|
|
10
|
+
* Unique identifier for a dictionary object.
|
|
11
11
|
*/
|
|
12
12
|
objectID: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
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
16
|
*/
|
|
17
17
|
language: string;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Dictionary entry word. Usage depends on the type of dictionary entry. **`stopwordEntry`** The stop word you want to add or update. If the entry already exists in Algolia\'s standard dictionary, you can override its behavior by adding it to the custom dictionary and setting its `state` to `disabled`. **`compoundEntry`** When `decomposition` is empty: adds `word` as a compound atom. For example, atom “kino” decomposes the query “kopfkino” into \"kopf\" and \"kino\". When `decomposition` isn\'t empty: creates a decomposition exception. For example, when decomposition is set to the [\"hund\", \"hutte\"] exception, \"hundehutte\" decomposes into “hund” and “hutte”, discarding the linking \"e\".
|
|
21
21
|
*/
|
|
22
22
|
word?: string;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Compound dictionary [word declensions](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/). If the entry already exists in Algolia\'s standard dictionary, you can override its behavior by adding it to the custom dictionary and setting its `state` to `disabled`.
|
|
26
26
|
*/
|
|
27
27
|
words?: string[];
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* For compound entries, governs the behavior of the `word` parameter.
|
|
31
31
|
*/
|
|
32
32
|
decomposition?: string[];
|
|
33
33
|
|
|
@@ -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
|
+
* Indicates whether a dictionary entry is active (`enabled`) or inactive (`disabled`).
|
|
5
5
|
*/
|
|
6
6
|
export type DictionaryEntryState = 'disabled' | 'enabled';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type DictionaryLanguage = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* If `0`, the dictionary hasn\'t been customized and only contains standard entries provided by Algolia. If `null`, that feature isn\'t available or isn\'t supported for that language.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
nbCustomEntries?: number;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { StandardEntries } from './standardEntries';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Enable or turn off the built-in Algolia stop words for a specific language.
|
|
7
7
|
*/
|
|
8
8
|
export type DictionarySettingsParams = {
|
|
9
9
|
disableStandardEntries: StandardEntries;
|
package/model/distinct.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Enables
|
|
4
|
+
* Enables [deduplication or grouping of results (Algolia\'s _distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature)).
|
|
5
5
|
*/
|
|
6
6
|
export type Distinct = boolean | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the query contains only one word.
|
|
5
5
|
*/
|
|
6
6
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
package/model/facetFilters.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Filter hits by facet value.
|
|
6
|
+
* [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
|
|
7
7
|
*/
|
|
8
8
|
export type FacetFilters = MixedSearchFilters[] | string;
|
package/model/facetHits.ts
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
export type FacetHits = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Facet value.
|
|
6
6
|
*/
|
|
7
7
|
value: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Markup text with
|
|
10
|
+
* Markup text with `facetQuery` matches highlighted.
|
|
11
11
|
*/
|
|
12
12
|
highlighted: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Number of records containing this facet value. This takes into account the extra search parameters specified in the query. Like for a regular search query, the [counts may not be exhaustive](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
|
};
|
package/model/facetOrdering.ts
CHANGED
|
@@ -4,13 +4,13 @@ import type { Facets } from './facets';
|
|
|
4
4
|
import type { Value } from './value';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Defines the ordering of facets (widgets).
|
|
8
8
|
*/
|
|
9
9
|
export type FacetOrdering = {
|
|
10
10
|
facets?: Facets;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Ordering of facet values within an individual facet.
|
|
14
14
|
*/
|
|
15
15
|
values?: Record<string, Value>;
|
|
16
16
|
};
|
package/model/facets.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Ordering of facets (widgets).
|
|
5
5
|
*/
|
|
6
6
|
export type Facets = {
|
|
7
7
|
/**
|
package/model/facetsStats.ts
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
export type FacetsStats = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Minimum value in the results.
|
|
6
6
|
*/
|
|
7
7
|
min?: number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Maximum value in the results.
|
|
11
11
|
*/
|
|
12
12
|
max?: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Average facet value in the results.
|
|
16
16
|
*/
|
|
17
17
|
avg?: number;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sum of all values in the results.
|
|
21
21
|
*/
|
|
22
22
|
sum?: number;
|
|
23
23
|
};
|
package/model/fetchedIndex.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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
|
+
* Record retrieval operation.
|
|
5
5
|
*/
|
|
6
6
|
export type GetObjectsRequest = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Attributes to retrieve. If not specified, all retrievable attributes are returned.
|
|
9
9
|
*/
|
|
10
10
|
attributesToRetrieve?: string[];
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Record\'s objectID.
|
|
14
14
|
*/
|
|
15
15
|
objectID: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Name of the index containing the
|
|
18
|
+
* Name of the index containing the required records.
|
|
19
19
|
*/
|
|
20
20
|
indexName: string;
|
|
21
21
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import type { UserId } from './userId';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* User IDs and clusters.
|
|
7
7
|
*/
|
|
8
8
|
export type GetTopUserIdsResponse = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Key-value pairs with cluster names as keys and lists of users with the highest number of records per cluster as values.
|
|
11
11
|
*/
|
|
12
12
|
topUsers: Array<Record<string, UserId[]>>;
|
|
13
13
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
export type HasPendingMappingsResponse = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Indicates whether there are clusters undergoing migration, creation, or deletion.
|
|
6
6
|
*/
|
|
7
7
|
pending: boolean;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Cluster pending mapping state: migrating, creating, deleting.
|
|
11
11
|
*/
|
|
12
12
|
clusters?: Record<string, string[]>;
|
|
13
13
|
};
|
package/model/hit.ts
CHANGED
package/model/ignorePlurals.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Treats singular, plurals, and other forms of declensions as matching terms.
|
|
4
|
+
* Treats singular, plurals, and other forms of declensions as matching terms. `ignorePlurals` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the ignore plurals feature, where singulars and plurals are considered equivalent (\"foot\" = \"feet\"). The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the ignore plurals feature, so that singulars and plurals aren\'t considered to be the same (\"foot\" will not find \"feet\").
|
|
5
5
|
*/
|
|
6
6
|
export type IgnorePlurals = string[] | boolean;
|
package/model/indexSettings.ts
CHANGED
|
@@ -4,6 +4,6 @@ import type { BaseIndexSettings } from './baseIndexSettings';
|
|
|
4
4
|
import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Algolia index settings.
|
|
8
8
|
*/
|
|
9
9
|
export type IndexSettings = BaseIndexSettings & IndexSettingsAsSearchParams;
|
|
@@ -15,52 +15,52 @@ import type { TypoTolerance } from './typoTolerance';
|
|
|
15
15
|
|
|
16
16
|
export type IndexSettingsAsSearchParams = {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
|
|
19
19
|
*/
|
|
20
20
|
attributesForFaceting?: string[];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
|
|
24
24
|
*/
|
|
25
25
|
attributesToRetrieve?: string[];
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Restricts a
|
|
28
|
+
* Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
|
|
29
29
|
*/
|
|
30
30
|
restrictSearchableAttributes?: string[];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
|
|
34
34
|
*/
|
|
35
35
|
ranking?: string[];
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Specifies the
|
|
38
|
+
* Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Use the `asc` and `desc` modifiers to specify the ranking order: ascending or descending.
|
|
39
39
|
*/
|
|
40
40
|
customRanking?: string[];
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Relevancy threshold below which less relevant results aren\'t included in the results.
|
|
44
44
|
*/
|
|
45
45
|
relevancyStrictness?: number;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
|
|
49
49
|
*/
|
|
50
50
|
attributesToHighlight?: string[];
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Attributes to _snippet_. \'Snippeting\' is shortening the attribute to a certain number of words. If not specified, the attribute is shortened to the 10 words around the matching string but you can specify the number. For example: `body:20`.
|
|
54
54
|
*/
|
|
55
55
|
attributesToSnippet?: string[];
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* HTML string to insert before the highlighted parts in all highlight and snippet results.
|
|
59
59
|
*/
|
|
60
60
|
highlightPreTag?: string;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* HTML string to insert after the highlighted parts in all highlight and snippet results.
|
|
64
64
|
*/
|
|
65
65
|
highlightPostTag?: string;
|
|
66
66
|
|
|
@@ -75,17 +75,17 @@ export type IndexSettingsAsSearchParams = {
|
|
|
75
75
|
restrictHighlightAndSnippetArrays?: boolean;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Number of hits per page.
|
|
79
79
|
*/
|
|
80
80
|
hitsPerPage?: number;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Minimum number of characters a word in the query string must contain to accept matches with
|
|
83
|
+
* Minimum number of characters a word in the query string must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
84
84
|
*/
|
|
85
85
|
minWordSizefor1Typo?: number;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Minimum number of characters a word in the query string must contain to accept matches with
|
|
88
|
+
* Minimum number of characters a word in the query string must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
89
89
|
*/
|
|
90
90
|
minWordSizefor2Typos?: number;
|
|
91
91
|
|
|
@@ -97,7 +97,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
97
97
|
allowTyposOnNumericTokens?: boolean;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
|
|
101
101
|
*/
|
|
102
102
|
disableTypoToleranceOnAttributes?: string[];
|
|
103
103
|
|
|
@@ -106,27 +106,27 @@ export type IndexSettingsAsSearchParams = {
|
|
|
106
106
|
removeStopWords?: RemoveStopWords;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Characters that the engine shouldn\'t automatically [normalize](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
|
|
110
110
|
*/
|
|
111
111
|
keepDiacriticsOnCharacters?: string;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Sets
|
|
114
|
+
* Sets your user\'s search language. This adjusts language-specific settings and features such as `ignorePlurals`, `removeStopWords`, and [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) word detection.
|
|
115
115
|
*/
|
|
116
116
|
queryLanguages?: string[];
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* Splits compound words into their
|
|
119
|
+
* [Splits compound words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words) into their component word parts in the query.
|
|
120
120
|
*/
|
|
121
121
|
decompoundQuery?: boolean;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
|
|
125
125
|
*/
|
|
126
126
|
enableRules?: boolean;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
|
|
130
130
|
*/
|
|
131
131
|
enablePersonalization?: boolean;
|
|
132
132
|
|
|
@@ -139,41 +139,41 @@ export type IndexSettingsAsSearchParams = {
|
|
|
139
139
|
semanticSearch?: IndexSettingsAsSearchParamsSemanticSearch;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* Enables the advanced query syntax.
|
|
142
|
+
* Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
|
|
143
143
|
*/
|
|
144
144
|
advancedSyntax?: boolean;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Words which should be considered [optional](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words) when found in a query.
|
|
148
148
|
*/
|
|
149
149
|
optionalWords?: string[];
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* 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).
|
|
153
153
|
*/
|
|
154
154
|
disableExactOnAttributes?: string[];
|
|
155
155
|
|
|
156
156
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Alternatives that should be considered an exact match by [the exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
|
|
160
160
|
*/
|
|
161
161
|
alternativesAsExact?: AlternativesAsExact[];
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* Allows you to specify which advanced syntax features are active when
|
|
164
|
+
* Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
|
|
165
165
|
*/
|
|
166
166
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Enriches the API
|
|
169
|
+
* Enriches the API\'s response with information about how the query was processed.
|
|
170
170
|
*/
|
|
171
171
|
explain?: string[];
|
|
172
172
|
|
|
173
173
|
distinct?: Distinct;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* Name of the
|
|
176
|
+
* Name of the deduplication attribute to be used with Algolia\'s [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
|
|
177
177
|
*/
|
|
178
178
|
attributeForDistinct?: string;
|
|
179
179
|
|
|
@@ -188,22 +188,22 @@ export type IndexSettingsAsSearchParams = {
|
|
|
188
188
|
replaceSynonymsInHighlight?: boolean;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Precision of the proximity ranking criterion.
|
|
191
|
+
* Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
|
|
192
192
|
*/
|
|
193
193
|
minProximity?: number;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* Attributes to include in the API response for search and browse queries.
|
|
197
197
|
*/
|
|
198
198
|
responseFields?: string[];
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
|
-
* Maximum number of facet hits to return
|
|
201
|
+
* Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
202
202
|
*/
|
|
203
203
|
maxFacetHits?: number;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
|
-
* When
|
|
206
|
+
* When the [Attribute criterion is ranked above Proximity](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute-and-proximity-combinations) in your ranking formula, Proximity is used to select which searchable attribute is matched in the Attribute ranking stage.
|
|
207
207
|
*/
|
|
208
208
|
attributeCriteriaComputedByMinProximity?: boolean;
|
|
209
209
|
|