How to make a custom entity searchable?

Step 1

Enable the «Searchable» option for the entity.

Step 2

Enable the «Searchable» option for the entity fields.

Step 3

Make sure that the message queue is running.