Hi! Is there a known bug that we cant query docume...
# community-help
h
Hi! Is there a known bug that we cant query documents on multiple fields with different locales in the same query?
Copy code
{
  "name": "products",
  "fields": [
    {"name": "sku", "type": "string" },
    {"name": "name_sv", "type": "string", "locale": "sv" },
  ]
}
This will not match products with the name "tröja" since
sku
is not in "sv" locale and it's the first field in query_by
Copy code
{
  "collection": "products",
  "q": "tröja",
  "query_by": "sku,name_sv"
}
This will match products with the name "tröja" since
name_sv
is in "sv" locale
Copy code
{
  "collection": "products",
  "q": "tröja",
  "query_by": "name_sv,sku"
}
f
What version of Typesense are you using? Also are you on Typesense Cloud or self-hosting?
h
Oh, sorry, v28.0, both Typesense Cloud and Docker image
k
Yes the query is only tokenized on the locale of the first query by field's locale.
h
Is this by design, or is it up for change? just so that i know if i have to evaluate the way i implemented my search, or if it will be supported
k
We do want to fix it at some point, but it's not something that's on our immediate roadmap. We have to do it as part of a larger stream of work in future.
h
Alright, Thank you for the information and superfast response 👍