Each index can define settings, mappings, aliases, and persistence behavior.
opensearch:
indexes:
products:
index_name: 'products_%kernel.environment%'
settings:
number_of_shards: 1
mappings:
dynamic: false
properties:
name: { type: 'text' }
aliases:
products_read: {}
persistence:
driver: orm
model: App\Entity\Product
provider: true
listener: true
indexable: '[@app](https://github.com/app).product_indexable'
persistence.indexable accepts:
[@service_id](https://github.com/service_id) for a callable serviceSomeClass::method static callableisIndexable method name on the entityHow can I help you explore Laravel packages today?