@coveo/platform-client 55.13.2 → 56.0.0
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/cjs/APICore.js +17 -4
- package/dist/cjs/APICore.js.map +1 -1
- package/dist/cjs/handlers/request/RequestHandlers.js +2 -1
- package/dist/cjs/handlers/request/RequestHandlers.js.map +1 -1
- package/dist/cjs/handlers/response/ResponseHandlers.js +14 -8
- package/dist/cjs/handlers/response/ResponseHandlers.js.map +1 -1
- package/dist/cjs/resources/Activities/Activities.js +4 -5
- package/dist/cjs/resources/Activities/Activities.js.map +1 -1
- package/dist/cjs/resources/AnalyticsAdmin/Properties/Properties.js +7 -6
- package/dist/cjs/resources/AnalyticsAdmin/Properties/Properties.js.map +1 -1
- package/dist/cjs/resources/ApiKeys/ApiKeys.js.map +1 -1
- package/dist/cjs/resources/Catalogs/Catalog.js +2 -1
- package/dist/cjs/resources/Catalogs/Catalog.js.map +1 -1
- package/dist/cjs/resources/Catalogs/ProductListing.js +10 -0
- package/dist/cjs/resources/Catalogs/ProductListing.js.map +1 -1
- package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js +16 -0
- package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js.map +1 -1
- package/dist/cjs/resources/Enums.js.map +1 -1
- package/dist/cjs/resources/Extensions/Extensions.js +4 -2
- package/dist/cjs/resources/Extensions/Extensions.js.map +1 -1
- package/dist/cjs/resources/Fields/Fields.js +1 -0
- package/dist/cjs/resources/Fields/Fields.js.map +1 -1
- package/dist/cjs/resources/InProductExperiences/InProductExperiences.js +1 -0
- package/dist/cjs/resources/InProductExperiences/InProductExperiences.js.map +1 -1
- package/dist/cjs/resources/InProductExperiences/InProductExperiencesInterfaces.js +0 -2
- package/dist/cjs/resources/InProductExperiences/InProductExperiencesInterfaces.js.map +1 -1
- package/dist/cjs/resources/Indexes/Documents/Documents.js +5 -8
- package/dist/cjs/resources/Indexes/Documents/Documents.js.map +1 -1
- package/dist/cjs/resources/License/LicenseInterfaces.js.map +1 -1
- package/dist/cjs/resources/Limits/Limits.js +0 -1
- package/dist/cjs/resources/Limits/Limits.js.map +1 -1
- package/dist/cjs/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js +4 -0
- package/dist/cjs/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js.map +1 -1
- package/dist/cjs/resources/Organizations/Members/Members.js +3 -5
- package/dist/cjs/resources/Organizations/Members/Members.js.map +1 -1
- package/dist/cjs/resources/Organizations/Organization.js +2 -0
- package/dist/cjs/resources/Organizations/Organization.js.map +1 -1
- package/dist/cjs/resources/Organizations/OrganizationInterfaces.js.map +1 -1
- package/dist/cjs/resources/Pipelines/Conditions/Condition.js +6 -12
- package/dist/cjs/resources/Pipelines/Conditions/Condition.js.map +1 -1
- package/dist/cjs/resources/Pipelines/ResultRankings/ResultRankings.js +0 -1
- package/dist/cjs/resources/Pipelines/ResultRankings/ResultRankings.js.map +1 -1
- package/dist/cjs/resources/Pipelines/StatementGroups/StatementGroupsInterfaces.js.map +1 -1
- package/dist/cjs/resources/Pipelines/Statements/Statements.js +34 -44
- package/dist/cjs/resources/Pipelines/Statements/Statements.js.map +1 -1
- package/dist/cjs/resources/PrivilegeEvaluator/PrivilegeEvaluator.js +1 -2
- package/dist/cjs/resources/PrivilegeEvaluator/PrivilegeEvaluator.js.map +1 -1
- package/dist/cjs/resources/Products/Product.js +2 -0
- package/dist/cjs/resources/Products/Product.js.map +1 -1
- package/dist/cjs/resources/Projects/Project.js +19 -27
- package/dist/cjs/resources/Projects/Project.js.map +1 -1
- package/dist/cjs/resources/Projects/ProjectInterfaces.js +0 -2
- package/dist/cjs/resources/Projects/ProjectInterfaces.js.map +1 -1
- package/dist/cjs/resources/Resource.js +1 -1
- package/dist/cjs/resources/Resource.js.map +1 -1
- package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js +10 -11
- package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
- package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
- package/dist/cjs/resources/Resources/Resources.js +2 -3
- package/dist/cjs/resources/Resources/Resources.js.map +1 -1
- package/dist/cjs/resources/SchemaService/SchemaService.js +15 -21
- package/dist/cjs/resources/SchemaService/SchemaService.js.map +1 -1
- package/dist/cjs/resources/Search/Search.js +12 -1
- package/dist/cjs/resources/Search/Search.js.map +1 -1
- package/dist/cjs/resources/SearchAnalysis/SearchAnalysis.js +0 -1
- package/dist/cjs/resources/SearchAnalysis/SearchAnalysis.js.map +1 -1
- package/dist/cjs/resources/Sources/Sources.js +1 -0
- package/dist/cjs/resources/Sources/Sources.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Administration/Administration.js +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Administration/Administration.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/DataHealth.js +8 -2
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/DataHealth.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/DataShare/DataShare.js +2 -0
- package/dist/cjs/resources/UsageAnalytics/Read/DataShare/DataShare.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Dimensions/Dimensions.js +8 -8
- package/dist/cjs/resources/UsageAnalytics/Read/Dimensions/Dimensions.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Exports/Exports.js +3 -13
- package/dist/cjs/resources/UsageAnalytics/Read/Exports/Exports.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Filters/Filters.js +7 -9
- package/dist/cjs/resources/UsageAnalytics/Read/Filters/Filters.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/ReadServiceResource.js +0 -1
- package/dist/cjs/resources/UsageAnalytics/Read/ReadServiceResource.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Reports/Reports.js +8 -9
- package/dist/cjs/resources/UsageAnalytics/Read/Reports/Reports.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Snowflake/Snowflake.js +0 -7
- package/dist/cjs/resources/UsageAnalytics/Read/Snowflake/Snowflake.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Statistics/Statistics.js +10 -1
- package/dist/cjs/resources/UsageAnalytics/Read/Statistics/Statistics.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/Read/UAUsers/UAUsers.js +4 -5
- package/dist/cjs/resources/UsageAnalytics/Read/UAUsers/UAUsers.js.map +1 -1
- package/dist/cjs/resources/Vaults/Vaults.js +6 -10
- package/dist/cjs/resources/Vaults/Vaults.js.map +1 -1
- package/dist/cjs/utils/createFetcher.js +0 -1
- package/dist/cjs/utils/createFetcher.js.map +1 -1
- package/dist/cjs/utils/normalizePaginatedOptions.js +3 -0
- package/dist/cjs/utils/normalizePaginatedOptions.js.map +1 -1
- package/dist/cjs/utils/stringifyNestedObjects.js.map +1 -1
- package/dist/esm/APICore.js +17 -4
- package/dist/esm/APICore.js.map +1 -1
- package/dist/esm/handlers/request/RequestHandlers.js +2 -1
- package/dist/esm/handlers/request/RequestHandlers.js.map +1 -1
- package/dist/esm/handlers/response/ResponseHandlers.js +14 -8
- package/dist/esm/handlers/response/ResponseHandlers.js.map +1 -1
- package/dist/esm/resources/Activities/Activities.js +4 -5
- package/dist/esm/resources/Activities/Activities.js.map +1 -1
- package/dist/esm/resources/AnalyticsAdmin/Properties/Properties.js +7 -6
- package/dist/esm/resources/AnalyticsAdmin/Properties/Properties.js.map +1 -1
- package/dist/esm/resources/ApiKeys/ApiKeys.js.map +1 -1
- package/dist/esm/resources/Catalogs/Catalog.js +2 -1
- package/dist/esm/resources/Catalogs/Catalog.js.map +1 -1
- package/dist/esm/resources/Catalogs/ProductListing.js +10 -0
- package/dist/esm/resources/Catalogs/ProductListing.js.map +1 -1
- package/dist/esm/resources/Catalogs/ProductListingConfiguration.js +16 -0
- package/dist/esm/resources/Catalogs/ProductListingConfiguration.js.map +1 -1
- package/dist/esm/resources/Enums.js.map +1 -1
- package/dist/esm/resources/Extensions/Extensions.js +4 -2
- package/dist/esm/resources/Extensions/Extensions.js.map +1 -1
- package/dist/esm/resources/Fields/Fields.js +1 -0
- package/dist/esm/resources/Fields/Fields.js.map +1 -1
- package/dist/esm/resources/InProductExperiences/InProductExperiences.js +1 -0
- package/dist/esm/resources/InProductExperiences/InProductExperiences.js.map +1 -1
- package/dist/esm/resources/InProductExperiences/InProductExperiencesInterfaces.js +0 -2
- package/dist/esm/resources/InProductExperiences/InProductExperiencesInterfaces.js.map +1 -1
- package/dist/esm/resources/Indexes/Documents/Documents.js +5 -8
- package/dist/esm/resources/Indexes/Documents/Documents.js.map +1 -1
- package/dist/esm/resources/License/LicenseInterfaces.js.map +1 -1
- package/dist/esm/resources/Limits/Limits.js +0 -1
- package/dist/esm/resources/Limits/Limits.js.map +1 -1
- package/dist/esm/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js +4 -0
- package/dist/esm/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js.map +1 -1
- package/dist/esm/resources/Organizations/Members/Members.js +3 -5
- package/dist/esm/resources/Organizations/Members/Members.js.map +1 -1
- package/dist/esm/resources/Organizations/Organization.js +2 -0
- package/dist/esm/resources/Organizations/Organization.js.map +1 -1
- package/dist/esm/resources/Organizations/OrganizationInterfaces.js.map +1 -1
- package/dist/esm/resources/Pipelines/Conditions/Condition.js +6 -12
- package/dist/esm/resources/Pipelines/Conditions/Condition.js.map +1 -1
- package/dist/esm/resources/Pipelines/ResultRankings/ResultRankings.js +0 -1
- package/dist/esm/resources/Pipelines/ResultRankings/ResultRankings.js.map +1 -1
- package/dist/esm/resources/Pipelines/StatementGroups/StatementGroupsInterfaces.js.map +1 -1
- package/dist/esm/resources/Pipelines/Statements/Statements.js +34 -44
- package/dist/esm/resources/Pipelines/Statements/Statements.js.map +1 -1
- package/dist/esm/resources/PrivilegeEvaluator/PrivilegeEvaluator.js +1 -2
- package/dist/esm/resources/PrivilegeEvaluator/PrivilegeEvaluator.js.map +1 -1
- package/dist/esm/resources/Products/Product.js +2 -0
- package/dist/esm/resources/Products/Product.js.map +1 -1
- package/dist/esm/resources/Projects/Project.js +19 -27
- package/dist/esm/resources/Projects/Project.js.map +1 -1
- package/dist/esm/resources/Projects/ProjectInterfaces.js +0 -2
- package/dist/esm/resources/Projects/ProjectInterfaces.js.map +1 -1
- package/dist/esm/resources/Resource.js +1 -1
- package/dist/esm/resources/Resource.js.map +1 -1
- package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js +10 -11
- package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
- package/dist/esm/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
- package/dist/esm/resources/Resources/Resources.js +2 -3
- package/dist/esm/resources/Resources/Resources.js.map +1 -1
- package/dist/esm/resources/SchemaService/SchemaService.js +15 -21
- package/dist/esm/resources/SchemaService/SchemaService.js.map +1 -1
- package/dist/esm/resources/Search/Search.js +12 -1
- package/dist/esm/resources/Search/Search.js.map +1 -1
- package/dist/esm/resources/SearchAnalysis/SearchAnalysis.js +0 -1
- package/dist/esm/resources/SearchAnalysis/SearchAnalysis.js.map +1 -1
- package/dist/esm/resources/Sources/Sources.js +1 -0
- package/dist/esm/resources/Sources/Sources.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Administration/Administration.js +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Administration/Administration.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/DataHealth.js +8 -2
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/DataHealth.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/DataShare/DataShare.js +2 -0
- package/dist/esm/resources/UsageAnalytics/Read/DataShare/DataShare.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Dimensions/Dimensions.js +8 -8
- package/dist/esm/resources/UsageAnalytics/Read/Dimensions/Dimensions.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Exports/Exports.js +3 -13
- package/dist/esm/resources/UsageAnalytics/Read/Exports/Exports.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Filters/Filters.js +7 -9
- package/dist/esm/resources/UsageAnalytics/Read/Filters/Filters.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/ReadServiceResource.js +0 -1
- package/dist/esm/resources/UsageAnalytics/Read/ReadServiceResource.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Reports/Reports.js +8 -9
- package/dist/esm/resources/UsageAnalytics/Read/Reports/Reports.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Snowflake/Snowflake.js +0 -7
- package/dist/esm/resources/UsageAnalytics/Read/Snowflake/Snowflake.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/Statistics/Statistics.js +10 -1
- package/dist/esm/resources/UsageAnalytics/Read/Statistics/Statistics.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/UAUsers/UAUsers.js +4 -5
- package/dist/esm/resources/UsageAnalytics/Read/UAUsers/UAUsers.js.map +1 -1
- package/dist/esm/resources/Vaults/Vaults.js +6 -10
- package/dist/esm/resources/Vaults/Vaults.js.map +1 -1
- package/dist/esm/utils/createFetcher.js +0 -1
- package/dist/esm/utils/createFetcher.js.map +1 -1
- package/dist/esm/utils/normalizePaginatedOptions.js +3 -0
- package/dist/esm/utils/normalizePaginatedOptions.js.map +1 -1
- package/dist/esm/utils/stringifyNestedObjects.js.map +1 -1
- package/dist/types/APICore.d.ts +3 -3
- package/dist/types/handlers/request/RequestHandlerInterfaces.d.ts +0 -1
- package/dist/types/handlers/response/ResponseHandlers.d.ts +8 -2
- package/dist/types/resources/Activities/Activities.d.ts +2 -3
- package/dist/types/resources/AnalyticsAdmin/Properties/Properties.d.ts +8 -7
- package/dist/types/resources/CaseAssistConfigs/CaseAssistConfigInterfaces.d.ts +1 -2
- package/dist/types/resources/Catalogs/Catalog.d.ts +2 -0
- package/dist/types/resources/Catalogs/ProductListing.d.ts +10 -0
- package/dist/types/resources/Catalogs/ProductListingConfiguration.d.ts +16 -0
- package/dist/types/resources/CrawlingModule/CrawlingModuleInterfaces.d.ts +0 -4
- package/dist/types/resources/Extensions/Extensions.d.ts +4 -2
- package/dist/types/resources/Extensions/ExtensionsInterfaces.d.ts +0 -2
- package/dist/types/resources/Fields/Fields.d.ts +1 -0
- package/dist/types/resources/HostedInterfacesCore/HostedInterfaceVersionsCore.d.ts +0 -5
- package/dist/types/resources/IPXInterfaces/IPXInterface.model.d.ts +4 -8
- package/dist/types/resources/InProductExperiences/InProductExperiences.d.ts +1 -0
- package/dist/types/resources/InProductExperiences/InProductExperiencesInterfaces.d.ts +0 -1
- package/dist/types/resources/Indexes/Documents/Documents.d.ts +5 -8
- package/dist/types/resources/InsightPanelConfigs/InsightPanelConfigInterfaces.d.ts +0 -5
- package/dist/types/resources/InsightPanelInterfaces/InsightPanelInterface.model.d.ts +7 -14
- package/dist/types/resources/InternalBaseInterface.d.ts +0 -1
- package/dist/types/resources/Limits/Limits.d.ts +0 -1
- package/dist/types/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.d.ts +4 -0
- package/dist/types/resources/MachineLearning/DocumentInterfaces.d.ts +0 -1
- package/dist/types/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.d.ts +0 -1
- package/dist/types/resources/MachineLearning/ModelListing/ModelListingInterfaces.d.ts +1 -14
- package/dist/types/resources/MachineLearning/PQSConfiguration/PQSConfigurationInterfaces.d.ts +0 -1
- package/dist/types/resources/MachineLearning/RGAConfiguration/RelevanceGenerativeAnsweringConfigurationInterface.d.ts +0 -2
- package/dist/types/resources/MachineLearning/SemanticEncoderConfiguration/SemanticEncoderConfigurationInterfaces.d.ts +0 -2
- package/dist/types/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfigurationInterfaces.d.ts +0 -2
- package/dist/types/resources/Organizations/Members/Members.d.ts +3 -5
- package/dist/types/resources/Organizations/Organization.d.ts +3 -1
- package/dist/types/resources/Organizations/OrganizationInterfaces.d.ts +1 -7
- package/dist/types/resources/Pipelines/Conditions/Condition.d.ts +6 -12
- package/dist/types/resources/Pipelines/Conditions/ConditionInterfaces.d.ts +0 -2
- package/dist/types/resources/Pipelines/MLAssociations/MLAssociationsInterfaces.d.ts +1 -2
- package/dist/types/resources/Pipelines/PipelinesInterfaces.d.ts +0 -15
- package/dist/types/resources/Pipelines/ResultRankings/ResultRankings.d.ts +0 -1
- package/dist/types/resources/Pipelines/ResultRankings/ResultRankingsInterfaces.d.ts +0 -1
- package/dist/types/resources/Pipelines/StatementGroups/StatementGroupsInterfaces.d.ts +2 -12
- package/dist/types/resources/Pipelines/Statements/Statements.d.ts +34 -44
- package/dist/types/resources/PrivilegeEvaluator/PrivilegeEvaluator.d.ts +1 -2
- package/dist/types/resources/Products/Product.d.ts +2 -0
- package/dist/types/resources/Projects/Project.d.ts +19 -27
- package/dist/types/resources/Projects/ProjectInterfaces.d.ts +0 -9
- package/dist/types/resources/Resource.d.ts +1 -1
- package/dist/types/resources/ResourceSnapshots/ResourceSnapshots.d.ts +10 -11
- package/dist/types/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.d.ts +0 -5
- package/dist/types/resources/Resources/Resources.d.ts +2 -3
- package/dist/types/resources/SchemaService/SchemaService.d.ts +16 -24
- package/dist/types/resources/SchemaService/SchemaServiceInterfaces.d.ts +1 -2
- package/dist/types/resources/Search/Search.d.ts +11 -1
- package/dist/types/resources/Search/SearchInterfaces.d.ts +2 -196
- package/dist/types/resources/SearchAnalysis/SearchAnalysis.d.ts +0 -1
- package/dist/types/resources/SearchPages/SearchPagesInterfaces.d.ts +2 -4
- package/dist/types/resources/SearchUsageMetrics/SearchHubs/SearchHubsInterface.d.ts +0 -3
- package/dist/types/resources/Sources/Sources.d.ts +1 -0
- package/dist/types/resources/UsageAnalytics/Read/Administration/Administration.d.ts +1 -1
- package/dist/types/resources/UsageAnalytics/Read/DataHealth/DataHealth.d.ts +9 -3
- package/dist/types/resources/UsageAnalytics/Read/DataShare/DataShare.d.ts +2 -0
- package/dist/types/resources/UsageAnalytics/Read/Dimensions/Dimensions.d.ts +8 -8
- package/dist/types/resources/UsageAnalytics/Read/Dimensions/DimensionsInterfaces.d.ts +0 -1
- package/dist/types/resources/UsageAnalytics/Read/Exports/Exports.d.ts +3 -13
- package/dist/types/resources/UsageAnalytics/Read/Filters/Filters.d.ts +7 -9
- package/dist/types/resources/UsageAnalytics/Read/ReadServiceResource.d.ts +1 -2
- package/dist/types/resources/UsageAnalytics/Read/Reports/Reports.d.ts +8 -9
- package/dist/types/resources/UsageAnalytics/Read/Reports/ReportsInterfaces.d.ts +1 -2
- package/dist/types/resources/UsageAnalytics/Read/Snowflake/Snowflake.d.ts +0 -7
- package/dist/types/resources/UsageAnalytics/Read/Snowflake/SnowflakeInterfaces.d.ts +1 -2
- package/dist/types/resources/UsageAnalytics/Read/Statistics/Statistics.d.ts +10 -1
- package/dist/types/resources/UsageAnalytics/Read/Statistics/StatisticsInterfaces.d.ts +2 -4
- package/dist/types/resources/UsageAnalytics/Read/UAUsers/UAUsers.d.ts +4 -5
- package/dist/types/resources/Users/UserInterfaces.d.ts +1 -1
- package/dist/types/resources/Vaults/Vaults.d.ts +6 -10
- package/dist/types/utils/createFetcher.d.ts +0 -1
- package/dist/types/utils/stringifyNestedObjects.d.ts +1 -1
- package/package.json +10 -12
|
@@ -21,7 +21,6 @@ interface SharedSearchParams {
|
|
|
21
21
|
* - For reporting purposes, when logging a **Search** usage analytics event for a query, the `queryPipeline` field of that event should be set to the `pipeline` value of the query (or to the `"default"` string, if no `pipeline` value was specified in the query).
|
|
22
22
|
*
|
|
23
23
|
* See also [Managing Query Pipelines](https://docs.coveo.com/en/1450/).
|
|
24
|
-
*
|
|
25
24
|
* @example `CustomerQueryPipeline`
|
|
26
25
|
*/
|
|
27
26
|
pipeline?: string;
|
|
@@ -35,7 +34,6 @@ interface SharedSearchParams {
|
|
|
35
34
|
* - When logging a **Search** usage analytics event for a query, the `originLevel1` field of that event should be set to the value of the `searchHub` search request parameter.
|
|
36
35
|
*
|
|
37
36
|
* See also the `tab` parameter.
|
|
38
|
-
*
|
|
39
37
|
* @example `CustomerPortal`
|
|
40
38
|
*/
|
|
41
39
|
searchHub?: string;
|
|
@@ -45,7 +43,6 @@ interface SharedSearchParams {
|
|
|
45
43
|
* If not specified, the default time zone of the server hosting the index is used.
|
|
46
44
|
*
|
|
47
45
|
* **Note:** While no Coveo Machine Learning model uses this information, it can nevertheless affect the ranking scores (and thus, potentially the order) of result items, as ranking expressions may be based on time constants.
|
|
48
|
-
*
|
|
49
46
|
* @example `America/New_York`
|
|
50
47
|
*/
|
|
51
48
|
timezone?: string;
|
|
@@ -55,7 +52,6 @@ interface SharedSearchParams {
|
|
|
55
52
|
* **Notes:**
|
|
56
53
|
* - Debug information can only appear in responses in the JSON format (see the `format` parameter).
|
|
57
54
|
* - Avoid setting this parameter to `true` in production, as it has a negative impact on query performance.
|
|
58
|
-
*
|
|
59
55
|
* @default `false`
|
|
60
56
|
*/
|
|
61
57
|
debug?: boolean;
|
|
@@ -65,7 +61,6 @@ interface SharedSearchParams {
|
|
|
65
61
|
* If you do not specify an `index` (or `indexToken`) value, any index mirror could be used.
|
|
66
62
|
*
|
|
67
63
|
* **Note:** Passing an `index` (or `indexToken`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
|
|
68
|
-
*
|
|
69
64
|
* @example `myorg-nvoqun-Indexer1-pbi2nbuw`
|
|
70
65
|
*/
|
|
71
66
|
index?: string;
|
|
@@ -79,7 +74,6 @@ export interface SharedFieldsParams extends SharedSearchParams {
|
|
|
79
74
|
* **Note:** When logging a **Search** usage analytics event for a query, the `originLevel2` field of that event should be set to the `tab` value of the query (or to the `"default"` string, if no `tab` value was specified in the query).
|
|
80
75
|
*
|
|
81
76
|
* See also the `searchHub` parameter.
|
|
82
|
-
*
|
|
83
77
|
* @example `ForumTab`
|
|
84
78
|
*/
|
|
85
79
|
tab?: string;
|
|
@@ -91,7 +85,6 @@ export interface SharedFieldsParams extends SharedSearchParams {
|
|
|
91
85
|
* **Note:** When logging a **Search** usage analytics event for a query, the `originLevel3` field of that event should be set to the `referrer` value of the query, if specified.
|
|
92
86
|
*
|
|
93
87
|
* See also the `context` parameter.
|
|
94
|
-
*
|
|
95
88
|
* @example `http://www.example.com`
|
|
96
89
|
*/
|
|
97
90
|
referrer?: string;
|
|
@@ -104,7 +97,6 @@ export interface SharedFieldsParams extends SharedSearchParams {
|
|
|
104
97
|
* When logging a **Search** usage analytics event for a query, the `customData` field of that event should include the same data as the `context` parameter of the query. However, each `context` key included in `customData` must be prefixed by `context_` (e.g., the `userRoles` key in `context` becomes `context_userRoles` in `customData`).
|
|
105
98
|
*
|
|
106
99
|
* See also the `referrer` parameter.
|
|
107
|
-
*
|
|
108
100
|
* @example
|
|
109
101
|
* ```json
|
|
110
102
|
* {
|
|
@@ -120,7 +112,6 @@ export interface SharedFieldsParams extends SharedSearchParams {
|
|
|
120
112
|
* Coveo Machine Learning models use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the `$locale` object.
|
|
121
113
|
*
|
|
122
114
|
* **Note:** When logging a **Search** usage analytics event, the language field of that event should match the language part of the `locale` value of the query (e.g., `en-US` in `locale` becomes `en` in `language`).
|
|
123
|
-
*
|
|
124
115
|
* @example `en-US`
|
|
125
116
|
*/
|
|
126
117
|
locale?: string;
|
|
@@ -130,7 +121,6 @@ export interface SharedFieldsParams extends SharedSearchParams {
|
|
|
130
121
|
* If you do not specify an `indexToken` (or `index`) value, any index mirror could be used.
|
|
131
122
|
*
|
|
132
123
|
* **Note:** Passing an `indexToken` (or `index`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
|
|
133
|
-
*
|
|
134
124
|
* @example `ZXhhbXBsZWluZGV4bWlycm9yLS4uLg==`
|
|
135
125
|
*/
|
|
136
126
|
indexToken?: string;
|
|
@@ -138,13 +128,11 @@ export interface SharedFieldsParams extends SharedSearchParams {
|
|
|
138
128
|
* The identifier for a logical group of indexes that have been configured to include documents form the same sources.
|
|
139
129
|
*
|
|
140
130
|
* If you do not specify a `logicalIndex` value, the `default` grouping will be used, typically including all indexes.
|
|
141
|
-
*
|
|
142
131
|
* @example `webcontentonly`
|
|
143
132
|
*/
|
|
144
133
|
logicalIndex?: string;
|
|
145
134
|
}
|
|
146
|
-
export
|
|
147
|
-
}
|
|
135
|
+
export type SearchListFieldsParams = SharedFieldsParams;
|
|
148
136
|
export interface SearchListFieldsResponse {
|
|
149
137
|
fields: Array<{
|
|
150
138
|
type: string;
|
|
@@ -195,8 +183,7 @@ export interface TokenModel {
|
|
|
195
183
|
token: string;
|
|
196
184
|
}
|
|
197
185
|
export type RestQueryParams = PostSearchBodyQueryParams;
|
|
198
|
-
export
|
|
199
|
-
}
|
|
186
|
+
export type PostSearchQueryStringParams = Pick<SharedSearchParams, 'organizationId' | 'viewAllContent'>;
|
|
200
187
|
/**
|
|
201
188
|
* Defines the body parameters of the list field values request.
|
|
202
189
|
*/
|
|
@@ -213,13 +200,11 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
213
200
|
* Use:
|
|
214
201
|
* - occurrences: to sort by number of occurrences, with field values having the highest number of occurrences appearing first.
|
|
215
202
|
* - nosort: to avoid sorting the results of the Group By operation. The field values will appear in an unspecified order.
|
|
216
|
-
*
|
|
217
203
|
* @default `occurrences`
|
|
218
204
|
*/
|
|
219
205
|
sortCriteria?: string;
|
|
220
206
|
/**
|
|
221
207
|
* The maximum number of values to return.
|
|
222
|
-
*
|
|
223
208
|
* @default `10`
|
|
224
209
|
*/
|
|
225
210
|
maximumNumberOfValues?: number;
|
|
@@ -227,7 +212,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
227
212
|
* The query expression that should override the basic query expression on which the Group By operation is being performed (see the `q` query parameter).
|
|
228
213
|
*
|
|
229
214
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
230
|
-
*
|
|
231
215
|
* @example `Coveo Cloud V2 Platform`
|
|
232
216
|
*/
|
|
233
217
|
queryOverride?: string;
|
|
@@ -235,7 +219,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
235
219
|
* The query expression that should override the constant query expression on which the Group By operation is being performed (see the `cq` query parameter).
|
|
236
220
|
*
|
|
237
221
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
238
|
-
*
|
|
239
222
|
* @example `@filetype==forumpost`
|
|
240
223
|
*/
|
|
241
224
|
constantQueryOverride?: string;
|
|
@@ -243,7 +226,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
243
226
|
* The query expression that should override the disjunction query expression on which the Group By operation is being performed (see the `dq` query parameter).
|
|
244
227
|
*
|
|
245
228
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
246
|
-
*
|
|
247
229
|
* @example `@date=2016-12-01..2016-12-31`
|
|
248
230
|
*/
|
|
249
231
|
disjunctionQueryOverride?: string;
|
|
@@ -261,7 +243,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
261
243
|
* - regularexpression: to parse the specified pattern as a regular expression.
|
|
262
244
|
* - editdistance: to apply the Edit Distance algorithm to match values that are close to the specified pattern.
|
|
263
245
|
* - phonetic to apply a phonetic algorithm to match values that are phonetically similar to the specified pattern.
|
|
264
|
-
*
|
|
265
246
|
* @default `wildcard`
|
|
266
247
|
*/
|
|
267
248
|
patternType?: string;
|
|
@@ -271,7 +252,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
271
252
|
commerce?: RestCommerceParameters;
|
|
272
253
|
/**
|
|
273
254
|
* A key-value store where each pair corresponds to the name of a dictionary field to query, along with the key to target within that field.
|
|
274
|
-
*
|
|
275
255
|
* @example
|
|
276
256
|
* Suppose that in your index, the `@price` dictionary field contains different values for its `storeA` and `storeB` keys. Including `"dictionaryFieldContext": { "price": "storeA" }` in the query means that any part of the query expression that targets the `@price` field will in fact only query the `storeA` values of that field.
|
|
277
257
|
*/
|
|
@@ -282,7 +262,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
282
262
|
* If the results of a specific request are available in the cache, and if those results are no older than the `maximumAge` value, the service returns those results rather than forwarding a new query to the index.
|
|
283
263
|
*
|
|
284
264
|
* **Note:** This parameter is automatically overridden when `staticQuery` is set to `true`.
|
|
285
|
-
*
|
|
286
265
|
* @default `-1` (which corresponds to the internal default value (15 minutes))
|
|
287
266
|
*/
|
|
288
267
|
maximumAge?: number;
|
|
@@ -290,15 +269,12 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
290
269
|
* The query and page view actions previously made by the current user.
|
|
291
270
|
*
|
|
292
271
|
* Coveo Machine Learning content recommendations models use this information to provide contextually relevant output.
|
|
293
|
-
*
|
|
294
|
-
* @type {RestActionHistory[]}
|
|
295
272
|
*/
|
|
296
273
|
actionsHistory?: RestActionHistory[];
|
|
297
274
|
/**
|
|
298
275
|
* The identifier of the recommendation interface from which the request originates.
|
|
299
276
|
*
|
|
300
277
|
* Coveo Machine Learning content recommendations models may use this information to provide contextually relevant output.
|
|
301
|
-
*
|
|
302
278
|
* @example `RecommendedProducts`
|
|
303
279
|
*/
|
|
304
280
|
recommendation?: string;
|
|
@@ -310,7 +286,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
310
286
|
* - Use `xlsx` to generate an Excel file containing the results (binary).
|
|
311
287
|
*
|
|
312
288
|
* **Note:** Debug information (see the `debug` parameter) can only appear in a response in the JSON format.
|
|
313
|
-
*
|
|
314
289
|
* @default `json`
|
|
315
290
|
*/
|
|
316
291
|
format?: RestFormat;
|
|
@@ -318,7 +293,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
318
293
|
* A GUID representing the current user, who can be authenticated or anonymous. This GUID is normally generated by the usage analytics service and stored in a non-expiring browser cookie.
|
|
319
294
|
*
|
|
320
295
|
* Coveo Machine Learning models may use this information to provide contextually relevant output.
|
|
321
|
-
*
|
|
322
296
|
* @example `5cb98953-9c13-42ff-8176-e6fcba6a50bf`
|
|
323
297
|
*/
|
|
324
298
|
visitorId?: string;
|
|
@@ -328,7 +302,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
328
302
|
* Coveo Machine Learning models may use this information to provide contextually relevant output.
|
|
329
303
|
*
|
|
330
304
|
* **Note:** When logging a **Search** usage analytics event for a query, the anonymous field of that event should be set to the `isGuestUser` value of the query.
|
|
331
|
-
*
|
|
332
305
|
* @default `false`
|
|
333
306
|
*/
|
|
334
307
|
isGuestUser?: boolean;
|
|
@@ -347,7 +320,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
347
320
|
* - `categoryFilter` (string): The name of a category of products to get recommendations for.
|
|
348
321
|
* - `brandFilter` (string): The name of a brand of products to get recommendations for.
|
|
349
322
|
* - `filters` (map of strings): The dimensions along with the values to be used at query time by the model as filters for potential suggestions. Only applies to Automatic relevance Tuning, Query Suggestions, or Dynamic Navigation Experience models that don’t use the default `filterFields` advanced parameter values. **Example:** `"filters": { "originContext": "<MY-VALUE>", "originLevel2": "<MY-VALUE>" }`.
|
|
350
|
-
*
|
|
351
323
|
* @example
|
|
352
324
|
* ```json
|
|
353
325
|
* {
|
|
@@ -357,7 +329,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
357
329
|
* "considerUserContext": false
|
|
358
330
|
* }
|
|
359
331
|
* ```
|
|
360
|
-
*
|
|
361
332
|
* @example
|
|
362
333
|
* ```json
|
|
363
334
|
* {"wordSelection": "wordsKept:4"}
|
|
@@ -366,14 +337,12 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
366
337
|
mlParameters?: Record<string, any>;
|
|
367
338
|
/**
|
|
368
339
|
* The type of index against which to execute the query. Must correspond to an index that has been configured for the target Coveo Cloud organization.
|
|
369
|
-
*
|
|
370
340
|
* @default `coveo`
|
|
371
341
|
*/
|
|
372
342
|
indexType?: string;
|
|
373
343
|
/**
|
|
374
344
|
* The maximum number of milliseconds to allow the request to last before timing out. Maximum: 16000
|
|
375
345
|
* Coveo determines the most appropriate timeout to use.
|
|
376
|
-
*
|
|
377
346
|
* @default: `0`
|
|
378
347
|
*/
|
|
379
348
|
maximumTimeoutMs?: string;
|
|
@@ -393,7 +362,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
393
362
|
* - `clientRequestId` (string): A GUID generated by the client representing the current request. This information is used to identify operations across different apis related to the same request.
|
|
394
363
|
* - `clientTimestamp` (string): Client ISO 8601 timestamp with milliseconds.
|
|
395
364
|
* - `userAgent` (string): The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header. This information is required when endpoints are behind a proxy.
|
|
396
|
-
*
|
|
397
365
|
* @example
|
|
398
366
|
* ```json
|
|
399
367
|
* {
|
|
@@ -402,7 +370,6 @@ export interface ListFieldValuesBodyQueryParams extends SharedFieldsParams {
|
|
|
402
370
|
* "deviceId": "Chrome"
|
|
403
371
|
* }
|
|
404
372
|
* ```
|
|
405
|
-
*
|
|
406
373
|
* @example
|
|
407
374
|
* ```json
|
|
408
375
|
* {
|
|
@@ -429,7 +396,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
429
396
|
* The advanced query expression, typically generated by code (e.g., when toggling facet values).
|
|
430
397
|
*
|
|
431
398
|
* **Note:** When logging a **Search** usage analytics event for a query, the `advancedQuery` field of that event should be set to the `aq` value of the corresponding query (for reporting purposes).
|
|
432
|
-
*
|
|
433
399
|
* @example
|
|
434
400
|
* `@year==2017`
|
|
435
401
|
*/
|
|
@@ -449,7 +415,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
449
415
|
*
|
|
450
416
|
* - In the index, the values of the `childField` must only contain alphanumerical characters. Using a `childField` whose values contain non-indexable characters (such as underscores) will make folding fail.
|
|
451
417
|
* - The values of the `childField` must contain 60 characters or less (60 being the default maximum of characters for a word in the index).
|
|
452
|
-
*
|
|
453
418
|
* @example `@foldingparent`
|
|
454
419
|
*/
|
|
455
420
|
childField?: string;
|
|
@@ -465,20 +430,17 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
465
430
|
* **Notes:**
|
|
466
431
|
* - Other parts of the query expression can also benefit from the index cache (see the `maximumAge` parameter). However, using the constant query expression allows you to explicitly cache specific result sets.
|
|
467
432
|
* - Temporal keywords (`now`, `today`, `yesterday`) in the constant query expression are only re-evaluated once per 3-4 minutes; therefore, you should avoid basing `cq` expressions on temporal keywords if you require split second accuracy.
|
|
468
|
-
*
|
|
469
433
|
* @example `@filetype==forumpost`
|
|
470
434
|
*/
|
|
471
435
|
cq?: string;
|
|
472
436
|
/**
|
|
473
437
|
* A key-value store where each pair corresponds to the name of a dictionary field to query, along with the key to target within that field.
|
|
474
|
-
*
|
|
475
438
|
* @example
|
|
476
439
|
* Suppose that in your index, the `@price` dictionary field contains different values for its `storeA` and `storeB` keys. Including `"dictionaryFieldContext": { "price": "storeA" }` in the query means that any part of the query expression that targets the `@price` field will in fact only query the `storeA` values of that field.
|
|
477
440
|
*/
|
|
478
441
|
dictionaryFieldContext?: RestDictionaryFieldContextRequest;
|
|
479
442
|
/**
|
|
480
443
|
* The disjunction query expression, typically populated by Coveo ML automatic relevance tuning models to ensure that relevant items are included in the query results. The disjunction query expression is merged with the other parts of the query expression using an `OR` operator. The resulting query expression is `(((q aq) OR (dq)) cq)`.
|
|
481
|
-
*
|
|
482
444
|
* @example `@permanentid=aadd702687c62910d6da8347304ec2cedfd0b06d5b4d2794a555ce5688bd`
|
|
483
445
|
*/
|
|
484
446
|
dq?: string;
|
|
@@ -490,7 +452,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
490
452
|
* - The Did You Mean feature only processes the basic query expression (see the `q` parameter).
|
|
491
453
|
* - When both `enableDidYouMean` and `enableMLDidYouMean` parameter are set to `true`, the output of both features will appear in the `queryCorrections` array.
|
|
492
454
|
* - The Did You Mean feature will return no corrections when the query is processed by an automatic relevance tuning (ART) model whose Intelligent Term Detection (ITD) feature is enabled.
|
|
493
|
-
*
|
|
494
455
|
* @default `false`
|
|
495
456
|
*/
|
|
496
457
|
enableDidYouMean?: boolean;
|
|
@@ -501,7 +462,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
501
462
|
* - Two items must be at least 85% similar to one another to be considered duplicates.
|
|
502
463
|
* - When a pair of duplicates is found, only the higher-ranked item of the two is kept in the result set.
|
|
503
464
|
* - Enabling this feature can make the total result count less precise, since only results up to those being retrieved (see the `firstResult` and `numberOfResults` parameters) are submitted to duplicate filtering.
|
|
504
|
-
*
|
|
505
465
|
* @default `false`
|
|
506
466
|
*/
|
|
507
467
|
enableDuplicateFiltering?: boolean;
|
|
@@ -513,13 +473,11 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
513
473
|
* **Notes:**
|
|
514
474
|
* - The Coveo ML query suggestions Did You Mean feature only processes the basic query expression (see the `q` parameter).
|
|
515
475
|
* - When both `enableDidYouMean` and `enableMLDidYouMean` parameter are set to true, the output of both features will appear in the `queryCorrections` array.
|
|
516
|
-
*
|
|
517
476
|
* @default `false`
|
|
518
477
|
*/
|
|
519
478
|
enableMLDidYouMean?: boolean;
|
|
520
479
|
/**
|
|
521
480
|
* Whether to interpret advanced Coveo Cloud query syntax as such in the basic query expression (see the `q` parameter). See also the `lowercaseOperators` parameter.
|
|
522
|
-
*
|
|
523
481
|
* @default `true`
|
|
524
482
|
*/
|
|
525
483
|
enableQuerySyntax?: boolean;
|
|
@@ -531,7 +489,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
531
489
|
* **Notes:**
|
|
532
490
|
* - The maximum length you set using this parameter also applies to retrieved first sentences, if those are included in the results (see the `retrieveFirstSentences` parameter).
|
|
533
491
|
* - On an Elasticsearch index, actual excerpts may be slightly longer than the requested excerpt length.
|
|
534
|
-
*
|
|
535
492
|
* @default `200`
|
|
536
493
|
*/
|
|
537
494
|
excerptLength?: number;
|
|
@@ -549,7 +506,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
549
506
|
* **Note:** If you specify both an array of fields to include (see the `fieldsToInclude` parameter) and an array of fields to exclude, the `fieldsToExclude` parameter has no effect at all.
|
|
550
507
|
*
|
|
551
508
|
* If you do not explicitly specify an array of values for this parameter (or for the `fieldsToInclude` parameter), each query result item will include all of its available fields.
|
|
552
|
-
*
|
|
553
509
|
* @example
|
|
554
510
|
* ```json
|
|
555
511
|
* ["documenttype","size","source"]
|
|
@@ -562,7 +518,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
562
518
|
* **Note:** If you specify both an array of fields to include and an array of fields to exclude (see the `fieldsToExclude` parameter), the `fieldsToExclude` parameter has no effect at all.
|
|
563
519
|
*
|
|
564
520
|
* If you do not explicitly specify an array of values for this parameter (or for the `fieldsToExclude` parameter), each query result item will include all of its available fields.
|
|
565
|
-
*
|
|
566
521
|
* @example
|
|
567
522
|
* ```json
|
|
568
523
|
* ["clickableuri","author","date","filetype","language","coversationid","messageid","childid","adjustednumberoflikes"]
|
|
@@ -577,7 +532,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
577
532
|
* See also the `parentField`, `childField`, and `filterFieldRange` parameters.
|
|
578
533
|
*
|
|
579
534
|
* **Note:** In an Elasticsearch index, the corresponding field must be configured as a *Facet* and/or *Sortable* field (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)). This limitation does not apply to a Coveo index.
|
|
580
|
-
*
|
|
581
535
|
* @example `@foldingcollection`
|
|
582
536
|
*/
|
|
583
537
|
filterField?: string;
|
|
@@ -585,7 +539,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
585
539
|
* The maximum number of items to include in the `childResults` array of a folded query result (see [Result Folding](https://docs.coveo.com/en/1466/)).
|
|
586
540
|
*
|
|
587
541
|
* See also the `filterField`, `parentField`, and `childField`.
|
|
588
|
-
*
|
|
589
542
|
* @default `5`
|
|
590
543
|
*/
|
|
591
544
|
filterFieldRange?: number;
|
|
@@ -593,7 +546,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
593
546
|
* The 0-based position of the first result to return in the non-paginated result set.
|
|
594
547
|
*
|
|
595
548
|
* Along with the `numberOfResults` parameter, this allows you to retrieve a specific page of result items.
|
|
596
|
-
*
|
|
597
549
|
* @default `0`
|
|
598
550
|
*/
|
|
599
551
|
firstResult?: number;
|
|
@@ -605,16 +557,13 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
605
557
|
* Whether to treat the `AND`, `NEAR`, `NOT`, and `OR` keywords in the basic query expression (see the `q` parameter) as Coveo Cloud query syntax operators even if those keywords are in lowercase.
|
|
606
558
|
*
|
|
607
559
|
* **Note:** Setting this parameter to `true` has no effect unless you also set the `enableQuerySyntax` parameter to `true`.
|
|
608
|
-
*
|
|
609
560
|
* @example
|
|
610
561
|
* If you set this parameter, and the `enableQuerySyntax` parameter to `true`, the index interprets the `near` keyword in the basic query expression service center near me as the `NEAR` Coveo Cloud query syntax operator.
|
|
611
|
-
*
|
|
612
562
|
* @default `false`
|
|
613
563
|
*/
|
|
614
564
|
lowercaseOperators?: boolean;
|
|
615
565
|
/**
|
|
616
566
|
* The large query expression, typically populated with a case description, long textual query, or any other form of text that can help refine a query. The Coveo ML Intelligent Term Detection (ITD) feature can extract relevant keywords from the large query expression and inject those keywords in the basic query expression (see the `q` parameter).
|
|
617
|
-
*
|
|
618
567
|
* @example `I am looking for an enterprise-class native cloud SaaS/PaaS solution that ...`
|
|
619
568
|
*/
|
|
620
569
|
lq?: string;
|
|
@@ -624,7 +573,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
624
573
|
* **Note:** This parameter applies as a fallback setting when no Coveo ML automatic relevance tuning model is available in the query pipeline to process a query that contains a non-null large query expression (`lq`).
|
|
625
574
|
*
|
|
626
575
|
* See also the `lqPartialMatchThreshold` parameter.
|
|
627
|
-
*
|
|
628
576
|
* @default `5`
|
|
629
577
|
*/
|
|
630
578
|
lqPartialMatchKeywords?: string;
|
|
@@ -636,7 +584,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
636
584
|
* Setting this parameter to a high value can negatively impact the performance of queries, while setting it too low can produce less relevant results.
|
|
637
585
|
*
|
|
638
586
|
* See also the `lqPartialMatchThreshold` parameter.
|
|
639
|
-
*
|
|
640
587
|
* @default `100`
|
|
641
588
|
*/
|
|
642
589
|
lqPartialMatchMaxKeywords?: number;
|
|
@@ -654,29 +601,24 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
654
601
|
* **Note:** This parameter applies when no Coveo ML automatic relevance tuning model is available in the query pipeline to process a query that contains a non-null large query expression (`lq`).
|
|
655
602
|
*
|
|
656
603
|
* See also the `lqPartialMatchKeywords` parameter.
|
|
657
|
-
*
|
|
658
604
|
* @example `3`
|
|
659
605
|
* @example `75%`
|
|
660
606
|
* @example `all`
|
|
661
|
-
*
|
|
662
607
|
* @default `50%`
|
|
663
608
|
*/
|
|
664
609
|
lqPartialMatchThreshold?: RestThreshold;
|
|
665
610
|
/**
|
|
666
611
|
* The maximum number of Coveo ML Did You Mean candidates to request from the query suggestions model.
|
|
667
|
-
*
|
|
668
612
|
* @default `3`
|
|
669
613
|
*/
|
|
670
614
|
mlDidYouMeanMaxCandidates?: number;
|
|
671
615
|
/**
|
|
672
616
|
* The minimum score a query suggestion may have to be allowed as a candidate for the Coveo ML query suggestions Did You Mean feature. For best results, value should typically be in range `[0.8, 2]`.
|
|
673
|
-
*
|
|
674
617
|
* @default `1.0`
|
|
675
618
|
*/
|
|
676
619
|
mlDidYouMeanMinScore?: number;
|
|
677
620
|
/**
|
|
678
621
|
* Whether to use facet counts for the Coveo ML Did You Mean feature. Can improve results, but requires more processing.
|
|
679
|
-
*
|
|
680
622
|
* @default `false`
|
|
681
623
|
*/
|
|
682
624
|
mlDidYouMeanUseFacetCount?: boolean;
|
|
@@ -688,7 +630,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
688
630
|
* This parameter also defines the maximum number of results which can be returned by the Coveo ML Recommendations feature.
|
|
689
631
|
*
|
|
690
632
|
* **Note:** The maximum `numberOfResults` value depends on the index settings of your Coveo Cloud V2 organization. By default, a Coveo Cloud V2 index can return a maximum of 1000 items per query.
|
|
691
|
-
*
|
|
692
633
|
* @default `10`
|
|
693
634
|
*/
|
|
694
635
|
numberOfResults?: number;
|
|
@@ -702,7 +643,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
702
643
|
* **Notes:**
|
|
703
644
|
* - In the index, the values of the `parentField` must only contain alphanumerical characters. Using a `childField` whose values contain non-indexable characters (such as underscores) will make folding fail.
|
|
704
645
|
* - The values of the `parentField` must contain 60 characters or less (60 being the default maximum of characters for a word in the index).
|
|
705
|
-
*
|
|
706
646
|
* @example `@foldingchild`
|
|
707
647
|
*/
|
|
708
648
|
parentField?: string;
|
|
@@ -714,7 +654,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
714
654
|
* **Notes:**
|
|
715
655
|
* - This feature only applies to the basic expression (`q`) of a query, and to the basic `queryOverride` of its Group By operations.
|
|
716
656
|
* - When the `enableQuerySyntax` parameter is set to `true`, this feature has no effect on a basic expression containing advanced Coveo Cloud query syntax (field expressions, operators, etc.).
|
|
717
|
-
*
|
|
718
657
|
* @default `false`
|
|
719
658
|
*/
|
|
720
659
|
partialMatch?: boolean;
|
|
@@ -728,7 +667,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
728
667
|
* - Stemming expansions **do not** count towards the `partialMatchKeywords` count.
|
|
729
668
|
*
|
|
730
669
|
* See also the `partialMatchThreshold` parameter.
|
|
731
|
-
*
|
|
732
670
|
* @default `5`
|
|
733
671
|
*/
|
|
734
672
|
partialMatchKeywords?: string;
|
|
@@ -748,11 +686,9 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
748
686
|
* - A keyword and its stemming expansions count as a single keyword when evaluating whether an item meets the `partialMatchThreshold`.
|
|
749
687
|
*
|
|
750
688
|
* See also the `partialMatchKeywords` parameter.
|
|
751
|
-
*
|
|
752
689
|
* @example `3`
|
|
753
690
|
* @example `75%`
|
|
754
691
|
* @example `all`
|
|
755
|
-
*
|
|
756
692
|
* @default `50%`
|
|
757
693
|
*/
|
|
758
694
|
partialMatchThreshold?: RestThreshold;
|
|
@@ -768,7 +704,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
768
704
|
* **Note:** Setting this parameter to true has no effect unless you also set the `wildcards` parameter to `true`.
|
|
769
705
|
*
|
|
770
706
|
* See [Using Wildcards in Queries](https://docs.coveo.com/en/1580/).
|
|
771
|
-
*
|
|
772
707
|
* @default `false`
|
|
773
708
|
*/
|
|
774
709
|
questionMark?: boolean;
|
|
@@ -785,13 +720,11 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
785
720
|
* First sentences are typically useful when rendering result items such as emails, since the first few sentences of these kinds of items are often more relevant than a contextually generated excerpt (see the `excerptLength` parameter).
|
|
786
721
|
*
|
|
787
722
|
* **Note:** The maximum length of the retrieved sentences (in number of characters) is determined by the value of the `excerptLength` parameter.
|
|
788
|
-
*
|
|
789
723
|
* @default `false`
|
|
790
724
|
*/
|
|
791
725
|
retrieveFirstSentences?: boolean;
|
|
792
726
|
/**
|
|
793
727
|
* Whether the `q` value contains the URI hash of a specific item that should be returned.
|
|
794
|
-
*
|
|
795
728
|
* @default `false`
|
|
796
729
|
*/
|
|
797
730
|
searchById?: boolean;
|
|
@@ -808,11 +741,9 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
808
741
|
* You can specify a list of comma-separated sort criteria. However, this only works when combining:
|
|
809
742
|
* - two or more field criteria (e.g., `@views descending,@likes descending`).
|
|
810
743
|
* - a single date criteria with one or more field criteria (e.g., `date ascending,@views descending`).
|
|
811
|
-
*
|
|
812
744
|
* @example `date ascending`
|
|
813
745
|
* @example `@author ascending`
|
|
814
746
|
* @example `date descending,@views descending,@likes descending`
|
|
815
|
-
*
|
|
816
747
|
* @default `relevancy`
|
|
817
748
|
*/
|
|
818
749
|
sortCriteria?: string;
|
|
@@ -820,7 +751,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
820
751
|
* Whether to execute this query in a way that does not count against the allowed number of queries per month of a Coveo Cloud organization (QPM), but may produce cached/outdated query results (see [Rendering Static Content Using Persistent Queries](https://docs.coveo.com/en/1009/)).
|
|
821
752
|
*
|
|
822
753
|
* **Note:** Setting this parameter to `true` overwrites the `maximumAge` parameter value for this query.
|
|
823
|
-
*
|
|
824
754
|
* @default `false`
|
|
825
755
|
*/
|
|
826
756
|
staticQuery?: boolean;
|
|
@@ -828,7 +758,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
828
758
|
* The length of the automatically generated item summary.
|
|
829
759
|
*
|
|
830
760
|
* The index generates a result item *summary* independently from the query, as opposed to a result item *excerpt*, which is generated based on query keywords.
|
|
831
|
-
*
|
|
832
761
|
* @default `0`
|
|
833
762
|
*/
|
|
834
763
|
summaryLength?: number;
|
|
@@ -848,7 +777,6 @@ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
|
|
|
848
777
|
* Whether to enable the wildcards feature of the index in order to expand basic expression keywords (see the `q` parameter) containing wildcard characters (`*`) to the possible matching keywords. See also the `questionMark` parameter.
|
|
849
778
|
*
|
|
850
779
|
* See [Using Wildcards in Queries](https://docs.coveo.com/en/1580/).
|
|
851
|
-
*
|
|
852
780
|
* @default `false`
|
|
853
781
|
*/
|
|
854
782
|
wildcards?: boolean;
|
|
@@ -858,8 +786,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
858
786
|
* The query and page view actions previously made by the current user.
|
|
859
787
|
*
|
|
860
788
|
* Coveo Machine Learning content recommendations models use this information to provide contextually relevant output.
|
|
861
|
-
*
|
|
862
|
-
* @type {RestActionHistory[]}
|
|
863
789
|
*/
|
|
864
790
|
actionsHistory?: RestActionHistory[];
|
|
865
791
|
/**
|
|
@@ -878,7 +804,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
878
804
|
* - `clientRequestId` (string): A GUID generated by the client representing the current request. This information is used to identify operations across different apis related to the same request.
|
|
879
805
|
* - `clientTimestamp` (string): Client ISO 8601 timestamp with milliseconds.
|
|
880
806
|
* - `userAgent` (string): The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header. This information is required when endpoints are behind a proxy.
|
|
881
|
-
*
|
|
882
807
|
* @example
|
|
883
808
|
* ```json
|
|
884
809
|
* {
|
|
@@ -887,7 +812,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
887
812
|
* "deviceId": "Chrome"
|
|
888
813
|
* }
|
|
889
814
|
* ```
|
|
890
|
-
*
|
|
891
815
|
* @example
|
|
892
816
|
* ```json
|
|
893
817
|
* {
|
|
@@ -906,7 +830,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
906
830
|
* When logging a **Search** usage analytics event for a query, the `customData` field of that event should include the same data as the `context` parameter of the query. However, each `context` key included in `customData` must be prefixed by `context_` (e.g., the `userRoles` key in `context` becomes `context_userRoles` in `customData`).
|
|
907
831
|
*
|
|
908
832
|
* See also the `referrer` parameter.
|
|
909
|
-
*
|
|
910
833
|
* @example
|
|
911
834
|
* ```json
|
|
912
835
|
* {
|
|
@@ -924,7 +847,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
924
847
|
* - Use `xlsx` to generate an Excel file containing the results (binary).
|
|
925
848
|
*
|
|
926
849
|
* **Note:** Debug information (see the `debug` parameter) can only appear in a response in the JSON format.
|
|
927
|
-
*
|
|
928
850
|
* @default `json`
|
|
929
851
|
*/
|
|
930
852
|
format?: RestFormat;
|
|
@@ -934,13 +856,11 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
934
856
|
* If you do not specify an `indexToken` (or `index`) value, any index mirror could be used.
|
|
935
857
|
*
|
|
936
858
|
* **Note:** Passing an `indexToken` (or `index`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
|
|
937
|
-
*
|
|
938
859
|
* @example `ZXhhbXBsZWluZGV4bWlycm9yLS4uLg==`
|
|
939
860
|
*/
|
|
940
861
|
indexToken?: string;
|
|
941
862
|
/**
|
|
942
863
|
* The type of index against which to execute the query. Must correspond to an index that has been configured for the target Coveo Cloud organization.
|
|
943
|
-
*
|
|
944
864
|
* @default `coveo`
|
|
945
865
|
*/
|
|
946
866
|
indexType?: string;
|
|
@@ -950,7 +870,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
950
870
|
* Coveo Machine Learning models may use this information to provide contextually relevant output.
|
|
951
871
|
*
|
|
952
872
|
* **Note:** When logging a **Search** usage analytics event for a query, the anonymous field of that event should be set to the `isGuestUser` value of the query.
|
|
953
|
-
*
|
|
954
873
|
* @default `false`
|
|
955
874
|
*/
|
|
956
875
|
isGuestUser?: boolean;
|
|
@@ -960,7 +879,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
960
879
|
* Coveo Machine Learning models use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the `$locale` object.
|
|
961
880
|
*
|
|
962
881
|
* **Note:** When logging a **Search** usage analytics event, the language field of that event should match the language part of the `locale` value of the query (e.g., `en-US` in `locale` becomes `en` in `language`).
|
|
963
|
-
*
|
|
964
882
|
* @example `en-US`
|
|
965
883
|
*/
|
|
966
884
|
locale?: string;
|
|
@@ -968,7 +886,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
968
886
|
* The identifier for a logical group of indexes that have been configured to include documents form the same sources.
|
|
969
887
|
*
|
|
970
888
|
* If you do not specify a `logicalIndex` value, the `default` grouping will be used, typically including all indexes.
|
|
971
|
-
*
|
|
972
889
|
* @example `webcontentonly`
|
|
973
890
|
*/
|
|
974
891
|
logicalIndex?: string;
|
|
@@ -978,7 +895,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
978
895
|
* If the results of a specific request are available in the cache, and if those results are no older than the `maximumAge` value, the service returns those results rather than forwarding a new query to the index.
|
|
979
896
|
*
|
|
980
897
|
* **Note:** This parameter is automatically overridden when `staticQuery` is set to `true`.
|
|
981
|
-
*
|
|
982
898
|
* @default `-1` (which corresponds to the internal default value (15 minutes))
|
|
983
899
|
*/
|
|
984
900
|
maximumAge?: number;
|
|
@@ -997,7 +913,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
997
913
|
* - `categoryFilter` (string): The name of a category of products to get recommendations for.
|
|
998
914
|
* - `brandFilter` (string): The name of a brand of products to get recommendations for.
|
|
999
915
|
* - `filters` (map of strings): The dimensions along with the values to be used at query time by the model as filters for potential suggestions. Only applies to Automatic relevance Tuning, Query Suggestions, or Dynamic Navigation Experience models that don't use the default `filterFields` advanced parameter values. **Example:** `"filters": { "originContext": "<MY-VALUE>", "originLevel2": "<MY-VALUE>" }`.
|
|
1000
|
-
*
|
|
1001
916
|
* @example
|
|
1002
917
|
* ```json
|
|
1003
918
|
* {
|
|
@@ -1007,7 +922,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1007
922
|
* "considerUserContext": false
|
|
1008
923
|
* }
|
|
1009
924
|
* ```
|
|
1010
|
-
*
|
|
1011
925
|
* @example
|
|
1012
926
|
* ```json
|
|
1013
927
|
* {"wordSelection": "wordsKept:4"}
|
|
@@ -1018,7 +932,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1018
932
|
* The basic query expression, typically the keywords entered by the end user in a query box.
|
|
1019
933
|
*
|
|
1020
934
|
* **Note:** When logging a **Search** usage analytics event for a query, the `queryText` field of that event should be set to the `q` value of the corresponding query.
|
|
1021
|
-
*
|
|
1022
935
|
* @example `Coveo "Cloud V2" platform`
|
|
1023
936
|
*/
|
|
1024
937
|
q?: string;
|
|
@@ -1026,7 +939,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1026
939
|
* The identifier of the recommendation interface from which the request originates.
|
|
1027
940
|
*
|
|
1028
941
|
* Coveo Machine Learning content recommendations models may use this information to provide contextually relevant output.
|
|
1029
|
-
*
|
|
1030
942
|
* @example `RecommendedProducts`
|
|
1031
943
|
*/
|
|
1032
944
|
recommendation?: string;
|
|
@@ -1038,7 +950,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1038
950
|
* **Note:** When logging a **Search** usage analytics event for a query, the `originLevel3` field of that event should be set to the `referrer` value of the query, if specified.
|
|
1039
951
|
*
|
|
1040
952
|
* See also the `context` parameter.
|
|
1041
|
-
*
|
|
1042
953
|
* @example `http://www.example.com`
|
|
1043
954
|
*/
|
|
1044
955
|
referrer?: string;
|
|
@@ -1055,11 +966,9 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1055
966
|
* You can specify a list of comma-separated sort criteria. However, this only works when combining:
|
|
1056
967
|
* - two or more field criteria (e.g., `@views descending,@likes descending`).
|
|
1057
968
|
* - a single date criteria with one or more field criteria (e.g., `date ascending,@views descending`).
|
|
1058
|
-
*
|
|
1059
969
|
* @example `date ascending`
|
|
1060
970
|
* @example `@author ascending`
|
|
1061
971
|
* @example `date descending,@views descending,@likes descending`
|
|
1062
|
-
*
|
|
1063
972
|
* @default `relevancy`
|
|
1064
973
|
*/
|
|
1065
974
|
/**
|
|
@@ -1070,7 +979,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1070
979
|
* **Note:** When logging a **Search** usage analytics event for a query, the `originLevel2` field of that event should be set to the `tab` value of the query (or to the `"default"` string, if no `tab` value was specified in the query).
|
|
1071
980
|
*
|
|
1072
981
|
* See also the `searchHub` parameter.
|
|
1073
|
-
*
|
|
1074
982
|
* @example `ForumTab`
|
|
1075
983
|
*/
|
|
1076
984
|
tab?: string;
|
|
@@ -1078,7 +986,6 @@ interface PostSearchBodyCommonParams extends SharedSearchParams {
|
|
|
1078
986
|
* A GUID representing the current user, who can be authenticated or anonymous. This GUID is normally generated by the usage analytics service and stored in a non-expiring browser cookie.
|
|
1079
987
|
*
|
|
1080
988
|
* Coveo Machine Learning models may use this information to provide contextually relevant output.
|
|
1081
|
-
*
|
|
1082
989
|
* @example `5cb98953-9c13-42ff-8176-e6fcba6a50bf`
|
|
1083
990
|
*/
|
|
1084
991
|
visitorId?: string;
|
|
@@ -1112,7 +1019,6 @@ export type RestRangeAlgorithm = 'equiprobable' | 'even';
|
|
|
1112
1019
|
export interface RestActionHistory {
|
|
1113
1020
|
/**
|
|
1114
1021
|
* The action history event name.
|
|
1115
|
-
*
|
|
1116
1022
|
* @example `PageView`
|
|
1117
1023
|
*
|
|
1118
1024
|
* Allowed values are:
|
|
@@ -1122,13 +1028,11 @@ export interface RestActionHistory {
|
|
|
1122
1028
|
name?: string;
|
|
1123
1029
|
/**
|
|
1124
1030
|
* The time when the action history event was sent from the client.
|
|
1125
|
-
*
|
|
1126
1031
|
* @example `2017-08-15T17:34:08.398Z`
|
|
1127
1032
|
*/
|
|
1128
1033
|
time?: string;
|
|
1129
1034
|
/**
|
|
1130
1035
|
* The action history value, which is either a query expression or a page URI, depending on the action history event `name`.
|
|
1131
|
-
*
|
|
1132
1036
|
* @example `http://www.example.com/`
|
|
1133
1037
|
*/
|
|
1134
1038
|
value?: string;
|
|
@@ -1141,7 +1045,6 @@ export interface RestAnalyticsRequest {
|
|
|
1141
1045
|
* A GUID representing the client id.
|
|
1142
1046
|
*
|
|
1143
1047
|
* **Note:** The `clientId` and `deviceId` replaces the deprecated `visitorId`.
|
|
1144
|
-
*
|
|
1145
1048
|
* @example `6d148f06-5f15-4639-81b4-792a9b94eb5f`
|
|
1146
1049
|
*/
|
|
1147
1050
|
clientId?: string;
|
|
@@ -1149,13 +1052,11 @@ export interface RestAnalyticsRequest {
|
|
|
1149
1052
|
* A GUID generated by the client representing the current request.
|
|
1150
1053
|
*
|
|
1151
1054
|
* This information is used to identify operations across different apis related to the same request.
|
|
1152
|
-
*
|
|
1153
1055
|
* @example `6c59a3aa-cb66-492e-9c08-9f1937467b60`
|
|
1154
1056
|
*/
|
|
1155
1057
|
clientRequestId?: string;
|
|
1156
1058
|
/**
|
|
1157
1059
|
* Client ISO 8601 timestamp with milliseconds.
|
|
1158
|
-
*
|
|
1159
1060
|
* @example `2020-09-09T19:00:45.603-04:00`
|
|
1160
1061
|
*/
|
|
1161
1062
|
clientTimestamp?: string;
|
|
@@ -1163,7 +1064,6 @@ export interface RestAnalyticsRequest {
|
|
|
1163
1064
|
* The name of the device that the end user is using. It has to be explicitly passed from native mobile apps.
|
|
1164
1065
|
*
|
|
1165
1066
|
* **Note:** The `clientId` and `deviceId` replaces the deprecated `visitorId`.
|
|
1166
|
-
*
|
|
1167
1067
|
* @example `Chrome`
|
|
1168
1068
|
*/
|
|
1169
1069
|
deviceId?: string;
|
|
@@ -1173,7 +1073,6 @@ export interface RestAnalyticsRequest {
|
|
|
1173
1073
|
* If not present, the referrer is obtained from the [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header.
|
|
1174
1074
|
*
|
|
1175
1075
|
* **Note:** This information can be obtained from `coveo.analytics.js`.
|
|
1176
|
-
*
|
|
1177
1076
|
* @example `http://www.example.com/`
|
|
1178
1077
|
*/
|
|
1179
1078
|
documentLocation?: string;
|
|
@@ -1183,7 +1082,6 @@ export interface RestAnalyticsRequest {
|
|
|
1183
1082
|
* Coveo Machine Learning models may use this information to provide contextually relevant output.
|
|
1184
1083
|
*
|
|
1185
1084
|
* **Note:** This information can be obtained from `coveo.analytics.js`.
|
|
1186
|
-
*
|
|
1187
1085
|
* @example `http://www.example.com/`
|
|
1188
1086
|
*/
|
|
1189
1087
|
documentReferrer?: string;
|
|
@@ -1191,7 +1089,6 @@ export interface RestAnalyticsRequest {
|
|
|
1191
1089
|
* A GUID representing the page ID.
|
|
1192
1090
|
*
|
|
1193
1091
|
* **Note:** This information can be obtained from `coveo.analytics.js`.
|
|
1194
|
-
*
|
|
1195
1092
|
* @example `c4e3aa42-5afa-4b01-8bfd-79b7b49668f7`
|
|
1196
1093
|
*/
|
|
1197
1094
|
pageId?: string;
|
|
@@ -1199,13 +1096,11 @@ export interface RestAnalyticsRequest {
|
|
|
1199
1096
|
* The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header.
|
|
1200
1097
|
*
|
|
1201
1098
|
* **Note:** This information is required when endpoints are behind a proxy.
|
|
1202
|
-
*
|
|
1203
1099
|
* @example `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36`
|
|
1204
1100
|
*/
|
|
1205
1101
|
userAgent?: string;
|
|
1206
1102
|
/**
|
|
1207
1103
|
* The ID of the logged user. If not present, the id is obtained from the authentication token.
|
|
1208
|
-
*
|
|
1209
1104
|
* @example `user@email.com`
|
|
1210
1105
|
*/
|
|
1211
1106
|
userId?: string;
|
|
@@ -1213,7 +1108,6 @@ export interface RestAnalyticsRequest {
|
|
|
1213
1108
|
* The user IP. If not present, the IP is obtained from the [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) and [Forwarded](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded) headers.
|
|
1214
1109
|
*
|
|
1215
1110
|
* **Note:** This information is required when endpoints are behind a proxy.
|
|
1216
|
-
*
|
|
1217
1111
|
* @example `127.0.0.1`
|
|
1218
1112
|
*/
|
|
1219
1113
|
userIp?: string;
|
|
@@ -1224,12 +1118,10 @@ export interface RestAnalyticsRequest {
|
|
|
1224
1118
|
export interface RestCategoryFacetRequest {
|
|
1225
1119
|
/**
|
|
1226
1120
|
* The character to use to split field values into a hierarchical sequence.
|
|
1227
|
-
*
|
|
1228
1121
|
* @example
|
|
1229
1122
|
* For a multi-value `field` containing the following values:
|
|
1230
1123
|
* `c; c>folder2; c>folder2>folder3;`
|
|
1231
1124
|
* The delimiting character is `>`.
|
|
1232
|
-
*
|
|
1233
1125
|
* @default `|`
|
|
1234
1126
|
*/
|
|
1235
1127
|
delimitingCharacter?: string;
|
|
@@ -1237,13 +1129,11 @@ export interface RestCategoryFacetRequest {
|
|
|
1237
1129
|
* The name of the field in which to look for hierarchical values.
|
|
1238
1130
|
*
|
|
1239
1131
|
* **Note:** You must ensure that the **Multi-value facet** option is enabled for this field in your index (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
|
|
1240
|
-
*
|
|
1241
1132
|
* @example `@categories`
|
|
1242
1133
|
*/
|
|
1243
1134
|
field: string;
|
|
1244
1135
|
/**
|
|
1245
1136
|
* Whether to exclude folded result parents when estimating the result count for each facet value.
|
|
1246
|
-
*
|
|
1247
1137
|
* @default `true`
|
|
1248
1138
|
*/
|
|
1249
1139
|
filterFacetCount?: boolean;
|
|
@@ -1251,13 +1141,11 @@ export interface RestCategoryFacetRequest {
|
|
|
1251
1141
|
* The maximum number of query result items to scan.
|
|
1252
1142
|
*
|
|
1253
1143
|
* **Note:** Specifying a high `injectionDepth` value can negatively impact query performance.
|
|
1254
|
-
*
|
|
1255
1144
|
* @default `1000`
|
|
1256
1145
|
*/
|
|
1257
1146
|
injectionDepth?: number;
|
|
1258
1147
|
/**
|
|
1259
1148
|
* The maximum number of values to return.
|
|
1260
|
-
*
|
|
1261
1149
|
* @default `10`
|
|
1262
1150
|
*/
|
|
1263
1151
|
maximumNumberOfValues?: number;
|
|
@@ -1271,7 +1159,6 @@ export interface RestComputedField {
|
|
|
1271
1159
|
* The name of the numeric field on which to perform the aggregate operation.
|
|
1272
1160
|
*
|
|
1273
1161
|
* **Tip:** You should ensure that the **Use cache for computed fields** option is enabled for that field in your index in order to speed up evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
|
|
1274
|
-
*
|
|
1275
1162
|
* @example `@wordcount`
|
|
1276
1163
|
*/
|
|
1277
1164
|
field: string;
|
|
@@ -1297,7 +1184,6 @@ export interface RestFacetOptions {
|
|
|
1297
1184
|
* Whether to take the scores generated by the index into account when reordering facets.
|
|
1298
1185
|
*
|
|
1299
1186
|
* **Note:** Setting this to `false` implies that only the scores generated by a Coveo ML DNE model will be taken into account when automatically reordering facets. To disable automatic facet reordering entirely, set `freezeFacetOrder` to `true` instead.
|
|
1300
|
-
*
|
|
1301
1187
|
* @default `true`
|
|
1302
1188
|
*/
|
|
1303
1189
|
enableIndexFacetOrdering?: boolean;
|
|
@@ -1305,7 +1191,6 @@ export interface RestFacetOptions {
|
|
|
1305
1191
|
* Whether facets should be returned in the same order they were requested.
|
|
1306
1192
|
*
|
|
1307
1193
|
* **Note:** Setting this to `true` entirely prevents automatic score-based facet reordering. To allow automatic facet reordering, but only take into account the scores generated by a Coveo ML DNE model, set `enableIndexFacetOrdering` to `false` instead.
|
|
1308
|
-
*
|
|
1309
1194
|
* @default `false`
|
|
1310
1195
|
*/
|
|
1311
1196
|
freezeFacetOrder?: boolean;
|
|
@@ -1313,7 +1198,6 @@ export interface RestFacetOptions {
|
|
|
1313
1198
|
export interface RestSpecificFacetRequest {
|
|
1314
1199
|
/**
|
|
1315
1200
|
* The values displayed by the facet in the search interface at the moment of the request.
|
|
1316
|
-
*
|
|
1317
1201
|
* @default `[]`
|
|
1318
1202
|
*/
|
|
1319
1203
|
currentValues?: RestFacetValue[];
|
|
@@ -1325,13 +1209,11 @@ export interface RestSpecificFacetRequest {
|
|
|
1325
1209
|
* The name of the field on which to base the facet request.
|
|
1326
1210
|
*
|
|
1327
1211
|
* **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
|
|
1328
|
-
*
|
|
1329
1212
|
* @example `author`
|
|
1330
1213
|
*/
|
|
1331
1214
|
field: string;
|
|
1332
1215
|
/**
|
|
1333
1216
|
* Whether to exclude folded result parents when estimating the result count for each facet value.
|
|
1334
|
-
*
|
|
1335
1217
|
* @default `true`
|
|
1336
1218
|
*/
|
|
1337
1219
|
filterFacetCount?: boolean;
|
|
@@ -1339,7 +1221,6 @@ export interface RestSpecificFacetRequest {
|
|
|
1339
1221
|
* Whether to include the facet request’s `currentValues` in corresponding facet response’s `values` array.
|
|
1340
1222
|
*
|
|
1341
1223
|
* **Note:** Setting this to `true` is useful to ensure that the facet does not move around while the end-user is interacting with it in the search interface.
|
|
1342
|
-
*
|
|
1343
1224
|
* @default `false`
|
|
1344
1225
|
*/
|
|
1345
1226
|
freezeCurrentValues?: boolean;
|
|
@@ -1347,13 +1228,11 @@ export interface RestSpecificFacetRequest {
|
|
|
1347
1228
|
* The maximum number of items to scan for facet values.
|
|
1348
1229
|
*
|
|
1349
1230
|
* **Note:** A high `injectionDepth` may negatively impact the facet request performance.
|
|
1350
|
-
*
|
|
1351
1231
|
* @default `100`
|
|
1352
1232
|
*/
|
|
1353
1233
|
injectionDepth?: number;
|
|
1354
1234
|
/**
|
|
1355
1235
|
* Whether the facet is expanded in the search interface at the moment of the request.
|
|
1356
|
-
*
|
|
1357
1236
|
* @default `false`
|
|
1358
1237
|
*/
|
|
1359
1238
|
isFieldExpanded?: boolean;
|
|
@@ -1364,13 +1243,11 @@ export interface RestSpecificFacetRequest {
|
|
|
1364
1243
|
* **Notes:**
|
|
1365
1244
|
* - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
|
|
1366
1245
|
* - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
|
|
1367
|
-
*
|
|
1368
1246
|
* @default `8`
|
|
1369
1247
|
*/
|
|
1370
1248
|
numberOfValues?: number;
|
|
1371
1249
|
/**
|
|
1372
1250
|
* Whether to prevent Coveo ML from automatically selecting values.
|
|
1373
|
-
*
|
|
1374
1251
|
* @default `false`
|
|
1375
1252
|
*/
|
|
1376
1253
|
preventAutoSelect?: boolean;
|
|
@@ -1398,7 +1275,6 @@ export interface RestSpecificFacetRequest {
|
|
|
1398
1275
|
export interface RestDateRangeFacetRequest {
|
|
1399
1276
|
/**
|
|
1400
1277
|
* The values displayed by the facet in the search interface at the moment of the request.
|
|
1401
|
-
*
|
|
1402
1278
|
* @default `[]`
|
|
1403
1279
|
*/
|
|
1404
1280
|
currentValues?: RestFacetValue[];
|
|
@@ -1410,13 +1286,11 @@ export interface RestDateRangeFacetRequest {
|
|
|
1410
1286
|
* The name of the field on which to base the facet request.
|
|
1411
1287
|
*
|
|
1412
1288
|
* **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
|
|
1413
|
-
*
|
|
1414
1289
|
* @example `author`
|
|
1415
1290
|
*/
|
|
1416
1291
|
field: string;
|
|
1417
1292
|
/**
|
|
1418
1293
|
* Whether to exclude folded result parents when estimating the result count for each facet value.
|
|
1419
|
-
*
|
|
1420
1294
|
* @default `true`
|
|
1421
1295
|
*/
|
|
1422
1296
|
filterFacetCount?: boolean;
|
|
@@ -1424,7 +1298,6 @@ export interface RestDateRangeFacetRequest {
|
|
|
1424
1298
|
* Whether to include the facet request’s `currentValues` in corresponding facet response’s `values` array.
|
|
1425
1299
|
*
|
|
1426
1300
|
* **Note:** Setting this to `true` is useful to ensure that the facet does not move around while the end-user is interacting with it in the search interface.
|
|
1427
|
-
*
|
|
1428
1301
|
* @default `false`
|
|
1429
1302
|
*/
|
|
1430
1303
|
freezeCurrentValues?: boolean;
|
|
@@ -1437,7 +1310,6 @@ export interface RestDateRangeFacetRequest {
|
|
|
1437
1310
|
* - Setting `generateAutomaticRanges` to `true` only makes sense when the Facet `field` references a numeric or date field in the index.
|
|
1438
1311
|
* - The index cannot automatically generate range values of a field generated by a query function. In such cases, you must rather use the `rangeValues` Facet parameter.
|
|
1439
1312
|
* - Automatic range generation will fail if the referenced `field` is dynamically generated by a query function.
|
|
1440
|
-
*
|
|
1441
1313
|
* @default `false`
|
|
1442
1314
|
*/
|
|
1443
1315
|
generateAutomaticRanges?: boolean;
|
|
@@ -1445,13 +1317,11 @@ export interface RestDateRangeFacetRequest {
|
|
|
1445
1317
|
* The maximum number of items to scan for facet values.
|
|
1446
1318
|
*
|
|
1447
1319
|
* **Note:** A high `injectionDepth` may negatively impact the facet request performance.
|
|
1448
|
-
*
|
|
1449
1320
|
* @default `100`
|
|
1450
1321
|
*/
|
|
1451
1322
|
injectionDepth?: number;
|
|
1452
1323
|
/**
|
|
1453
1324
|
* Whether the facet is expanded in the search interface at the moment of the request.
|
|
1454
|
-
*
|
|
1455
1325
|
* @default `false`
|
|
1456
1326
|
*/
|
|
1457
1327
|
isFieldExpanded?: boolean;
|
|
@@ -1462,13 +1332,11 @@ export interface RestDateRangeFacetRequest {
|
|
|
1462
1332
|
* **Notes:**
|
|
1463
1333
|
* - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
|
|
1464
1334
|
* - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
|
|
1465
|
-
*
|
|
1466
1335
|
* @default `8`
|
|
1467
1336
|
*/
|
|
1468
1337
|
numberOfValues?: number;
|
|
1469
1338
|
/**
|
|
1470
1339
|
* Whether to prevent Coveo ML from automatically selecting values.
|
|
1471
|
-
*
|
|
1472
1340
|
* @default `false`
|
|
1473
1341
|
*/
|
|
1474
1342
|
preventAutoSelect?: boolean;
|
|
@@ -1498,7 +1366,6 @@ export interface RestDateRangeFacetRequest {
|
|
|
1498
1366
|
* |0 |500 |299 |
|
|
1499
1367
|
* |500 |1000 |0 |
|
|
1500
1368
|
* |1000 |1500 |1 |
|
|
1501
|
-
*
|
|
1502
1369
|
* @default `equiprobable`
|
|
1503
1370
|
*/
|
|
1504
1371
|
rangeAlgorithm?: RestRangeAlgorithm;
|
|
@@ -1513,7 +1380,6 @@ export interface RestDateRangeFacetRequest {
|
|
|
1513
1380
|
*
|
|
1514
1381
|
* **Notes:**
|
|
1515
1382
|
* - The Coveo ML DNE feature only works with the `score` sort criterion.
|
|
1516
|
-
*
|
|
1517
1383
|
* @default `ascending`
|
|
1518
1384
|
*/
|
|
1519
1385
|
sortCriteria?: RestRangeFacetSortCriteria;
|
|
@@ -1525,7 +1391,6 @@ export interface RestDateRangeFacetRequest {
|
|
|
1525
1391
|
export interface RestNumericalRangeFacetRequest {
|
|
1526
1392
|
/**
|
|
1527
1393
|
* The values displayed by the facet in the search interface at the moment of the request.
|
|
1528
|
-
*
|
|
1529
1394
|
* @default `[]`
|
|
1530
1395
|
*/
|
|
1531
1396
|
currentValues?: RestFacetValue[];
|
|
@@ -1537,13 +1402,11 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1537
1402
|
* The name of the field on which to base the facet request.
|
|
1538
1403
|
*
|
|
1539
1404
|
* **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
|
|
1540
|
-
*
|
|
1541
1405
|
* @example `author`
|
|
1542
1406
|
*/
|
|
1543
1407
|
field: string;
|
|
1544
1408
|
/**
|
|
1545
1409
|
* Whether to exclude folded result parents when estimating the result count for each facet value.
|
|
1546
|
-
*
|
|
1547
1410
|
* @default `true`
|
|
1548
1411
|
*/
|
|
1549
1412
|
filterFacetCount?: boolean;
|
|
@@ -1551,7 +1414,6 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1551
1414
|
* Whether to include the facet request’s `currentValues` in corresponding facet response’s `values` array.
|
|
1552
1415
|
*
|
|
1553
1416
|
* **Note:** Setting this to `true` is useful to ensure that the facet does not move around while the end-user is interacting with it in the search interface.
|
|
1554
|
-
*
|
|
1555
1417
|
* @default `false`
|
|
1556
1418
|
*/
|
|
1557
1419
|
freezeCurrentValues?: boolean;
|
|
@@ -1564,7 +1426,6 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1564
1426
|
* - Setting `generateAutomaticRanges` to `true` only makes sense when the Facet `field` references a numeric or date field in the index.
|
|
1565
1427
|
* - The index cannot automatically generate range values of a field generated by a query function. In such cases, you must rather use the `rangeValues` Facet parameter.
|
|
1566
1428
|
* - Automatic range generation will fail if the referenced `field` is dynamically generated by a query function.
|
|
1567
|
-
*
|
|
1568
1429
|
* @default `false`
|
|
1569
1430
|
*/
|
|
1570
1431
|
generateAutomaticRanges?: boolean;
|
|
@@ -1572,13 +1433,11 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1572
1433
|
* The maximum number of items to scan for facet values.
|
|
1573
1434
|
*
|
|
1574
1435
|
* **Note:** A high `injectionDepth` may negatively impact the facet request performance.
|
|
1575
|
-
*
|
|
1576
1436
|
* @default `100`
|
|
1577
1437
|
*/
|
|
1578
1438
|
injectionDepth?: number;
|
|
1579
1439
|
/**
|
|
1580
1440
|
* Whether the facet is expanded in the search interface at the moment of the request.
|
|
1581
|
-
*
|
|
1582
1441
|
* @default `false`
|
|
1583
1442
|
*/
|
|
1584
1443
|
isFieldExpanded?: boolean;
|
|
@@ -1589,13 +1448,11 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1589
1448
|
* **Notes:**
|
|
1590
1449
|
* - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
|
|
1591
1450
|
* - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
|
|
1592
|
-
*
|
|
1593
1451
|
* @default `8`
|
|
1594
1452
|
*/
|
|
1595
1453
|
numberOfValues?: number;
|
|
1596
1454
|
/**
|
|
1597
1455
|
* Whether to prevent Coveo ML from automatically selecting values.
|
|
1598
|
-
*
|
|
1599
1456
|
* @default `false`
|
|
1600
1457
|
*/
|
|
1601
1458
|
preventAutoSelect?: boolean;
|
|
@@ -1625,7 +1482,6 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1625
1482
|
* |0 |500 |299 |
|
|
1626
1483
|
* |500 |1000 |0 |
|
|
1627
1484
|
* |1000 |1500 |1 |
|
|
1628
|
-
*
|
|
1629
1485
|
* @default `equiprobable`
|
|
1630
1486
|
*/
|
|
1631
1487
|
rangeAlgorithm?: RestRangeAlgorithm;
|
|
@@ -1640,7 +1496,6 @@ export interface RestNumericalRangeFacetRequest {
|
|
|
1640
1496
|
*
|
|
1641
1497
|
* **Notes:**
|
|
1642
1498
|
* - The Coveo ML DNE feature only works with the `score` sort criterion.
|
|
1643
|
-
*
|
|
1644
1499
|
* @default `ascending`
|
|
1645
1500
|
*/
|
|
1646
1501
|
sortCriteria?: RestRangeFacetSortCriteria;
|
|
@@ -1656,13 +1511,11 @@ export interface RestHierarchicalFacetRequest {
|
|
|
1656
1511
|
basePath?: string[];
|
|
1657
1512
|
/**
|
|
1658
1513
|
* The values displayed by the facet in the search interface at the moment of the request.
|
|
1659
|
-
*
|
|
1660
1514
|
* @default `[]`
|
|
1661
1515
|
*/
|
|
1662
1516
|
currentValues?: RestFacetValue[];
|
|
1663
1517
|
/**
|
|
1664
1518
|
* The character to use to split field values into a hierarchical sequence.
|
|
1665
|
-
*
|
|
1666
1519
|
* @example
|
|
1667
1520
|
* For a multi-value field containing the following values:
|
|
1668
1521
|
*
|
|
@@ -1673,7 +1526,6 @@ export interface RestHierarchicalFacetRequest {
|
|
|
1673
1526
|
* For a hierarchical field containing the following values: `c;folder2;folder3;`
|
|
1674
1527
|
*
|
|
1675
1528
|
* The delimiting character is `;`.
|
|
1676
|
-
*
|
|
1677
1529
|
* @default `;`
|
|
1678
1530
|
*/
|
|
1679
1531
|
delimitingCharacter?: string;
|
|
@@ -1685,19 +1537,16 @@ export interface RestHierarchicalFacetRequest {
|
|
|
1685
1537
|
* The name of the field on which to base the facet request.
|
|
1686
1538
|
*
|
|
1687
1539
|
* **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
|
|
1688
|
-
*
|
|
1689
1540
|
* @example `author`
|
|
1690
1541
|
*/
|
|
1691
1542
|
field: string;
|
|
1692
1543
|
/**
|
|
1693
1544
|
* Whether to use `basePath` as a filter for the results.
|
|
1694
|
-
*
|
|
1695
1545
|
* @default `true`
|
|
1696
1546
|
*/
|
|
1697
1547
|
filterByBasePath?: boolean;
|
|
1698
1548
|
/**
|
|
1699
1549
|
* Whether to exclude folded result parents when estimating the result count for each facet value.
|
|
1700
|
-
*
|
|
1701
1550
|
* @default `true`
|
|
1702
1551
|
*/
|
|
1703
1552
|
filterFacetCount?: boolean;
|
|
@@ -1705,13 +1554,11 @@ export interface RestHierarchicalFacetRequest {
|
|
|
1705
1554
|
* The maximum number of items to scan for facet values.
|
|
1706
1555
|
*
|
|
1707
1556
|
* **Note:** A high `injectionDepth` may negatively impact the facet request performance.
|
|
1708
|
-
*
|
|
1709
1557
|
* @default `100`
|
|
1710
1558
|
*/
|
|
1711
1559
|
injectionDepth?: number;
|
|
1712
1560
|
/**
|
|
1713
1561
|
* Whether the facet is expanded in the search interface at the moment of the request.
|
|
1714
|
-
*
|
|
1715
1562
|
* @default `false`
|
|
1716
1563
|
*/
|
|
1717
1564
|
isFieldExpanded?: boolean;
|
|
@@ -1722,13 +1569,11 @@ export interface RestHierarchicalFacetRequest {
|
|
|
1722
1569
|
* **Notes:**
|
|
1723
1570
|
* - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
|
|
1724
1571
|
* - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
|
|
1725
|
-
*
|
|
1726
1572
|
* @default `8`
|
|
1727
1573
|
*/
|
|
1728
1574
|
numberOfValues?: number;
|
|
1729
1575
|
/**
|
|
1730
1576
|
* Whether to prevent Coveo ML from automatically selecting values.
|
|
1731
|
-
*
|
|
1732
1577
|
* @default `false`
|
|
1733
1578
|
*/
|
|
1734
1579
|
preventAutoSelect?: boolean;
|
|
@@ -1742,7 +1587,6 @@ export interface RestHierarchicalFacetRequest {
|
|
|
1742
1587
|
*
|
|
1743
1588
|
* **Notes:**
|
|
1744
1589
|
* - The Coveo ML DNE feature only works with the `score` sort criterion.
|
|
1745
|
-
*
|
|
1746
1590
|
* @default `occurrences`
|
|
1747
1591
|
*/
|
|
1748
1592
|
sortCriteria?: RestHierarchicalFacetSortCriteria;
|
|
@@ -1765,7 +1609,6 @@ export interface RestFacetValue {
|
|
|
1765
1609
|
* The value to end the range at. Must be greater (or later) than the `start` value.
|
|
1766
1610
|
*
|
|
1767
1611
|
* **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
|
|
1768
|
-
*
|
|
1769
1612
|
* @example `100`
|
|
1770
1613
|
* @example `2019/12/31@23:59:59`
|
|
1771
1614
|
*/
|
|
@@ -1774,13 +1617,11 @@ export interface RestFacetValue {
|
|
|
1774
1617
|
* Whether to include the `end` value in the range.
|
|
1775
1618
|
*
|
|
1776
1619
|
* **Note:** In an Elasticsearch index, this parameter cannot be set to `true`.
|
|
1777
|
-
*
|
|
1778
1620
|
* @default `false`
|
|
1779
1621
|
*/
|
|
1780
1622
|
endInclusive?: boolean;
|
|
1781
1623
|
/**
|
|
1782
1624
|
* Whether to prevent Coveo ML from automatically selecting the facet value.
|
|
1783
|
-
*
|
|
1784
1625
|
* @default `false`
|
|
1785
1626
|
*/
|
|
1786
1627
|
preventAutoSelect?: boolean;
|
|
@@ -1796,14 +1637,12 @@ export interface RestFacetValue {
|
|
|
1796
1637
|
* The value to start the range at.
|
|
1797
1638
|
*
|
|
1798
1639
|
* **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
|
|
1799
|
-
*
|
|
1800
1640
|
* @example `0`
|
|
1801
1641
|
* @example `2019/01/01@00:00:00`
|
|
1802
1642
|
*/
|
|
1803
1643
|
start?: string;
|
|
1804
1644
|
/**
|
|
1805
1645
|
* The current facet value state in the search interface.
|
|
1806
|
-
*
|
|
1807
1646
|
* @default `idle`
|
|
1808
1647
|
*/
|
|
1809
1648
|
state?: string;
|
|
@@ -1811,7 +1650,6 @@ export interface RestFacetValue {
|
|
|
1811
1650
|
* The facet value name.
|
|
1812
1651
|
*
|
|
1813
1652
|
* **Note:** In the case of a hierarchical facet value, this represents a single path segment.
|
|
1814
|
-
*
|
|
1815
1653
|
* @example `Alice Smith`
|
|
1816
1654
|
*/
|
|
1817
1655
|
value: string;
|
|
@@ -1824,7 +1662,6 @@ export interface RestGroupByRangeValue {
|
|
|
1824
1662
|
* The value to end the range at. Must be greater (or later) than the `start` value.
|
|
1825
1663
|
*
|
|
1826
1664
|
* **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
|
|
1827
|
-
*
|
|
1828
1665
|
* @example `100`
|
|
1829
1666
|
* @example `2019/12/31@23:59:59`
|
|
1830
1667
|
*/
|
|
@@ -1833,7 +1670,6 @@ export interface RestGroupByRangeValue {
|
|
|
1833
1670
|
* Whether to include the `end` value in the range.
|
|
1834
1671
|
*
|
|
1835
1672
|
* **Note:** In an Elasticsearch index, this parameter cannot be set to `true`.
|
|
1836
|
-
*
|
|
1837
1673
|
* @default `false`
|
|
1838
1674
|
*/
|
|
1839
1675
|
endInclusive?: boolean;
|
|
@@ -1841,7 +1677,6 @@ export interface RestGroupByRangeValue {
|
|
|
1841
1677
|
* The label to associate with the range.
|
|
1842
1678
|
*
|
|
1843
1679
|
* **Note:** Not currently leveraged.
|
|
1844
|
-
*
|
|
1845
1680
|
* @example `0 - 100`
|
|
1846
1681
|
* @example `In 2019`
|
|
1847
1682
|
*/
|
|
@@ -1850,7 +1685,6 @@ export interface RestGroupByRangeValue {
|
|
|
1850
1685
|
* The value to start the range at.
|
|
1851
1686
|
*
|
|
1852
1687
|
* **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
|
|
1853
|
-
*
|
|
1854
1688
|
* @example `0`
|
|
1855
1689
|
* @example `2019/01/01@00:00:00`
|
|
1856
1690
|
*/
|
|
@@ -1861,7 +1695,6 @@ export interface RestGroupByRequest {
|
|
|
1861
1695
|
* The query expression that should override the advanced query expression on which the Group By operation is being performed (see the `aq` query parameter).
|
|
1862
1696
|
*
|
|
1863
1697
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
1864
|
-
*
|
|
1865
1698
|
* @example `@year==2017`
|
|
1866
1699
|
*/
|
|
1867
1700
|
advancedQueryOverride?: string;
|
|
@@ -1871,7 +1704,6 @@ export interface RestGroupByRequest {
|
|
|
1871
1704
|
* See also the `completeFacetWithStandardValues` Group By operation parameter.
|
|
1872
1705
|
*
|
|
1873
1706
|
* If you do not explicitly specify an array of `allowedValues`, or if you specify an empty array, all field values are allowed.
|
|
1874
|
-
*
|
|
1875
1707
|
* @example
|
|
1876
1708
|
* ```json
|
|
1877
1709
|
* [
|
|
@@ -1889,7 +1721,6 @@ export interface RestGroupByRequest {
|
|
|
1889
1721
|
* See also the `allowedValues` Group By operation parameter.
|
|
1890
1722
|
*
|
|
1891
1723
|
* If you do not explicitly specify a pattern type, the legacy pattern is used by default, which only support trailing wildcards.
|
|
1892
|
-
*
|
|
1893
1724
|
* @example `regex`
|
|
1894
1725
|
*/
|
|
1895
1726
|
allowedValuesPatternType?: string;
|
|
@@ -1897,7 +1728,6 @@ export interface RestGroupByRequest {
|
|
|
1897
1728
|
* Whether to complete the Group By operation result set with standard values.
|
|
1898
1729
|
*
|
|
1899
1730
|
* If you set this parameter to `true` and the number of specified `allowedValues` is lower than the `maximumNumberOfValues`, the Group By operation also attempts to returns standard values until the result set contains the `maximumNumberOfValues`.
|
|
1900
|
-
*
|
|
1901
1731
|
* @default `false`
|
|
1902
1732
|
*/
|
|
1903
1733
|
completeFacetWithStandardValues?: boolean;
|
|
@@ -1911,7 +1741,6 @@ export interface RestGroupByRequest {
|
|
|
1911
1741
|
* The query expression that should override the constant query expression on which the Group By operation is being performed (see the `cq` query parameter).
|
|
1912
1742
|
*
|
|
1913
1743
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
1914
|
-
*
|
|
1915
1744
|
* @example `@filetype==forumpost`
|
|
1916
1745
|
*/
|
|
1917
1746
|
constantQueryOverride?: string;
|
|
@@ -1919,7 +1748,6 @@ export interface RestGroupByRequest {
|
|
|
1919
1748
|
* The query expression that should override the disjunction query expression on which the Group By operation is being performed (see the `dq` query parameter).
|
|
1920
1749
|
*
|
|
1921
1750
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
1922
|
-
*
|
|
1923
1751
|
* @example `@date=2016-12-01..2016-12-31`
|
|
1924
1752
|
*/
|
|
1925
1753
|
disjunctionQueryOverride?: string;
|
|
@@ -1927,13 +1755,11 @@ export interface RestGroupByRequest {
|
|
|
1927
1755
|
* The name of the field on which to perform the Group By operation. The operation returns a Group By value for each distinct value of this field found in the query result items.
|
|
1928
1756
|
*
|
|
1929
1757
|
* **Note:** You must ensure that the **Facet** option is enabled for this field in your index (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
|
|
1930
|
-
*
|
|
1931
1758
|
* @example `@author`
|
|
1932
1759
|
*/
|
|
1933
1760
|
field: string;
|
|
1934
1761
|
/**
|
|
1935
1762
|
* Whether to exclude folded result parents when estimating the result count for each facet value.
|
|
1936
|
-
*
|
|
1937
1763
|
* @default `true`
|
|
1938
1764
|
*/
|
|
1939
1765
|
filterFacetCount?: boolean;
|
|
@@ -1946,7 +1772,6 @@ export interface RestGroupByRequest {
|
|
|
1946
1772
|
* - Setting `generateAutomaticRanges` to `true` only makes sense when the Group By `field` references a numeric or date field in the index.
|
|
1947
1773
|
* - The index cannot automatically generate range values of a field generated by a query function. In such cases, you must rather use the `rangeValues` Group By parameter.
|
|
1948
1774
|
* - Automatic range generation will fail if the referenced `field` is dynamically generated by a query function.
|
|
1949
|
-
*
|
|
1950
1775
|
* @default `false`
|
|
1951
1776
|
*/
|
|
1952
1777
|
generateAutomaticRanges?: boolean;
|
|
@@ -1954,13 +1779,11 @@ export interface RestGroupByRequest {
|
|
|
1954
1779
|
* The maximum number of query result items to scan for Group By values.
|
|
1955
1780
|
*
|
|
1956
1781
|
* **Note:** Specifying a high `injectionDepth` value can negatively impact query performance.
|
|
1957
|
-
*
|
|
1958
1782
|
* @default `1000`
|
|
1959
1783
|
*/
|
|
1960
1784
|
injectionDepth?: number;
|
|
1961
1785
|
/**
|
|
1962
1786
|
* The maximum number of values the Group By operation should return.
|
|
1963
|
-
*
|
|
1964
1787
|
* @default `10`
|
|
1965
1788
|
*/
|
|
1966
1789
|
maximumNumberOfValues?: number;
|
|
@@ -1968,7 +1791,6 @@ export interface RestGroupByRequest {
|
|
|
1968
1791
|
* The query expression that should override the basic query expression on which the Group By operation is being performed (see the `q` query parameter).
|
|
1969
1792
|
*
|
|
1970
1793
|
* **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
|
|
1971
|
-
*
|
|
1972
1794
|
* @example `Coveo Cloud V2 Platform`
|
|
1973
1795
|
*/
|
|
1974
1796
|
queryOverride?: string;
|
|
@@ -1990,7 +1812,6 @@ export interface RestGroupByRequest {
|
|
|
1990
1812
|
* - `computedfieldascending`/`computedfielddescending`: sort on the value of the first computed field for each Group By operation result (see the `ComputedFields` Group By parameter).
|
|
1991
1813
|
* - `chisquare`: sort based on the relative frequency of field values in the query result set compared to their frequency in the entire index. This means that a field value that does not appear often in the index, but does appear often in the query result set will tend to appear higher.
|
|
1992
1814
|
* - `nosort`: do not sort the results of the Group By operation. The field values will be appear in a random order.
|
|
1993
|
-
*
|
|
1994
1815
|
* @default `score`
|
|
1995
1816
|
*/
|
|
1996
1817
|
sortCriteria?: RestGroupBySortCriteria;
|
|
@@ -2007,7 +1828,6 @@ export interface RestHierarchicalFacetValue {
|
|
|
2007
1828
|
children?: RestHierarchicalFacetValue[];
|
|
2008
1829
|
/**
|
|
2009
1830
|
* Whether to prevent Coveo ML from automatically selecting the facet value.
|
|
2010
|
-
*
|
|
2011
1831
|
* @default `false`
|
|
2012
1832
|
*/
|
|
2013
1833
|
preventAutoSelect?: boolean;
|
|
@@ -2021,7 +1841,6 @@ export interface RestHierarchicalFacetValue {
|
|
|
2021
1841
|
retrieveCount?: number;
|
|
2022
1842
|
/**
|
|
2023
1843
|
* The current facet value state in the search interface.
|
|
2024
|
-
*
|
|
2025
1844
|
* @default `idle`
|
|
2026
1845
|
*/
|
|
2027
1846
|
state?: string;
|
|
@@ -2029,7 +1848,6 @@ export interface RestHierarchicalFacetValue {
|
|
|
2029
1848
|
* The facet value name.
|
|
2030
1849
|
*
|
|
2031
1850
|
* **Note:** In the case of a hierarchical facet value, this represents a single path segment.
|
|
2032
|
-
*
|
|
2033
1851
|
* @example `Alice Smith`
|
|
2034
1852
|
*/
|
|
2035
1853
|
value?: string;
|
|
@@ -2039,7 +1857,6 @@ export interface RestQueryFunctionRequest {
|
|
|
2039
1857
|
* The name of the dynamic, temporary field in which to store the query function expression output.
|
|
2040
1858
|
*
|
|
2041
1859
|
* **Note:** The `fieldName` value must not correspond to an existing field in the index.
|
|
2042
|
-
*
|
|
2043
1860
|
* @example `numberoflikesplusone`
|
|
2044
1861
|
*/
|
|
2045
1862
|
fieldName: string;
|
|
@@ -2049,7 +1866,6 @@ export interface RestQueryFunctionRequest {
|
|
|
2049
1866
|
* **Notes:**
|
|
2050
1867
|
* - The `function` expression can be defined using the ExprTk library syntax, but control and loop structures (e.g., if-then-else, while loop, etc.) are **not** supported.
|
|
2051
1868
|
* - If the `function` expression references a numeric field, enable the **Use cache for computed fields** option on that field to speed up evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
|
|
2052
|
-
*
|
|
2053
1869
|
* @example `@numberoflikes+1`
|
|
2054
1870
|
*/
|
|
2055
1871
|
function: string;
|
|
@@ -2072,7 +1888,6 @@ export interface RestRankingFunctionRequest {
|
|
|
2072
1888
|
* - `DAY`: A value corresponding to the duration of a day.
|
|
2073
1889
|
*
|
|
2074
1890
|
* **Tip:** If your query ranking function expression references certain numeric fields, you should ensure that the **Use cache for computed fields** option is enabled for each of those fields in order to speed up evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
|
|
2075
|
-
*
|
|
2076
1891
|
* @example `-sqrt(dist(@longitude, @latitude, 46.8167, -71.2167))`
|
|
2077
1892
|
*/
|
|
2078
1893
|
expression: string;
|
|
@@ -2080,7 +1895,6 @@ export interface RestRankingFunctionRequest {
|
|
|
2080
1895
|
* The maximum boost this query ranking function can add to the ranking score of any given query result.
|
|
2081
1896
|
*
|
|
2082
1897
|
* This property only has a meaning if `normalizeWeight` is set to `true`.
|
|
2083
|
-
*
|
|
2084
1898
|
* @default `600`
|
|
2085
1899
|
*/
|
|
2086
1900
|
modifier?: number;
|
|
@@ -2088,7 +1902,6 @@ export interface RestRankingFunctionRequest {
|
|
|
2088
1902
|
* Whether to normalize the ranking score boosts resulting from the evaluation of this query ranking function using the standard index scale.
|
|
2089
1903
|
*
|
|
2090
1904
|
* Unless you want to completely override the index ranking and use the results of this query ranking function directly to boost the ranking scores of query results, you should set this to `true`.
|
|
2091
|
-
*
|
|
2092
1905
|
* @default `false`
|
|
2093
1906
|
*/
|
|
2094
1907
|
normalizeWeight?: boolean;
|
|
@@ -2099,7 +1912,6 @@ export interface RestRankingFunctionRequest {
|
|
|
2099
1912
|
export interface RestUserActionsParameters {
|
|
2100
1913
|
/**
|
|
2101
1914
|
* The user ID or visitor ID to retrieve user actions for.
|
|
2102
|
-
*
|
|
2103
1915
|
* @example `asmith@example.com`
|
|
2104
1916
|
* @example `c7ab60e2-e6b8-41e8-be6a-ad5c8edc662e`
|
|
2105
1917
|
*/
|
|
@@ -2116,7 +1928,6 @@ export interface ItemPreviewHtmlParameters extends RestQueryParams {
|
|
|
2116
1928
|
page?: number;
|
|
2117
1929
|
/**
|
|
2118
1930
|
* The approximate number of bytes to request in the HTML response.
|
|
2119
|
-
*
|
|
2120
1931
|
* @default 0 // meaning that the entire HTML document is requested
|
|
2121
1932
|
*/
|
|
2122
1933
|
requestedOutputSize?: number;
|
|
@@ -2140,7 +1951,6 @@ export interface RestHierarchicalFacetResponseValue {
|
|
|
2140
1951
|
path: string[];
|
|
2141
1952
|
/**
|
|
2142
1953
|
* The current facet value state in the search interface.
|
|
2143
|
-
*
|
|
2144
1954
|
* @default 'idle'
|
|
2145
1955
|
*/
|
|
2146
1956
|
state: 'idle' | 'selected' | 'excluded';
|
|
@@ -2176,7 +1986,6 @@ export interface RestFacetResultValue extends RestHierarchicalFacetResponseValue
|
|
|
2176
1986
|
end?: string | number;
|
|
2177
1987
|
/**
|
|
2178
1988
|
* Whether to include the `end` value in the range.
|
|
2179
|
-
*
|
|
2180
1989
|
* @default false
|
|
2181
1990
|
*/
|
|
2182
1991
|
endInclusive?: boolean;
|
|
@@ -2189,7 +1998,6 @@ export interface RestFacetResultValue extends RestHierarchicalFacetResponseValue
|
|
|
2189
1998
|
export interface RestFacetResult {
|
|
2190
1999
|
/**
|
|
2191
2000
|
* The name of the field on which the facet is based.
|
|
2192
|
-
*
|
|
2193
2001
|
* @example 'author'
|
|
2194
2002
|
*/
|
|
2195
2003
|
field: string;
|
|
@@ -2422,7 +2230,6 @@ export interface RestQueryResult {
|
|
|
2422
2230
|
export interface RestSuggestedFacetValue {
|
|
2423
2231
|
/**
|
|
2424
2232
|
* A DNE facet value suggestion.
|
|
2425
|
-
*
|
|
2426
2233
|
* @example 'Alice Smith'
|
|
2427
2234
|
*/
|
|
2428
2235
|
value: string;
|
|
@@ -2436,7 +2243,6 @@ export interface RestSuggestedFacetValue {
|
|
|
2436
2243
|
export interface RestSuggestedFacet {
|
|
2437
2244
|
/**
|
|
2438
2245
|
* The name of the field on which the DNE facet suggestion is based.
|
|
2439
|
-
*
|
|
2440
2246
|
* @example 'author'
|
|
2441
2247
|
*/
|
|
2442
2248
|
field: string;
|