In results of search models, enumerated values that are not contents or string are not supported.
Steps to reproduce
- Add a content attribute with long type and an enumerator like:
<cms:metadata name="longAttribute" type="long"> <cms:label i18n="false">My long attribute</cms:label> <cms:description i18n="false">My long attribute</cms:description> <enumeration> <entry> <label>Valeur 1</label> <value>1</value> </entry> <entry> <label>Valeur 2</label> <value>2</value> </entry> </enumeration> </cms:metadata>
- Fill a content with this attribute
- Launch a Solr search (a classic search has the same behaviour) on this content and display your long attribute like:
- Content type: MyContentType
- Query: longAttribute:*
- Columns: title, longAttribute
# In the results, the long attribute is displayed as [Object object]