@algolia/client-search 5.0.0-alpha.73 → 5.0.0-alpha.76
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/index.d.ts +1 -0
- package/dist/model/index.d.ts.map +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/searchResponses.d.ts +2 -2
- package/dist/model/searchResponses.d.ts.map +1 -1
- package/dist/model/searchResult.d.ts +4 -0
- package/dist/model/searchResult.d.ts.map +1 -0
- 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/index.ts +1 -0
- 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/searchResponses.ts +2 -2
- package/model/searchResult.ts +8 -0
- 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
|
@@ -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
|
+
* Settings for the semantic search part of NeuralSearch. Only used when `mode` is _neuralSearch_.
|
|
5
5
|
*/
|
|
6
6
|
export type IndexSettingsAsSearchParamsSemanticSearch = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Indices from which to collect click and conversion events. If null, the current index and replica group will be used as the event source.
|
|
9
9
|
*/
|
|
10
10
|
eventSources?: string[] | null;
|
|
11
11
|
};
|
package/model/languages.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
|
+
* Clusters.
|
|
5
5
|
*/
|
|
6
6
|
export type ListClustersResponse = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Key-value pairs with cluster names as keys and lists of users with the highest number of records per cluster as values.
|
|
9
9
|
*/
|
|
10
10
|
topUsers: string[];
|
|
11
11
|
};
|
package/model/log.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { LogQuery } from './logQuery';
|
|
|
4
4
|
|
|
5
5
|
export type Log = {
|
|
6
6
|
/**
|
|
7
|
-
* Timestamp in ISO
|
|
7
|
+
* Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
8
8
|
*/
|
|
9
9
|
timestamp: string;
|
|
10
10
|
|
|
@@ -19,12 +19,12 @@ export type Log = {
|
|
|
19
19
|
answer_code: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Request body. Truncated after
|
|
22
|
+
* Request body. Truncated after 1,000 characters.
|
|
23
23
|
*/
|
|
24
24
|
query_body: string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Answer body. Truncated after
|
|
27
|
+
* Answer body. Truncated after 1,000 characters.
|
|
28
28
|
*/
|
|
29
29
|
answer: string;
|
|
30
30
|
|
|
@@ -34,12 +34,12 @@ export type Log = {
|
|
|
34
34
|
url: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* IP of the client
|
|
37
|
+
* IP address of the client that performed the request.
|
|
38
38
|
*/
|
|
39
39
|
ip: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Request
|
|
42
|
+
* Request headers (API key is obfuscated).
|
|
43
43
|
*/
|
|
44
44
|
query_headers: string;
|
|
45
45
|
|
|
@@ -54,7 +54,7 @@ export type Log = {
|
|
|
54
54
|
nb_api_calls: string;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Processing time for the query.
|
|
57
|
+
* Processing time for the query. Doesn\'t include network time.
|
|
58
58
|
*/
|
|
59
59
|
processing_time_ms: string;
|
|
60
60
|
|
|
@@ -74,7 +74,7 @@ export type Log = {
|
|
|
74
74
|
query_nb_hits?: string;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Performed queries for the given request.
|
|
78
78
|
*/
|
|
79
79
|
inner_queries?: LogQuery[];
|
|
80
80
|
};
|
package/model/logQuery.ts
CHANGED
package/model/mode.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
|
+
* Search mode the index will use to query for results.
|
|
5
5
|
*/
|
|
6
6
|
export type Mode = 'keywordSearch' | 'neuralSearch';
|
package/model/numericFilters.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Filter on numeric attributes.
|
|
6
|
+
* [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
|
|
7
7
|
*/
|
|
8
8
|
export type NumericFilters = MixedSearchFilters[] | string;
|
|
@@ -7,12 +7,12 @@ export type OperationIndexParams = {
|
|
|
7
7
|
operation: OperationType;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Algolia index name.
|
|
11
11
|
*/
|
|
12
12
|
destination: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* **This only applies to the _copy_ operation.** If you omit `scope`, the copy command copies all records, settings, synonyms, and rules. If you specify `scope`, only the specified scopes are copied.
|
|
16
16
|
*/
|
|
17
17
|
scope?: ScopeType[];
|
|
18
18
|
};
|
package/model/operationType.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
|
+
* Operation to perform (_move_ or _copy_).
|
|
5
5
|
*/
|
|
6
6
|
export type OperationType = 'copy' | 'move';
|
package/model/optionalFilters.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Create filters
|
|
6
|
+
* Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
|
|
7
7
|
*/
|
|
8
8
|
export type OptionalFilters = MixedSearchFilters[] | string;
|
package/model/params.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ConsequenceQuery } from './consequenceQuery';
|
|
|
5
5
|
import type { RenderingContent } from './renderingContent';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Additional search parameters.
|
|
8
|
+
* Additional search parameters.
|
|
9
9
|
*/
|
|
10
10
|
export type Params = {
|
|
11
11
|
query?: ConsequenceQuery;
|
package/model/promoteObjectID.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Record to promote.
|
|
5
5
|
*/
|
|
6
6
|
export type PromoteObjectID = {
|
|
7
7
|
/**
|
|
8
|
-
* Unique identifier of the
|
|
8
|
+
* Unique identifier of the record to promote.
|
|
9
9
|
*/
|
|
10
10
|
objectID: string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The position to promote the
|
|
13
|
+
* The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
|
|
14
14
|
*/
|
|
15
15
|
position: number;
|
|
16
16
|
};
|
|
@@ -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
|
+
* Records to promote.
|
|
5
5
|
*/
|
|
6
6
|
export type PromoteObjectIDs = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Unique identifiers of the records to promote.
|
|
9
9
|
*/
|
|
10
10
|
objectIDs: string[];
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The position to promote the
|
|
13
|
+
* The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
|
|
14
14
|
*/
|
|
15
15
|
position: number;
|
|
16
16
|
};
|
package/model/queryType.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 query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
|
|
5
5
|
*/
|
|
6
6
|
export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* When Dynamic Re-Ranking is enabled, only records that match these filters will be
|
|
6
|
+
* When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
|
|
7
7
|
*/
|
|
8
8
|
export type ReRankingApplyFilter = MixedSearchFilters[] | string;
|
|
@@ -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
|
+
* Redirect rule data.
|
|
5
5
|
*/
|
|
6
6
|
export type RedirectRuleIndexMetadataData = {
|
|
7
7
|
ruleObjectID: string;
|
package/model/removeStopWords.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
|
-
* Removes stop (common) words from the query before executing it.
|
|
4
|
+
* Removes stop (common) words from the query before executing it. `removeStopWords` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. 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 stop words feature, allowing stop words to be taken into account in a search.
|
|
5
5
|
*/
|
|
6
6
|
export type RemoveStopWords = string[] | boolean;
|
|
@@ -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
|
+
* Strategy to [remove words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/) from the query when it doesn\'t match any hits.
|
|
5
5
|
*/
|
|
6
6
|
export type RemoveWordsIfNoResults =
|
|
7
7
|
| 'allOptional'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { FacetOrdering } from './facetOrdering';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Extra content for the search UI, for example, to control the [ordering and display of facets](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/merchandising-facets/#merchandise-facets-and-their-values-in-the-manual-editor). You can set a default value and dynamically override it with [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).
|
|
7
7
|
*/
|
|
8
8
|
export type RenderingContent = {
|
|
9
9
|
facetOrdering?: FacetOrdering;
|
package/model/rule.ts
CHANGED
|
@@ -9,29 +9,29 @@ import type { TimeRange } from './timeRange';
|
|
|
9
9
|
*/
|
|
10
10
|
export type Rule = {
|
|
11
11
|
/**
|
|
12
|
-
* Unique identifier
|
|
12
|
+
* Unique identifier for a rule object.
|
|
13
13
|
*/
|
|
14
14
|
objectID: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
|
|
18
18
|
*/
|
|
19
19
|
conditions?: Condition[];
|
|
20
20
|
|
|
21
21
|
consequence?: Consequence;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
|
|
25
25
|
*/
|
|
26
26
|
description?: string;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
|
|
30
30
|
*/
|
|
31
31
|
enabled?: boolean;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* If you specify a validity period, the rule _only_ applies only during that period. If specified, the array must not be empty.
|
|
35
35
|
*/
|
|
36
36
|
validity?: TimeRange[];
|
|
37
37
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
export type SaveObjectResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* Date of creation (ISO-8601 format).
|
|
6
|
+
*/
|
|
4
7
|
createdAt: string;
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* 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`.
|
|
8
11
|
*/
|
|
9
12
|
taskID: number;
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
|
-
* Unique identifier
|
|
15
|
+
* Unique object identifier.
|
|
13
16
|
*/
|
|
14
17
|
objectID?: string;
|
|
15
18
|
};
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
export type SaveSynonymResponse = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 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`.
|
|
6
6
|
*/
|
|
7
7
|
taskID: number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
11
11
|
*/
|
|
12
12
|
updatedAt: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Unique identifier of a synonym object.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
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
|
+
* `searchDictionaryEntries` parameters.
|
|
5
5
|
*/
|
|
6
6
|
export type SearchDictionaryEntriesParams = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Text to search for in an index.
|
|
9
9
|
*/
|
|
10
10
|
query: string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
14
14
|
*/
|
|
15
15
|
page?: number;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Number of hits per page.
|
|
19
19
|
*/
|
|
20
20
|
hitsPerPage?: number;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
|
|
24
24
|
*/
|
|
25
25
|
language?: string;
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type SearchForFacetValuesRequest = {
|
|
4
4
|
/**
|
|
5
|
-
* Search parameters as URL-encoded query string.
|
|
5
|
+
* Search parameters as a URL-encoded query string.
|
|
6
6
|
*/
|
|
7
7
|
params?: string;
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ export type SearchForFacetValuesRequest = {
|
|
|
12
12
|
facetQuery?: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Maximum number of facet hits to return
|
|
15
|
+
* 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).
|
|
16
16
|
*/
|
|
17
17
|
maxFacetHits?: number;
|
|
18
18
|
};
|
|
@@ -4,12 +4,12 @@ import type { SearchTypeFacet } from './searchTypeFacet';
|
|
|
4
4
|
|
|
5
5
|
export type SearchForFacetsOptions = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Facet name.
|
|
8
8
|
*/
|
|
9
9
|
facet: string;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Algolia index name.
|
|
13
13
|
*/
|
|
14
14
|
indexName: string;
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ export type SearchForFacetsOptions = {
|
|
|
19
19
|
facetQuery?: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Maximum number of facet hits to return
|
|
22
|
+
* 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).
|
|
23
23
|
*/
|
|
24
24
|
maxFacetHits?: number;
|
|
25
25
|
|
package/model/searchResponses.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
|
-
import type {
|
|
3
|
+
import type { SearchResult } from './searchResult';
|
|
4
4
|
|
|
5
5
|
export type SearchResponses<T = Record<string, any>> = {
|
|
6
|
-
results: Array<
|
|
6
|
+
results: Array<SearchResult<T>>;
|
|
7
7
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { SearchForFacetValuesResponse } from './searchForFacetValuesResponse';
|
|
4
|
+
import type { SearchResponse } from './searchResponse';
|
|
5
|
+
|
|
6
|
+
export type SearchResult<T = Record<string, any>> =
|
|
7
|
+
| SearchForFacetValuesResponse
|
|
8
|
+
| SearchResponse<T>;
|
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
import type { Anchoring } from './anchoring';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Rules search parameters.
|
|
7
7
|
*/
|
|
8
8
|
export type SearchRulesParams = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Rule object query.
|
|
11
11
|
*/
|
|
12
12
|
query?: string;
|
|
13
13
|
|
|
14
14
|
anchoring?: Anchoring;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Restricts
|
|
17
|
+
* Restricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).
|
|
18
18
|
*/
|
|
19
19
|
context?: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Requested page (
|
|
22
|
+
* Requested page (the first page is page 0).
|
|
23
23
|
*/
|
|
24
24
|
page?: number;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Maximum number of hits
|
|
27
|
+
* Maximum number of hits per page.
|
|
28
28
|
*/
|
|
29
29
|
hitsPerPage?: number;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Restricts responses to enabled rules. When not specified (default), _all_ rules are retrieved.
|
|
33
33
|
*/
|
|
34
34
|
enabled?: boolean | null;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Request options to send with the API call.
|
|
38
38
|
*/
|
|
39
39
|
requestOptions?: Array<Record<string, any>>;
|
|
40
40
|
};
|
package/model/searchStrategy.ts
CHANGED
|
@@ -1,3 +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
|
+
/**
|
|
4
|
+
* - `none`: executes all queries. - `stopIfEnoughMatches`: executes queries one by one, stopping further query execution as soon as a query matches at least the `hitsPerPage` number of results.
|
|
5
|
+
*/
|
|
3
6
|
export type SearchStrategy = 'none' | 'stopIfEnoughMatches';
|