Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Dropdown Attributes #22

Open
BarryCarlyon opened this issue Nov 26, 2013 · 0 comments
Open

Question: Dropdown Attributes #22

BarryCarlyon opened this issue Nov 26, 2013 · 0 comments

Comments

@BarryCarlyon
Copy link

Having a poke about.

I'm wondering why when faced with a dropdown select attribute that is to be included in the search index, why the item in the index looks like:

{
  "_index" : "magento",
  "_type" : "product",
  "_id" : "2|1",
  "_version" : 1,
  "exists" : true, "_source" : {"sku":"151060002","manufacturer":["4"],"color":["486"],"status":["1"],"visibility":"4","price":["11"],"in_stock":"1","_options":["Exact Rapid","Pink"],"sort_by_name_en":"Pink Alginate (Exact Rapid) 500g","store_id":"1","unique":"2|1","id":2,"name_en":["Pink Alginate (Exact Rapid) 500g"],"description_en":["Impression compound, safe for making moulds of hands and faces, use 1 part powder to 1 part water. Alginate has a very fast setting time once mixed and needs to be used immediately. Moulding can only be used once. Try Pink Cosmetic Silicone ( 151160004 ) for multiple casting."],"short_description_en":["Impression compound, safe for making moulds of hands and faces, use 1 part powder to 1 part water. Alginate has a very fast setting time once mixed and needs to be used immediately. Moulding can only be used once. Try Pink Cosmetic Silicone ( 151160004 ) for multiple casting."],"categories":["2","121","132"],"show_in_categories":[],"position_category_2":"1","position_category_121":"1","position_category_132":"1","price_0_1":11,"price_1_1":11,"price_2_1":11,"price_3_1":11}
}

So (snip)

{"manufacturer":["4"],"color":["486"],"_options":["Exact Rapid","Pink"]}

As in, _options contains the string values that manufacture and color represent.
Rather than, substituting the values from _options into the relevant attributes?

{
  "_index" : "magento",
  "_type" : "product",
  "_id" : "2|1",
  "_version" : 1,
  "exists" : true, "_source" : {"sku":"151060002","manufacturer":["Exact Rapid"],"color":["Pink"],"status":["1"],"visibility":"4","price":["11"],"in_stock":"1",,"sort_by_name_en":"Pink Alginate (Exact Rapid) 500g","store_id":"1","unique":"2|1","id":2,"name_en":["Pink Alginate (Exact Rapid) 500g"],"description_en":["Impression compound, safe for making moulds of hands and faces, use 1 part powder to 1 part water. Alginate has a very fast setting time once mixed and needs to be used immediately. Moulding can only be used once. Try Pink Cosmetic Silicone ( 151160004 ) for multiple casting."],"short_description_en":["Impression compound, safe for making moulds of hands and faces, use 1 part powder to 1 part water. Alginate has a very fast setting time once mixed and needs to be used immediately. Moulding can only be used once. Try Pink Cosmetic Silicone ( 151160004 ) for multiple casting."],"categories":["2","121","132"],"show_in_categories":[],"position_category_2":"1","position_category_121":"1","position_category_132":"1","price_0_1":11,"price_1_1":11,"price_2_1":11,"price_3_1":11}
}

So (snip)

{"manufacturer":["Exact Rapid"],"color":["Pink"]}

I was thinking of "fixing" it, but thought I should check to see if it isn't broken…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant