This documentation is generated by Sensefuel.
AI Search & Product Discovery platform that makes ecommerce search personal.
api.sensefuel.live.GET/POST methods.window.sensefuel_a038457e.window.sensefuel_a038457e interface to become available.Discovery or Recommend APIs.path, SameSite, Expires, Domain, and other cookie options to comply with your cookie management policy (MDN Documentation).searchnavigationlanding_pageproduct_selectionproduct_sheetsuggested_keywordszero_resultssettings action provides you access to information related to the settings of certain features that business users have configured : user sorting, spotlights, labels, etc.terms: search terms associated with articles/contentssearch_scope: scopes in which articles are ventilatedsearch_attributes: article characteristicsearch_product: article IDs or referencescontext and flavor: for suggestion, call context and usage descriptionsegments: User segment to scope the searchtrack_id : session identifier, generated at each new web session or opening of the applicationuser_id : unique user identifier, valid between multiple sessions. Otherwise (refusal of consent for example), you can send the value of the track_id.store_id : apply search to a specific seller/dealer/store.actions, you can choose the most appropriate query.items: recovery of articles that match the queryfacets: recovery of filters and filter values related to the articlesscope_pages: proposal of scopes associated with articlesunivers_pages: proposal of universes associated with articlesspotlights: spotlights associated with articlesacp: completion suggestions of the search termreferences: recovery of articles that match the query by their reference(s)shortcuts: recovery of redirects that match the querycontents_kicker: content types suggestions (❕ only for Sensefuel MAX)contents_items: recovery of contents that match the query (❕ only for Sensefuel MAX)contents_facets: recovery of filters and filter values related to the contents (❕ only for Sensefuel MAX)suggestions: recovery of suggestions of searches, articles, scopes, spotlightssuggested_keywords, suggested_scope_pages, suggested_spotlights and suggested_shortcuts: get search, scopes, spotlights and shortcuts suggestionsshowcases: get showcases related to requestspell_check: recovery of the corrected term which was automatically used for the searchbag: returns information sent in the API callstatistics: returns information related to the query executiontracking module is dedicated to the personalization of calls.settings module is systematically sent in the results in order to indicate if parameters which are required to correctly interpret the results have changed.user_actionsapply_filters: apply a filterapply_scopes: select a scopeapply_spotlights: use a spotlightapply_content_type: filter the content search on a specific content type (❕ only for Sensefuel MAX)apply_content_filters: apply a filter on contents (❕ only for Sensefuel MAX)| User action | Module |
|---|---|
apply_filters | facets |
apply_scopes | scope_pages |
apply_spotlights | spotlights |
apply_content_filters | contents_facets |
terms query)items module);facets module).terms query, items module);apply_filters user action);items module);facets module).https protocol.https://api.sensefuel.live/discovery/96cd2378-exemple-1-b92af0700c54/{action}curl --location 'https://api.sensefuel.live/discovery/96cd2378-exemple-1-b92af0700c54/{action}' \
--header 'Content-Type: application/json' \
--header 'x-api-key: 7bd7282e-exemple-2-b0aeb0a59382' \
--data '{
...
}'action you want to execute.POST method.JSON document. Therefore, among the headers call, you need to provide the Content-type: 'application/json'.JSON document.pr for present relevance. Based on our AI algorithms, value 0 means that you should display the associated data, else 1.status code HTTP returned in response allows you to identify the correct execution of the processes or the error encountered if any.JSON document, with theerror member as root.POST https://api.sensefuel.live/discovery/{site-uuid}/{action}| Name | Description |
|---|---|
site-uuid | String -- Site ID |
action | String -- played action |
| Nom | Description |
|---|---|
query | Contains base queries and querie modifiers |
user_actions | Apply user actions on a result |
modules | Contains the modules carrying the desired elements and the associated information in the response |
modules containing the modules specified during the call (items in this example) and the corresponding results.terms: searches for the given termssearch_scope: searches in a given categoriessearch_attributes: searches in the characteristics of an articlesearch_product: searches articles by identifierstermsexpression member corresponding to the expression entered by the user.bypass_spellcheck member with the value true, such as in the example below:search_scopescope corresponding to the requested category, supplied in your catalog by the field g:product_typescope_id corresponding to the requested category ID, supplied in your catalog by the field sf:scope_idsearch_attributessearch_attributes, if the item respects this clause, is marked as eligible.| Clause | Description |
|---|---|
must | Eligible items respect all the clauses (intersection) |
should | Articles found respect at least minimum_should_match clauses (union) |
match_attribute_valuematch_attribute_rangematch_attribute_range contains at least one clause among:value_gt strictly biggervalue_gte bigger or equalvalue_lt strictly smallervalue_lte smaller or equalsearch_attributessearch_attributes base query can itself be used as a clause in a search_attributes base query.mustclause_1, clause_2 and clause_3.clause_1 AND clause_2 AND clause_3shouldclause_1, clause_2 and clause_3.clause_1 OR clause_2 OR clause_3must and shouldclause_1, clause_2, clause_3 and either to clause_4 or either to clause_5 or either to clause_6.(clause_1 AND clause_2 AND clause_3) AND (clause_4 OR clause_5 OR clause_6)minimum_should_match is 3, then this is equivalent to doing an AND on all the clauses: (clause_1 AND clause_2 AND clause_3) AND (clause_4 AND clause_5 AND clause_6)minimum_should_match is 0, then this is equivalent to doing an AND on must clauses only: (clause_1 AND clause_2 AND clause_3)minimum_should_match is 2, then this is equivalent to searching for the validation of 2 out 3 of the clauses of should: (clause_1 AND clause_2 AND clause_3) AND ( (clause_4 AND clause_5) OR (clause_4 AND clause_6) OR (clause_5 AND clause_6))clause_brand_1 or clause_brand_2 relating to the same attribute brand.clause_brand_1 or the set associated to clause_brand_2search_productcontextknown_user, boolean value when user has a suggest-ready personalization profile.known_user to true where it is false, suggester will behave as known_user set to falseproduct_type is a focus to a product_type, value must be known in your catalog, related to g:product_type attribute.product_url is a focus to a product, value (an url) value must be known in your catalog, related to g:link or g:canonical_linksuggested_* actions details its usage and outputs.user_id and track_iduser_id et track_id between the search API and the Sensefuel™ tag.user_id (or use an available user_id),track_id at each new session or app opening.user_id and track_id.query.store_idcode parameter must be a string corresponding to a seller ID.items module, data of each article will be completed with the following information:sf:offer: contains data specific to the selected seller for the article presented within the product's vignet."sf:offer": {"use": false} in the items module.sf:stats: contains price-related data for the following contexts."sf:stats": {"use": false} in the items module.no_seller_all_article : "catalog" price data for all product's articlesno_seller_current_article : "catalog" price data for the article presented within the product's vignetcurrent_seller_all_article : price data for the selected seller and all product's articlescurrent_seller_current_article : price data for the selected seller and the article presented within the product's vignetall_seller_all_article : all sellers price data for all product's articlesall_seller_current_article : all sellers price data for the article presented in the product's vignetflavorsuggested_* actions.suggested_keywords action, only one value is available: search-home.search-home should be use when a user will start a new search phase, when he focuses on search bar.segmentsuser_actionsapply_filters: apply a filterapply_scopes: select a scopeapply_spotlights: use a spotlightapply_content_type: filter the content search on a specific content type (❕ only for Sensefuel MAX, explained on the section dedicated to contents)apply_content_filters: apply a filter on contents (❕ only for Sensefuel MAX, explained on the section dedicated to contents)| User action | Module |
|---|---|
apply_filters | facets |
apply_scopes | scope_pages |
apply_spotlights | spotlights |
apply_filtersfacet module (described below).facets module, if a filter is applied to a facet, the values returned in this facet are those of the base queries, by appliying all the other filters except this one.apply_scopesscope pages module, in order to restrict the search to the selected scope.path member, as sent in response to useing scope_pages module.apply_spotlightsspotlightsmodule, in order to restrict the search to the selected spotlight.items: it allows to retrieve articles corresponding to an expression entered by a user.itemsquery).| Call options | Description | Type | Default value |
|---|---|---|---|
from | Index of the first product to return, for pagination | Positive integer | 0 |
size | Maximum number of products, for pagination | Positive integer | 60 |
fields | List of desired attributes in articles | Array of strings 1 | all configured attributes |
variants_fields | List of desired attributes for items of a product | Array of strings 2 | all configured attributes |
sort | Replaces the sort by relevance (by default) with another sort | Object containing the attribute and direction. The only allowed values are accessible via a call to the settings of the API 3 | none |
items module will contain the following fields:total | Total number of products matching the query | Positive integer |parts | List of products corresponding to the query | Array of objects containing the list of attributes parameterized or explicitly requested (fields) |forced_zr | Optional: response was enforced to 0 results | Boolean |source | Optionnel: indique si la réponse vient du flux offre ou du flux catalogue | String : "offers" ou "catalog" | |facetsquery).| Options d'appel | Description | Type | Default value |
|---|---|---|---|
fields | List of desired attributes to filter | Array of character strings 1 | All configured attributes |
facets module will contain the following fields :| Field | Description | Type |
|---|---|---|
parts | Array of elements, each of them has a unique member of the attribute name set as facet. | Array of elements |
type value specified for each facet:multivalued: it provides an array of applicable values with for each of them the number of associated elements.slider type is suitable for constructing price filters as a range of values. Its different terminals prevent a selection that will not return any results.universe_pagesuniverse_pages module will provide an array containing all possible top level categories.scope_pagesscope_pages module will provide an array containing all possible categories.spotlightsspotlights module will provide an array with eligible spotlights.spotlights module response will be empty if you don't ask for items module in your request.matchedParts field contains spotlights that specifically match the user's search or navigation criteria. The parts field contains spotlights that are not contextualised to the current search.parts field is deprecated.acpacp module will provide an array with eligible suggestions (4 max.).references| Call options | Description | Type | Default value |
|---|---|---|---|
size | Maximum number of references, for pagination | Positive integer | 5 |
references module will provide an array with 32 references maximum.shortcutsshortcuts module will provide an array with 32 shortcuts maximum. It will contains the following fields:| Fields | Description | Type |
|---|---|---|
parts | List of shortcuts data matched by keywords | Array of objects Shortcut containing data about the shortcut |
Shortcut.id | Id of the shortcut | String |
Shortcut.label | Label of the shortcut | String |
Shortcut.url | Redirect URL | String |
Shortcut.promotion | "default", "prefered" or "pinned" according to the "promote" module configuration | String |
Shortcut.score | Relevance score | Float |
Shortcut.matchedKeywords | Number of keywords matched by the search terms | Integer |
keywords | List of keywords corresponding to the query | String[] |
highlighted | List of highlighted shortcuts | Array of objects Shortcut highlighted |
HighlightedShortcut.id | Id of the highlighted shortcut | String |
HighlightedShortcut.name | Name of the highlighted shortcut | String |
HighlightedShortcut.score | Relevance score | Float |
HighlightedShortcut.matchedKeywords | Number of keywords matched by the search terms | Integer |
HighlightedShortcut.promotion | "default", "prefered" or "pinned" according to the "promote" module configuration | String |
HighlightedShortcut.highlighted | Content of the shortcut highlighting: title, description, iconUrl, colors, etc. | Object |
HighlightedShortcut.highlighted.use | Indicates if highlighting is enabled | Boolean |
HighlightedShortcut.highlighted.title | Title of the highlighted shortcut | String |
HighlightedShortcut.highlighted.description | Description of the highlighted shortcut | String |
HighlightedShortcut.highlighted.iconUrl | Icon URL of the highlighted shortcut | String |
HighlightedShortcut.highlighted.color | Text color of the highlighted shortcut | String |
HighlightedShortcut.highlighted.backgroundColor | Background color of the highlighted shortcut | String |
HighlightedShortcut.highlighted.size | Size of the highlighted shortcut ("S", "M", "L", etc.) | String |
HighlightedShortcut.highlighted.horizontal | Horizontal display configuration | Object |
HighlightedShortcut.highlighted.horizontal.hideIcon | Hide icon in horizontal display | Boolean |
HighlightedShortcut.highlighted.horizontal.hideDescription | Hide description in horizontal display | Boolean |
HighlightedShortcut.destinations | List of destinations associated with this highlighted shortcut | Array of objects Destinations |
Destination.id | Id of the destination | String |
Destination.url | URL of the destination | String |
Destination.label | Label of the destination | String |
Destination.highlightedDisplay | Specific display information for the highlighted destination | Object |
Destination.highlightedDisplay.label | Label of the highlighted destination | String |
Destination.highlightedDisplay.isDisplayed | Indicates if the destination is displayed | Boolean |
spell_checkspell_check is a utility module.bypass_spellcheck member to true as seen in the terms of the query.bagbag is a utility module.bag can in this case be used to transmit a key during the call (generated by you, for example a timestamp) which will allow you in return to identify the response to be processed.statisticsstatistics is a utility module, it provides information related to the execution of the query.tracking126ada9239a744ae83a6173ff0bf81ed. As this cookie can evolve (add / remove key), it is important to systematically browse all of its content in order to retrieve all the key / value pairs.track_id member,payload member, fundamental for the user's real-time behavioral management.user_id and track_id are mandatorypayload associated with the track_id (typically in session store).payload value associated with the track_id (typically in session store).settingssettings module is always present in case of a valid answer.id attribute carries a unique value which represents the parameters necessary for the interpretation of the results.settings action to properly interpret the results and retrieve the new id.showcases| Call options | Description | Type | Default value |
|---|---|---|---|
fields | List of desired attributes in articles | Array of strings 1 | all configured attributes |
variants_fields | List of desired attributes for items of a product | Array of strings 2 | all configured attributes |
showcases will provide an object with an array of typeterms type.expression.contents_kickerterms.| Call option | Description | Type | Default value |
|---|---|---|---|
size | Maximum number of contents to suggest per type of content | Positive integer | 1 |
size, sorted by relevance, for each type of content.contents_kicker module will contain the following fields:| Fields | Description | Type |
|---|---|---|
total | Total number of contents corresponding to the query, all types included | Positive integer |
found_types | List of types of contents responding to expression | Array of object FoundContentTypeObject containing content types and related content suggestions |
FoundContentTypeObject.total | Total number of contents for the content type found | Positive integer |
FoundContentTypeObject.type | Name of the content type found | String |
FoundContentTypeObject.top_hits | List of suggested contents for the found type | Array of objects representing the contents to be returned, of considered type |
contents_itemsterms.| Call option | Description | Type | Default value |
|---|---|---|---|
from | Index of the first content to return, for pagination | Positive integer | 0 |
size | Maximum number of contents to return, for pagination | Positive integer | 16 |
contents_items module will contain the following fields:| Fields | Description | Type |
|---|---|---|
total | Total number of contents corresponding to the query, all types included | Positive integer |
parts | List of contents corresponding to expression | Array of objects representing the contents to be returned. The content type is specified with the special attribute @type |
apply_content_typecontents_kicker module, and applies to the results of content_items module only.contents_facetsterms.contents_facets module will contain the following fields:| Fields | Description | Type |
|---|---|---|
parts | List of facets responding to expression | Array of objects FoundContentFacet representing the applicable facets |
FoundContentFacet.facet_name | Facet name in Type.Attribut format | String |
FoundContentFacet.score | Facet importance score | Integer |
FoundContentFacet.count | Nomber of contents that can respond to the facet | Integer |
FoundContentFacet.parts | Array of objects representing each possible value of the facet, with an associatedscore of importance and count of associated contents | Array of objects |
apply_content_filterscontents_facets module describe above.contents_facets module, if we apply a filter on a facet, the values returned in this facet are those of the requested expression applying all other filters except this one.suggested_keywords| Call options | Description | Type | Default value |
|---|---|---|---|
size | Maximum number of keywords | Positive integer | 4 |
suggested_products | Products suggestions related to each keywords (optional) | Object | undefined |
suggested_products.size | Maximum number of products | Positive integer | 4 |
suggested_products.fields | List of desired attributes in articles | Array of strings 1 | all configured attributes |
suggested_products.variants_fields | List of desired attributes for items of a product | Array of strings 2 | all configured attributes |
suggested_keywords module will contain an array of suggested keywords and, if asked, products.suggested_scope_pagessuggested_keywords.| Call options | Description | Type | Default value |
|---|---|---|---|
size | Maximum number of scopes | Positive integer | 4 |
suggested_scope_pages module will provide an array of categories.suggested_spotlightssuggested_keywords.| Call options | Description | Type | Default value |
|---|---|---|---|
size | Maximum number of spotlights | Positive integer | 4 |
suggested_spotlights module will provide an array with suggested spotlights.suggested_shortcutssuggested_keywords.| Call options | Description | Type | Default value |
|---|---|---|---|
size | Maximum number of shortcuts | Positive integer | 4 |
suggested_shortcuts module will provide an array with size shortcuts maximum. It will contain the following fields:| Fields | Description | Type |
|---|---|---|
parts | List of shortcuts data matched by keywords | Array of objects Shortcut containing data about the shortcut |
Shortcut.id | Id of the shortcut | String |
Shortcut.label | Label of the shortcut | String |
Shortcut.url | Redirect URL | String |
Shortcut.promotion | "default", "preferred" or "pinned" according to the "promote" module configuration | String |
Shortcut.score | Relevance score | Float |
Shortcut.matched_keywords | Number of keywords matched by the search terms | Integer |
keywords | List of keywords corresponding to the query | String[] |
search actionsearch action is used to obtain the results associated with (among other things) an expression searched by a user.| Base query | Use |
|---|---|
terms | Yes - mandatory |
search_scope | Yes |
search_attributes | Yes |
search_product | No |
context | No |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | No |
segments | Yes |
| Module | Use |
|---|---|
items | Yes |
facets | Yes |
scope_pages | Yes |
univers_pages | Yes |
spotlights | Yes |
acp | Yes |
references | Yes |
shortcuts | Yes |
contents_kicker | Yes |
contents_items | Yes |
contents_facets | Yes |
suggested_keywords | No |
suggested_scope_pages | No |
suggested_spotlights | No |
suggested_shortcuts | No |
spell_check | Yes |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Yes |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | Yes |
apply_scopes | Yes |
apply_spotlights | Yes |
apply_content_type | Yes |
apply_content_filters | Yes |
navigation actionnavigation action is used to obtain articles contained in a category.| Base query | Use |
|---|---|
terms | No |
search_scope | Yes - mandatory |
search_attributes | Yes |
search_product | No |
context | No |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | No |
segments | Yes |
| Module | Use |
|---|---|
items | Yes |
facets | Yes |
scope_pages | Yes |
univers_pages | Yes |
spotlights | Yes |
acp | Yes |
references | No |
shortcuts | No |
contents_kicker | No |
contents_items | No |
contents_facets | No |
suggested_keywords | No |
suggested_scope_pages | No |
suggested_spotlights | No |
suggested_shortcuts | No |
spell_check | No |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Yes |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | Yes |
apply_scopes | No |
apply_spotlights | Yes |
apply_content_type | No |
apply_content_filters | No |
landing_page actionlanding page action is used to obtain an assortment of items that share common characteristics.| Base query | Use |
|---|---|
terms | No |
search_scope | Yes |
search_attributes | Yes - mandatory |
search_product | No |
context | No |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | No |
segments | Non |
| Module | Use |
|---|---|
items | Yes |
facets | Yes |
scope_pages | Yes |
univers_pages | Yes |
spotlights | Yes |
acp | Yes |
references | No |
shortcuts | No |
contents_kicker | No |
contents_items | No |
contents_facets | No |
suggested_keywords | No |
suggested_scope_pages | No |
suggested_spotlights | No |
suggested_shortcuts | No |
spell_check | No |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Non |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | Yes |
apply_scopes | Yes |
apply_spotlights | Yes |
apply_content_type | No |
apply_content_filters | No |
product_selection actionproduct selection action is used to obtain an assortment of items that share common characteristics.| Base query | Use |
|---|---|
terms | No |
search_scope | Yes |
search_attributes | Yes - mandatory |
search_product | No |
context | No |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | No |
segments | Non |
| Module | Use |
|---|---|
items | Yes |
facets | Yes |
scope_pages | Yes |
univers_pages | Yes |
spotlights | Yes |
acp | Yes |
references | No |
shortcuts | No |
contents_kicker | No |
contents_items | No |
contents_facets | No |
suggested_keywords | No |
suggested_scope_pages | No |
suggested_spotlights | No |
suggested_shortcuts | No |
spell_check | No |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Non |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | Yes |
apply_scopes | Yes |
apply_spotlights | Yes |
apply_content_type | No |
apply_content_filters | No |
product_sheet actionproduct sheet action is used to retrieve data associated to a product.| Base query | Use |
|---|---|
terms | No |
search_scope | No |
search_attributes | No |
search_product | Yes - mandatory |
context | No |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | No |
segments | Non |
| Module | Use |
|---|---|
items | Yes |
facets | No |
scope_pages | No |
univers_pages | No |
spotlights | No |
acp | No |
references | No |
shortcuts | No |
contents_kicker | No |
contents_items | No |
contents_facets | No |
suggested_keywords | No |
suggested_scope_pages | No |
suggested_spotlights | No |
suggested_shortcuts | No |
spell_check | No |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Non |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | No |
apply_scopes | No |
apply_spotlights | No |
apply_content_type | No |
apply_content_filters | No |
suggested_keywordssuggested_keywords action let you get suggested keywords.flavor is currently available : search-homesearch-home should be use when a user will start a new search phase, when he focuses on search bar.| Base query | Use |
|---|---|
terms | No |
search_scope | No |
search_attributes | No |
search_product | No |
context | Yes - mandatory |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | Yes |
segments | Non |
| Module | Use |
|---|---|
items | No |
facets | No |
scope_pages | No |
univers_pages | No |
spotlights | No |
acp | No |
references | No |
shortcuts | No |
contents_kicker | No |
contents_items | No |
contents_facets | No |
suggested_keywords | Yes - Mandatory |
suggested_scope_pages | Yes |
suggested_spotlights | Yes |
suggested_shortcuts | Yes |
spell_check | No |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Non |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | No |
apply_scopes | No |
apply_spotlights | No |
apply_content_type | No |
apply_content_filters | No |
zero_resultszero_results action let you get suggested keywords when no results are found for given keywords in terms query.| Base query | Use |
|---|---|
terms | Yes - mandatory |
search_scope | No |
search_attributes | No |
search_product | No |
context | No |
store_id | Yes |
user_id | Yes - mandatory |
track_id | Yes - mandatory |
flavor | Yes |
segments | Non |
| Module | Use |
|---|---|
items | No |
facets | No |
scope_pages | No |
univers_pages | No |
spotlights | No |
acp | No |
references | No |
shortcuts | No |
contents_kicker | No |
contents_items | No |
contents_facets | No |
suggested_keywords | Yes - Mandatory |
suggested_scope_pages | Yes |
suggested_spotlights | Yes |
suggested_shortcuts | Yes |
spell_check | No |
bag | Yes |
statistics | Yes |
tracking | Yes |
showcases | Non |
settings | By default |
user_actions | Use |
|---|---|
apply_filters | No |
apply_scopes | No |
apply_spotlights | No |
apply_content_type | No |
apply_content_filters | No |
settings actionsettings contain information related to the settings of certain features (example: user sorting, images related to spotlights, labels, ...) and useful for constructing results.GET https://api.sensefuel.live/discovery/{site-uuid}/settings| Name | Description |
|---|---|
site-uuid | String -- site ID |
id: an unique value representing the settings. If settings change, the ID changes. You have to store it to know if you can correctly interpreter the results (this id is systematically returned in the settings module). If it changes, you have to call the settings action.settings: an object containing the settings of certain features{
"id": "a83dbe545c0b4240a0beaf355f0f088f",
"settings": {
"ranking": [
{
"field": "sf:isDiscount",
"display": "Promotions",
"order": "desc"
},
{
"field": "sf:isNew",
"display": "Nouveautés",
"order": "desc"
},
{
"field": "sf:price",
"display": "Prix descendant",
"order": "desc"
},
{
"field": "sf:price",
"display": "Prix ascendant",
"order": "asc"
}
]
}
}fields: a list of available attributes for base queriesranking: a list of available attributes in the sort modulespotlights: the spotlight configuration allowing you to interpret the results of the spotlights and suggested_spotlights modulesshortcuts: the shortcut configuration allowing you to interpret the results of the shortcuts and suggested_shortcuts modulesshowcases: la configuration des showcases vous permettant de connaître les types de showcases existant chez vous.fieldsfields object contains a list of available attributes for base queries.field indicates the name of the attribute as it is present in the article.type field indicates the type of the attributes as it was read and interpreted in the catalog feed.labels field gives labels to display (setup in Sensefuel backoffice).filterable indicates that the field can be used as a filter.search_attributes indicates that the field can be queried using search_attributes.stringlongdoubleg:id field)rankingranking object contains a list of available attributes for sort module. this module can be used in the items module to replace sort by relevance (sort by default).field indicates the name of the attribute as it is present in the article.display field indicates the name of the attributes as it will be displayed.order field indicates the direction of the sort performed on this attribute (descending or ascending).spotlightsspotlight object contains the list of spotlight you have configured, as well as details of these spotlights, in order to be able to correctly display them.spotlights module)| Fields | Description |
|---|---|
| display.logo | Link to brand logo (null if event spotlight) |
| display.title | Spotlight title to display |
| display.description | Spotlight description to display if event spotlight |
| display.background | Spotlight background image link |
| display.background_color | Spotlight background color |
| display.background_position | Spotlight background position |
| display.alternative_background_image | Spotlight background image alt link |
| display.alternative_background_position | Spotlight background alt image position |
| label | Spotlight technical name |
| promotion | Spotlight promotion (pinned or preferred) |
| products_count | Number of products in the spotlight if applied alone |
| articles_count | Number of articles in the spotlight if applied alone |
shortcutsshortcuts object contains the list of promoted shortcuts you have configured, as well as details of these shortcuts, in order to be able to correctly display them.| Fields | Description |
|---|---|
| id | Shortcut technical name |
| url | Link to shortcut page |
| label | Shortcut title to display |
| promotion | Shortcut promotion (pinned or preferred) |
{
"id": "a83dbe545c0b4240a0beaf355f0f088f",
"settings": {
"shortcuts": [
{
"id": "Shop",
"label": "Find a shop",
"url": "https://shop.example.com",
"promotion": "pinned"
}
]
// [...]
}
}showcasesshowcases object contains the list of showcases types you have configured.{
"id": "a83dbe545c0b4240a0beaf355f0f088f",
"settings": {
"showcases": ["FULL_PRODUCT", "MANUAL_RANKING", "BANNER"]
}
}