Shujaat
12/16/2024, 7:28 AMscout.php
Fanis Tharropoulos
12/16/2024, 11:36 AM/collections/<name>
you don't get the token separators back?Shujaat
12/16/2024, 1:15 PM[]
Shujaat
12/16/2024, 1:18 PM{
"created_at": 1734279401,
"default_sorting_field": "",
"enable_nested_fields": false,
"fields": [
...
],
"name": "components",
"num_documents": 53674,
"symbols_to_index": [],
"token_separators": []
}
Shujaat
12/16/2024, 1:20 PMscout.php
looks like this:
'collection-schema' => [
'name' => 'components',
"token_separators" => [".", ",", ":", "(", ")"],
'default_sorting_field' => 'created_at',
'fields' => [
...
],
],
'search-parameters' => [
'query_by' => 'name'
],
]
Fanis Tharropoulos
12/16/2024, 1:23 PMCollection::class => [
"collection-schema" => [
"fields" => [
[
"name" => "name",
"type" => "string",
],
[
"name" => "price",
"facet" => true,
"type" => "float",
],
[
"name" => "hltb_single",
"type" => "int32",
"facet" => true,
"optional" => true,
],
[
"name" => "positive",
"facet" => true,
"type" => "int32",
],
[
"name" => "negative",
"facet" => true,
"type" => "int32",
],
[
"name" => "app_id",
"type" => "string",
],
[
"name" => "min_owners",
"type" => "int32",
],
[
"name" => "max_owners",
"type" => "int32",
],
[
"name" => "created_at",
"type" => "int64",
],
[
"name" => "release_date",
"type" => "int64",
],
],
"default_sorting_field" => "release_date",
"token_separators" => ["&", "|"],
],
"search-parameters" => [
"query_by" => "name, app_id",
],
],
what typesense server version are you using?Shujaat
12/16/2024, 1:24 PMShujaat
12/16/2024, 1:27 PMFanis Tharropoulos
12/16/2024, 1:29 PMcollection-schema
map?Shujaat
12/16/2024, 1:30 PMShujaat
12/16/2024, 2:58 PMShujaat
12/16/2024, 2:58 PMtoken_separators
key. Problem was that Laravel queued job that updates typesense index reads the scout config file only upon startup. Once the job is running, changing the config, or caching/clearing it doesn't affect the job in any way and it keeps using the config it loaded initially. I killed the job and started a new one and it started behaving correctly.Shujaat
12/16/2024, 3:01 PMFanis Tharropoulos
12/16/2024, 3:08 PM