Smile-SA / smile-magento-elasticsearch

Magento ElasticSearch Implementation
151 stars 90 forks source link

Attribute like "Name", "Description", "Short Description"..etc not have multiple values for the same key. So it should be directly assigned to the Key not Assigned as Array. #148

Open nisargrthakkar opened 5 years ago

nisargrthakkar commented 5 years ago

We appreciate you and your team work efforts.

We post this following Query in Kibana tool.

POST test_{storecode}_catalog_product/_search { "query": { } }

It gives the result accurately. but our problem is in the response of "indexed_attributes" of Product Attributes which is searchable from Magento.

While I have checked some of the attributes like "name" which give us array like:

"name": [
    "XXX Product Name"
 ],

But it should be like:

"name": "XXX Product Name",

Like we get in Response Like sku: "sku": "TEST01"

The reason we are thinking there is some product Attribute like "Name", "Description", "Short Description"..etc not have multiple values for the same key. So it should be directly assigned to the Key not Assigned as Array.

Actually, this is my thought, how this should work, Please let me know your reason to give it in Array, So I can understand both the flow.

Looking forward to hearing from you soon.