elasticsuite
elasticsuite copied to clipboard
Unable to configurable attribute properties by WEBAPI
Is your feature request related to a problem? Please describe. Unable to amend smile/elasticsuite specific attribute configuration by WEBAPI This can cause issue with PIM/ERP integration, when product attributes created using Magento REST (Soap/GraphQL)
Describe the solution you'd like
A custom WEBAPI endpoint allows configuring layered navigation configuration for product attributes. The endpoint ideally extends Magento's PUT products/attributes/:attributeCode
like PUT products/attributes/:attributeCode/search-config
with payload
{
"attribute": {
"facet_min_coverage_rate": 60,
"facet_max_size": 5,
....
}
}
Describe alternatives you've considered ideally prevent anything which requires admin manually edit the attribute config
Additional context N/A
Hello @mamsincl,
Thank you for your request, we will try to think about it in our future releases.
BTW: Which version of ElasticSuite you are using now?
In the 2.10.16 and 2.11.2 versions of ElasticSuite we introduce some alternative and more eseally way to change attributes configuration fields related to ElasticSuite. Maybe it will be helpful for you.
BR, Vadym
Hi @vahonc
we are using 2.11.2 for the affected client
Is it the attribute import/export functionality of the attribute configuration you mentioned, please? The issue with that still need to log in to admin and do the import manually Anyway, I let our client know that the related import file can be generated programmatically on their side, and the only need is to import.
Also thanks for considering implementing the suggestion. R.
@mamsincl,
In the 2.11.2 release, we introduced the ability to export and import attributes configurations.
You will now be able to proceed with exporting the attributes configuration fields related to elasticsuite : "is searchable", "is filterable", "search weight", etc... from the Stores > Attributes > Products grid
.
Then you can proceed to the modifications you need, and you can re-import your file through System > Import >
choose Elasticsuite Product Attributes
and then re-import your file.
This is intended to help the merchants by saving a lot of time at the start of a project, to configure everything in the exported file "offline", and then reimport it once it's ready. This is way more easy than going through all the attributes one by one.
BR, Vadym