Skip to Content
0
May 20, 2020 at 09:18 AM

Define index on context item.

33 Views

Hello hybris people.

While investigating some slow queries I have found out that there is no index for the P_CONTEXTITEM.

We want do add this to our database and align it with the code base

Problem is that contextItem is not available for the type that I'm trying to define in ( MediaItemModel )

So I'm getting bellow error when building the system.

IllegalStateException: Index contextItemIdx for type Media on [contextitem] declared at ((dysoncore))::YIndex[dysoncore-items.xml:4512(IndexTagListener)] based on attribute 'contextitem' which is not available for the type Media 

ctx is defined on AbstractItemModel and is not visible for the Media type.

Is there a way I can achive this through hybris way of adding indexes?