Closed Playhf closed 4 months ago
@vahonc could you please participate?
@romainruaud if you have any experience with such in issues as well I would really appreciate your help.
Hello @Playhf,
Could you copy/paste either your full mapping or at least the section relative to the "search" (multi) field ?
Regards,
Hello @rbayet yes, here is the mapping for catalog product index. catalog_product_index_map.txt
Any chance you might be having an attribute named "search" ?
Any chance you might be having an attribute named "search" ?
Yes, looking at the mapping, I can see that
"search": {
"type": "text",
"fields": {
"standard": {
"type": "text",
"analyzer": "standard"
}
},
"copy_to": [
"search",
"spelling"
],
"norms": false,
"analyzer": "keyword"
}
That's typical of a searchable text attribute whose attribute code is indeed "search" and our magic "search" is not present, whose mapping should be
"search": {
"type": "text",
"fields": {
"shingle": {
"type": "text",
"analyzer": "shingle"
},
"whitespace": {
"type": "text",
"analyzer": "whitespace"
}
},
"analyzer": "standard"
}
This issue was waiting update from the author for too long. Without any update, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.
Hello we're having an issue after reindex and trying to load category page:
Exception #0 (OpenSearch\Common\Exceptions\BadRequest400Exception): {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no mapping found for field [search.whitespace]"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_idegaarden_catalog_product_20240626_081350","node":"P_6BnSxbQVeVPqVHIMnQdA","reason":{"type":"illegal_argument_exception","reason":"no mapping found for field [search.whitespace]"}}],"caused_by":{"type":"illegal_argument_exception","reason":"no mapping found for field [search.whitespace]","caused_by":{"type":"illegal_argument_exception","reason":"no mapping found for field [search.whitespace]"}}},"status":400}
Magento Version : 2.4.7 ElasticSuite Version :2.11.7. Along with
hyva-themes/magento2-smile-elasticsuite:1.2.4
.Steps to reproduce
hyva-themes/magento2-smile-elasticsuite:1.2.4
Expected result
Actual result
0 /home/id-dev/releases/20240626-092820/vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(328): OpenSearch\Connections\Connection->process4xxError()
1 /home/id-dev/releases/20240626-092820/vendor/react/promise/src/FulfilledPromise.php(28): OpenSearch\Connections\Connection->OpenSearch\Connections{closure}()
`
Technical information
In the search request object
\Smile\ElasticsuiteCore\Search\Request\Query\Filtered
in query property i can see*Smile\ElasticsuiteCore\Search\Request\Query\MultiMatch*fields
array with following fields:In admin panel i found a mapping for both name and sku and i can see whitespace is defined there. The same can't be said about search.whitespace.
Please assist me with this issue. Thanks