How to view the list of data stored in Collection type in Hybris using Flexible search?
I have read somewhere that it is stored as PKs so is it possible to parse it somehow?
How to view the list of data stored in Collection type in Hybris using Flexible search?
I have read somewhere that it is stored as PKs so is it possible to parse it somehow?
"CollectionTypes are based on the Java Collection class."
How Collection Stores Values :
Advantage :
Disadvantage :
If a collection contains a lot of PKs, the field value may reach the maximum length of field for the database implementation and entries may get truncated.
As the database entry only contains the PKs, not the items, you cannot run database searches on the entries directly. Instead, you need to run searches in memory via Java, which is often slower than searching on the database directly.
It's documented in FlexibleSearch Tips and Tricks - Flexible Search and Collections
You have the case of Orders and VoucherCard. It's an exemple where the collection element type has a reference to the item that holds the collection (the vouchercards as a ref to the order)
Then you have the case without reference between element and holder. You can use some workaround based on the fact that a collection attribute is stored as a list of PK s: