Hi, we are debugging some searches. Does anyone kn...
# random
h
Hi, we are debugging some searches. Does anyone know the best way to understand faster why some search term wasn’t matched with some documents. I know that experience in the parameters is the best, but we are still learning all the parameters
k
One reason is when there is no document that contains all tokens in the query, then Typesense proceeds to drop words in the query right to left and then left to right until the number of documents fetched satisfy the
drop_tokens_threshold
parameter. In such a scenario, documents that do not contain all search terms will occur.
h
It was just a bad example from my part. I have matches, but still don’t understand what we need to tweak in order to solve: Search tearm: “fuji máquina” Against: máquina Fujifilm
k
Ah, Typesense does prefix searches only on the last word of the query. So
máquina fuji
will match and not the other way. You can create a synonym here for mapping
fuji
to
fujifilm
The reason why we do prefix searching on only the last word is that, otherwise the search results can become quite noisy.