cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in flexible search (Category)

former_member740946
Discoverer
0 Likes
512

Hi All,

i get the following error

cannot search unknown field 'TableField(name='allSupercategories',langPK='null',type=category)'

when i run the following query

select {categoryAllSupercategories} from {category} where {code} = 'B2C_Color'

although <itemtype code="Category" > have <attribute qualifier="allSupercategories" type="CategoryCollection">

thank you in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

mansurarisoy
Contributor
0 Likes

The field "allSupercategories" is dynamic, thus not stored in database. You can look the Dynamic Attribute Handler named categoryAllSupercategories to understand what it does.

<attribute qualifier="allSupercategories" type="CategoryCollection">
	<modifiers read="true" write="false" search="false" optional="true"/>
	<persistence type="dynamic" attributeHandler="categoryAllSupercategories" />
</attribute>