#community-help

Calculating Text Match Score as a Percentage

TLDR Rohit asked how to determine a percentage match for text searches. Kishore Nallan explained the computation process and shared about an upcoming feature that will provide more detailed statistics.

Powered by Struct AI
raised_hands1
5
21mo
Solved
Join the chat
Dec 15, 2021 (21 months ago)
Rohit
Photo of md5-35b1799bd10ed2978c0e2c07bdfa0aa5
Rohit
07:55 AM
For example, If a document has text : Hello World! and I search for Hello . How can I know its a 45-50% match?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:46 AM
👋 Rohit The text match score is an amalgamation of various components like number of words matching, number of typos, distance between matches etc. So there is no way to treat it as a percentage match.
09:47
Kishore Nallan
09:47 AM
We do have an item in the backlog to break these individual score components down so when we do that, you will be able to pull out finer grain statistics
raised_hands1
Rohit
Photo of md5-35b1799bd10ed2978c0e2c07bdfa0aa5
Rohit
09:51 AM
Kishore Nallan That is great. Thanks for the update. Typesense is really great. I'm doing a small POC for some project and this has helped me.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:53 AM
Glad to hear!