Skip to content

Commit 831fa21

Browse files
committedDec 17, 2024
Remove unspecified searchableMapping
1 parent 3b1d68e commit 831fa21

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/Scout/ScoutEngine.php

-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
use function is_iterable;
4242
use function is_string;
4343
use function iterator_to_array;
44-
use function method_exists;
4544
use function preg_quote;
4645
use function sleep;
4746
use function sprintf;
@@ -86,7 +85,6 @@ public function update($models)
8685
return;
8786
}
8887

89-
9088
if ($this->softDelete && $this->usesSoftDelete($models)) {
9189
$models->each->pushSoftDeleteMetadata();
9290
}
@@ -511,10 +509,6 @@ private function getMapping(Model $model): array
511509
{
512510
$mapping = self::DEFAULT_DEFINITION;
513511

514-
if (method_exists($model, 'searchableMapping')) {
515-
$mapping = $model->searchableMapping();
516-
}
517-
518512
if ($this->usesSoftDelete($model)) {
519513
// This field is a boolean represented with the integers 0 and 1
520514
// https://www.mongodb.com/docs/atlas/atlas-search/field-types/number-type/#configure-fts-field-type-field-properties

0 commit comments

Comments
 (0)