You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an index in Elasticsearch with a join field type and after a long time trying to make the facets work with the fields that are inside the inner_hits object and failing, i started considering the possibility of using the proxy feature of searchkit but i'm not having any luck either, i'm getting an error saying: Error transforming Elasticsearch response for index
This is the configuration that i'm using to run the query:
constapiClient=Client({connection: {host: 'http://localhost:8080',},search_settings: {highlight_attributes: ['name'],// Usar highlight para atributos que no tienen muchos charssnippet_attributes: ['child_category:200'],// Usar snippet para atributos grandes (como una descripcion)search_attributes: [{field: 'name',weight: 3},{field: 'child_category',weight: 2},],result_attributes: ['name','parent_category',"child_category","ref_id","price_list","rank"],facet_attributes: [{attribute: 'child_category',field: 'child_category.enum',type: 'string'},{attribute: 'price_list',field: 'price_list',type: 'numeric',},{attribute: 'rank',field: 'rank',type: 'numeric'},],filter_attributes: [{attribute: 'parent_category',field: 'parent_category.keyword',type: 'string'}],}},{debug: true}
And this is the response i'm sending from my middleware:
I realize that the aggregations' field names are not the ones that searchkit expect, but taking that into account i also tried removing all the filters and facets from the query config and still gets the same error Error transforming Elasticsearch response for index
I'd be really greatfull if you could give me any guidance on what might be the posible issue here. I assume I might be doing something wrong, but I just can't find anything.
What is the error trying to say to me? What would be the proper structure that searchkit expects on the response so that it can correctly transform the response for the index?
Any help would be much appreciated!
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The problem
I have an index in Elasticsearch with a join field type and after a long time trying to make the facets work with the fields that are inside the
inner_hits
object and failing, i started considering the possibility of using the proxy feature of searchkit but i'm not having any luck either, i'm getting an error saying: Error transforming Elasticsearch response for indexEnvironment
Code To Reproduce Issue
This is the index mapping:
This is the configuration that i'm using to run the query:
And this is the response i'm sending from my middleware:
I'd be really greatfull if you could give me any guidance on what might be the posible issue here. I assume I might be doing something wrong, but I just can't find anything.
What is the error trying to say to me? What would be the proper structure that searchkit expects on the response so that it can correctly transform the response for the index?
Any help would be much appreciated!
Thanks in advance!
The text was updated successfully, but these errors were encountered: