hi, im getting strange text_match = 0. `TM` = text...
# community-help
h
hi, im getting strange text_match = 0.
TM
= textmatch. the query is
temp nyc
, and i would expect it to have a very high text match score, but its 0. only one of the hits under that groupedHit is pinned (so 0 would be expected for it, but the other one is not pinned)
f
Are you using Typesense Cloud or self-hosting?
h
typesense cloud - also ran into another issue with found being none?
@Fanis Tharropoulos i think the core issue that document 1 is dropping 2 tokens (even tho it should match more than document 2), and document 2 is somehow only dropping 1 token for the query
temp nyc
document 1:
Highest temperature in NYC on Jul 20, 2025?
Copy code
'text_match': 0,
 'text_match_info': {'best_field_score': '0',
                     'best_field_weight': 0,
                     'fields_matched': 0,
                     'num_tokens_dropped': 2,
                     'score': '0',
                     'tokens_matched': 0,
                     'typo_prefix_score': 255},
 'vector_distance': 0.13023704290390015}
document 2:
Highest temperature in LA on Sep 23, 2025?
Copy code
'text_match': 585476816288876545,
 'text_match_info': {'best_field_score': '1108091339008',
                     'best_field_weight': 4,
                     'fields_matched': 1,
                     'num_tokens_dropped': 1,
                     'score': '585476816288876545',
                     'tokens_matched': 1,
                     'typo_prefix_score': 0}}
looking deeper, document 2 has a keyword
temp
while document 1 doesnt, but shouldnt i not drop the token if i have prefix enabled on the document title?
f
Dropping tokens is related to
drop_tokens_threshold
, not prefix search. Prefix search is not treating the last word of the query as a whole word, and matching
micro
to
microwave
for example.