Hello, I have a dataset of products which is being...
# community-help
s
Hello, I have a dataset of products which is being queried by
query_by: sku,eon
fields, on querying I want to get only the product having the exact match. For example if I query by
1234
, result shows products with sku 1234 and eon 123. But I want to show only the product with sku 1234. How can this be achieved?
k
👋 You want to show products where both eon and sku match
1234
?
s
No. I just want to show product with sku 1234 since it is the exact match. And do not show product with eon123
k
Can you show me an example product JSON that matches for the query?
But I think what's happening here, you can just set num_typos=0 to ensure that fuzzy matching does not happen.
You can also disable prefix matching with
prefix=false
-- these two changes will ensure that you find the exact matches.
s
okay thank you. Will try it and get back to you