Hey guys, I'm observing some behaviour that I don'...
# community-help
m
Hey guys, I'm observing some behaviour that I don't really understand. I'm sending query like this:
q=cycling running enduro cyclocross road&query_by=categories
. In addition I am sending
prefix=false
. Categories is an array of strings. It would make sense to me that order within query does not matter but if I swap
cycling
with
running
I will get different number of results. What am I missing here?
k
If all tokens in the query are not found in any document typesense tries dropping tokens in the query until results are found. So order matters.
m
I see, so it drops first token and stops when any result is found?
k
Right to left and then left to right. Stops when results satisfy drop tokens threshold parameter
m
is there a way to achieve
give me documents having any of the tokens
behaviour?
k
No that's not possible.