ruby on rails - multiple values for each dynamic field per record in sunspot /solr -


I am using dynamic_string in my product model which is in the index of the weight of the dynamic field created by the user. It works very well and shows me the following in my view that the following is shown to narrow the results to the user:

 color ---------- red green Blue color etc ...  

The problem is that some of them have 2 or more options for the product i.e. color = & gt; Blue, red

When I try to add it to a hash in color, it only runs on the first ride, only give me one value for each field.

Is there a way to have multiple values ​​per dynamic field per product? If so, please tell me how can this be achieved?

Hope this makes sense.

When Sun comes with Sol, looking at the solar, I see the following announcements: / P>

  & lt ;! *** *** This is used by Dynamicfield Sanspot! *** - & gt; & Lt; DynamicField name = "* _ ds" stored = "true" type = "date" multi-functional = "wrong" indexed = "true" /> <> - *** This dynamic movie is used by Sunspot! *** - & gt; & Lt; Dynamic string field = "* _ dms" stored = "true" type = "date" multi-functional = "true" indexed = "true" />   

dynamic string field ( _ds < / Code>) does not support multiple values, but it seems that a dynamic multi string ( _dms ). I do not know how this vague is actually called, but it should be easy to know.

Comments