Searchable
trait Searchable (View source)
Traits
Properties
protected array | $additionalSearchFields | Define the additional fields we want to index. |
|
protected array | $additionalFilterableFields | Define the additional filterable fields. |
|
protected array | $additionalSortableFields | Define the additional sortable fields. |
Methods
Return our base (core) attributes we want searchable.
Return our base attributes we want filterable.
Add additional fields to filter on.
Add additional sortable attributes.
Return our base attributes we want sortable.
{@inheritDoc}
Add an attribute into the additional searchable fields.
{@inheritDoc}
{@inheritDoc}
Details
array
getSearchableAttributes()
Return our base (core) attributes we want searchable.
array
getFilterableAttributes()
Return our base attributes we want filterable.
void
addFilterableAttributes(array $attributes)
Add additional fields to filter on.
void
addSortableAttributes(array $attributes)
Add additional sortable attributes.
array
getSortableAttributes()
Return our base attributes we want sortable.
getObservableEvents()
{@inheritDoc}
void
addSearchableAttribute(string $key, string|mixed $value)
Add an attribute into the additional searchable fields.
toSearchableArray()
{@inheritDoc}
searchableUsing()
{@inheritDoc}