This message was deleted.
# community-help
s
This message was deleted.
k
Exhaustive search is an expensive operation and could trigger the client side timeout
j
I have collection of 25000 records and i am applying Exhaustive search on 5 fields and i have machine of 4 core 8gb ram but for few queries my cpu utilization is 100% for all cores requests is taking 33 seconds any idea on that
k
We will have to investigate to see what's going wrong. Happy to do that if you are able to share a copy of the data directory with me and the query that's causing this issue as well.
j
typesense data dir and query right?
k
Yes
j
sharing
query
Copy code
{'query_by': 'title,variants.title,brand.name,generic_name.name,variants.sku_id', 'page': 1, 'per_page': 10, 'prioritize_token_position': True, 'split_join_tokens': 'always', 'prioritize_exact_match': True, 'num_typos': '2,2,2,2,0', 'exhaustive_search': True, 'highlight_start_tag': '<b>', 'highlight_end_tag': '</b>', 'max_facet_values': 500, 'facet_by': 'country_of_origin.slug,specialities.slug,brand.slug,categories.slug,procedures.slug,generic_name.slug', 'q': 'HMD Dispovan Syringe without Needle - 20ml Pack of 25', 'filter_by': 'is_free:false'}
using python to interact with typesense
k
Check the file, it's only 170B.
j
this is local data but same problem facing in this
k
The zip file has empty directory. No data.
j
ohh my bad checking
can you please check now
k
Any reason for using exhaustive search? For long queries, this will mean we will try all combinations of the query, like 1 word, 2 word, 3 word from the query and typo variations of the query. This means that it's going to take time.
In this case this query has 9 words in the query.
j
we are ecommerce company and we want to show customer at least some result in stade of nothing thats why we are using exhaustive search
k
Can you elaborate? Typesense would automatically expand the query, look for typo conditions to get results. You very rarely need to use exhaustive search.
j
yes that's true so what do you suggest in which cases we should use exhaustive
k
If you can describe the problem you are facing with specific example, I can suggest ways to overcome them.
j
give me some time i'll describe