<@U07VCETFBAR> sorry for the wait in coming here, ...
# community-help
a
@Georgi Nachev sorry for the wait in coming here, been some busy days! Could you remove all the unnecessary fields in the first example you gave me? The idea is to have a minimal reproducible example
g
@Alan Martini second example is clear copy from first example
@Alan Martini any progress on this issue? Sorry for the inconvenience
a
@Georgi Nachev Typesense will pick up the first field in query_by or the highest weight field you set in query_by_weights to decide which dictionary it will use. Workarounds: 1) Put name.bg first for Bulgarian-heavy searches. 2) Or set query_by_weights so name.bg has the highest weight. 3) Or use /multi_search with union: true, with one query per field and the same q=.
Something like this:
Copy code
{                                                                                                                       
    "union": true,                                                                                                        
    "remove_duplicates": true,                                                                                            
    "searches": [                                                                                                         
      { "collection": "variants", "q": "булгарски текст", "query_by": "name.bg" },                                        
      { "collection": "variants", "q": "булгарски текст", "query_by": "name.en" }                                         
    ]
g
Thanks @Alan Martini