Extending Search Index
The portal engine is powered by OpenSearch via Generic Data Index bundle for search, listings and filters. Therefore, it's needed to store the data from Pimcore elements into data index indices.
Take a look at Pimcore Generic Data Index Bundle documentation for an introduction on how to index the data into OpenSearch and keep it up to date. There you will find also more information about the structure of the indices.
Extending Search Index via Events
The regular index update process stores a defined set of standard data types in the data index which makes it possible to find, filter, sort and list them in the portal engine.
It is possible to extend the index with custom attributes if needed. For this purpose the following events exist. You will find code examples at the end of this section.