-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: shortcuts <[email protected]>
- Loading branch information
Showing
24 changed files
with
448 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
appId: | ||
type: apiKey | ||
in: header | ||
name: X-Algolia-Application-Id | ||
name: x-algolia-application-id | ||
description: Your Algolia application ID. | ||
apiKey: | ||
type: apiKey | ||
in: header | ||
name: X-Algolia-API-Key | ||
name: x-algolia-api-key | ||
description: | | ||
Your Algolia API key with the necessary permissions to make the request. | ||
Permissions are controlled through access control lists (ACL) and access restrictions. | ||
The required ACL to make a request is listed in each endpoint's reference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
specs/recommend/common/schemas/FrequentlyBoughtTogetherQuery.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
boughtTogetherQuery: | ||
title: Frequently bought together | ||
allOf: | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
- $ref: '#/frequentlyBoughtTogether' | ||
|
||
frequentlyBoughtTogether: | ||
type: object | ||
properties: | ||
model: | ||
$ref: '#/fbtModel' | ||
objectID: | ||
$ref: '../../../common/parameters.yml#/objectID' | ||
required: | ||
- model | ||
- objectID | ||
|
||
fbtModel: | ||
type: string | ||
description: | | ||
Frequently bought together model. | ||
This model recommends items that have been purchased within 1 day with the item with the ID `objectID`. | ||
enum: [bought-together] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
lookingSimilarQuery: | ||
title: Looking similar | ||
allOf: | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
- $ref: '#/lookingSimilar' | ||
|
||
lookingSimilar: | ||
type: object | ||
properties: | ||
model: | ||
$ref: '#/lookingSimilarModel' | ||
objectID: | ||
$ref: '../../../common/parameters.yml#/objectID' | ||
fallbackParameters: | ||
$ref: './RecommendationsRequest.yml#/fallbackParams' | ||
required: | ||
- model | ||
- objectID | ||
|
||
lookingSimilarModel: | ||
type: string | ||
description: | | ||
Looking similar model. | ||
This model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index. | ||
enum: [looking-similar] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
RecommendRule: | ||
type: object | ||
description: Recommend rule. | ||
additionalProperties: false | ||
properties: | ||
_metadata: | ||
type: object | ||
description: Rule metadata. | ||
properties: | ||
lastUpdate: | ||
$ref: '../../../common/responses/common.yml#/updatedAt' | ||
objectID: | ||
$ref: '../../../common/parameters.yml#/ruleID' | ||
condition: | ||
$ref: '#/Condition' | ||
consequence: | ||
$ref: '#/Consequence' | ||
description: | ||
type: string | ||
description: Description of the rule's purpose. This can be helpful for display in the Algolia dashboard. | ||
example: 'Display a promotional banner' | ||
enabled: | ||
type: boolean | ||
default: true | ||
description: Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time. | ||
|
||
Condition: | ||
type: object | ||
description: | | ||
Condition that triggers the rule. | ||
If not specified, the rule is triggered for all recommendations. | ||
properties: | ||
filters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/filters' | ||
context: | ||
$ref: '../../../search/paths/rules/common/schemas.yml#/context' | ||
|
||
Consequence: | ||
type: object | ||
description: Effect of the rule. | ||
properties: | ||
hide: | ||
$ref: '#/HideConsequence' | ||
promote: | ||
$ref: '#/PromoteConsequence' | ||
params: | ||
$ref: '#/ParamsConsequence' | ||
|
||
HideConsequence: | ||
type: array | ||
description: Exclude items from recommendations. | ||
minItems: 1 | ||
items: | ||
$ref: '#/HideConsequenceObject' | ||
|
||
HideConsequenceObject: | ||
type: object | ||
description: Object ID of the recommendation you want to exclude. | ||
properties: | ||
objectID: | ||
$ref: '../../../common/parameters.yml#/objectID' | ||
|
||
PromoteConsequence: | ||
type: array | ||
description: Place items at specific positions in the list of recommendations. | ||
minItems: 1 | ||
items: | ||
$ref: '#/PromoteConsequenceObject' | ||
|
||
PromoteConsequenceObject: | ||
type: object | ||
description: Object ID and position of the recommendation you want to pin. | ||
properties: | ||
objectID: | ||
$ref: '../../../common/parameters.yml#/objectID' | ||
position: | ||
type: integer | ||
description: Index in the list of recommendations where to place this item. | ||
minimum: 0 | ||
|
||
ParamsConsequence: | ||
type: object | ||
description: Filter or boost recommendations matching a facet filter. | ||
properties: | ||
automaticFacetFilters: | ||
type: array | ||
description: Filter recommendations that match or don't match the same `facet:facet_value` combination as the viewed item. | ||
items: | ||
$ref: '#/AutoFacetFilter' | ||
filters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/filters' | ||
optionalFilters: | ||
type: array | ||
description: | | ||
Filters to promote or demote records in the search results. | ||
Optional filters work like facet filters, but they don't exclude records from the search results. | ||
Records that match the optional filter rank before records that don't match. | ||
Matches with higher weights (`<score=N>`) rank before matches with lower weights. | ||
If you're using a negative filter `facet:-value`, matching records rank after records that don't match. | ||
items: | ||
type: string | ||
example: | ||
- 'category:books<score=1>' | ||
- 'category:-movies<score=1>' | ||
|
||
AutoFacetFilter: | ||
type: object | ||
description: Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included. | ||
properties: | ||
facet: | ||
type: string | ||
description: Facet attribute. | ||
negative: | ||
type: boolean | ||
description: | | ||
Whether the filter is negative. | ||
If true, recommendations must not have the same value for the `facet` attribute. | ||
If false, recommendations must have the same value for the `facet` attribute. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
dabdd02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://api-clients-automation.netlify.app as production
🚀 Deployed on https://6613e8b65d027015636677b3--api-clients-automation.netlify.app