Lint
This commit is contained in:
parent
54c37fccd1
commit
36466420f6
|
@ -14,10 +14,10 @@ class UpdateParticipantSearchIndexAction
|
||||||
$form->searchableUsing()->updateIndexSettings(
|
$form->searchableUsing()->updateIndexSettings(
|
||||||
$form->participantsSearchableAs(),
|
$form->participantsSearchableAs(),
|
||||||
[
|
[
|
||||||
'filterableAttributes' => $form->getFields()->getKeys(),
|
'filterableAttributes' => $form->getFields()->filterables()->getKeys(),
|
||||||
'searchableAttributes' => $form->getFields()->getKeys(),
|
'searchableAttributes' => $form->getFields()->searchables()->getKeys(),
|
||||||
'sortableAttributes' => [],
|
'sortableAttributes' => [],
|
||||||
'displayedAttributes' => [...$form->getFields()->getKeys(), 'id'],
|
'displayedAttributes' => [...$form->getFields()->filterables()->getKeys(), ...$form->getFields()->searchables()->getKeys(), 'id'],
|
||||||
'pagination' => [
|
'pagination' => [
|
||||||
'maxTotalHits' => 1000000,
|
'maxTotalHits' => 1000000,
|
||||||
]
|
]
|
||||||
|
|
|
@ -118,6 +118,16 @@ class FieldCollection extends Collection
|
||||||
return $this->first(fn ($field) => $field->specialType === $specialType);
|
return $this->first(fn ($field) => $field->specialType === $specialType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function searchables(): self
|
||||||
|
{
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function filterables(): self
|
||||||
|
{
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<int, string>
|
* @return array<int, string>
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue