Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude sub type in the hybris flexible search

In hybris, I have Created ArchivalOrderModel extends orderModel

Moved Data from OrderModel To ArchivalOrderModel. (Deleted Record from OrderModel)

When I fired query

select {pk} from {order}

In result Im getting Records of ArchivalOrderModel too.

Is there any way to restrict with help of data Modeling definition or Any other suggestion for archival

like image 890
Manigandan Karthick Avatar asked Nov 29 '25 16:11

Manigandan Karthick


1 Answers

When we search any type, by default its subtypes will also be retrieved in the result.

If you want to exclude the subtype, you must use the exclamation mark (!) while specifying the type in the query like this.

Select * from {Order!}
like image 127
HybrisHelp Avatar answered Dec 02 '25 14:12

HybrisHelp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!