mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fixed search index collection schema for producers
This commit is contained in:
parent
705e0fbf36
commit
9553c2e7f9
@ -72,6 +72,33 @@ class Producers extends JikanApiSearchableModel
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCollectionSchema(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'name' => $this->searchableAs(),
|
||||||
|
'fields' => [
|
||||||
|
[
|
||||||
|
'name' => '.*',
|
||||||
|
'type' => 'auto',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'titles',
|
||||||
|
'type' => 'string',
|
||||||
|
'optional' => false,
|
||||||
|
'infix' => true,
|
||||||
|
'sort' => true
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'url',
|
||||||
|
'type' => 'string',
|
||||||
|
'optional' => false,
|
||||||
|
'infix' => true,
|
||||||
|
'sort' => true
|
||||||
|
],
|
||||||
|
]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
public function typesenseQueryBy(): array
|
public function typesenseQueryBy(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user