#community-help

Trouble with Document Search Function

TLDR Ivan had trouble searching for a specific document, but after various advice and adjustments by Jason & Kishore Nallan, they solved the issue via adding "exhaustive_search: true" to the query.

Powered by Struct AI
Feb 25, 2022 (23 months ago)
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
03:19 PM
Hi Kishore Nallan Jason, we have search with num_typos:0, i am trying to find document with field: "bgh iv zr 164/15", when i type exact "bgh iv zr 164/15", i can found it, but when i type for example: "bgh iv zr 164" or "bgh iv zr 164/" it founds other matches. What is causing such behavior and how we can fix it?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:30 PM
Have you enabled prefix search by sending 'prefix: true' parameter?
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
07:13 PM
No, we have preffix: false
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:14 PM
Could you also set drop_tokens_threshold: 0, typo_tokens_threshold: 0
Feb 26, 2022 (23 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:25 AM
You need to set prefix to true for finding such prefix matches.
Feb 28, 2022 (22 months ago)
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
07:42 AM
Thank you Jason Kishore Nallan
Mar 03, 2022 (22 months ago)
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
10:06 AM
Hi Jason Kishore Nallan unfortunelly none of your advices helped, i set prefix to true and drop_tokens_threshold: 0, typo_tokens_threshold: 0
but still not found "bgh iv zr 164/15" when typed "bgh iv zr 164", is there any other possible reason?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:07 AM
Can you provide a sample dataset and query that exhibits this issue? So we can exactly reproduce the issue.
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
12:21 PM
Kishore Nallan no longer needed, we added to query "exhaustive_search: true", and now it works correctly🙂

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3015 threads (79% resolved)

Join Our Community

Similar Threads

Phrase Search Relevancy and Weights Fix

Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.

6

111
8mo

Resolving Typesense Search Issues

Conversation started by Maximilian about Typesense search behavior led to Users Kishore Nallan and Mike discussing and suggesting workaround, with Kishore Nallan promising an official solution soon. No final confirmation of resolution provided.

1

14
21mo

Understanding Search Result Variations with Filtering Parameters

SamHendley faced inconsistencies in the number of documents returned when adding more filter parameters. Jason explained it's due to Typesense limiting the number of variables checked for better performance. Increasing `max_candidates` or enabling `exhaustive_search` can help obtain all values.

4
13mo

Issues with Repeated Words and Hyphen Queries in Typesense API

JinW discusses issues with repeated word queries and hyphen-containing queries in Typesense. Kishore Nallan offers possible solutions. During the discussion, Mr seeks advice on `token_separators` and how to send custom headers. Issues remain with repeated word queries.

8

43
25mo

Understanding Typesense Query Fuzziness and Thresholds

Ashraful was confused about different query results when applying filters in Typesense. Jason clarified the function of `drop_tokens_threshold` and `typo_tokens_threshold` options, explaining their effect on search results and their precedence.

9
3mo