Hi, I have 2 facets values for a facet a field cal...
# community-help
g
Hi, I have 2 facets values for a facet a field called
canton
that are "Lucerne" | "Zurich" Whenever I send
q="lu"
it find a document and also returns for
highlights
a matched tokens for "Lucerne" Whenever i send
q="zu"
it find a document but it doesn't return for
highlights
a matched tokens for "Zurich" I didn't get yet why in the seond case it doesn't find the facet like in the first case
k
Are you able to reproduce this on a stand-alone example of 2 records?
g
I cannot easily have such an exemple, Would you see first some basic parameters that would influence this result 🤔? I have
num_typo:1
highlight_full_fields:true
k
My first recommendation is to see if this behavior still exists on recent RC builds, for e.g.
0.23.0.rc27
Ideally, this should not be happening, but I remember fixing some related quirks in the 0.23 rc builds.
g
Oh it looks like locally I'm on v.0.21
I will start by upgrading to latest
fixed in rc27 !
thanks for help 😄
May I ask please to update my cloud container to this version?
Also still related to the same example. There is something strange for me. Because I have a
num_typo:1
When i type
q="lu"
I would expect both document come up. The one that exactly match with "Lucerne" and also the one with "Zurich" that has 1 typo tolerance, isn't it ? The same happen if I type
q="zu"
only the document for Zurich will come up but not the one for "Lucerne"
k
In 0.22, there is a change in the default value for
typo_tokens_threshold: 1
-> set this to
10
(previous value). That should produce the earlier behavior.
For the upgrade, please email contact@typesense.org with the cluster ID and version to upgrade to.
g
Thanks. I'm trying the
typo_tokens_threshold
My config is:
Copy code
typo_tokens_threshold: 10
min_len1_typo: 1
I have stilll not have both facets that comes up
k
🤔 Let me check and get back to you.
@gab gab This works as expected for me. I indexed two documents with both of those values and tried searching for
lu
and it returns both documents. Check the query parameters I have underlined in the screenshot.
g
@Kishore Nallan Hi, It looks like in your sample you're querying directly a "canton" collection. Maybe my first message description was not so clear. My collection is not directly a "canton" collection of documents. I have a warehouses collection with inside, a facet field "canton"
k
Can you create a small reproduceable example me to try?