Fuzzy Search by Title and SKU (dashes/spaces)
-
Hello,
I’m trying to set a fuzzy search, which would allow me to search multiple terms that are a part of the same product.
The search should go trough product names and product SKU-s.
Example – Searching for product:
Title: “LED nadgradna lampa”
SKU: “LN-02-5 BK”
***(note there are two dashes and one space in SKU – for some reason this gives me a false results)So if typed:
“LN” [space/no space/dash] “02” [space/nospace/dash] “5” [space] “BK” [space] “mpa” – need to get the exact result without getting all results from all other products that could contain any of these separate parts.
***
If i type the exact sku and part of the title, i will get the right result
https://staging1.rasveta.net/?s=LN-02-5+BK+mpa&post_type=product
https://staging1.rasveta.net/?s=LN+02-5+BK+mpa&post_type=productbut if i type it without dashes (using spaces; or without spaces in SKU),
or if i don’t put dash between “02” and “5” i will get “no results”
https://staging1.rasveta.net/?s=LN025BK+mpa&post_type=product
https://staging1.rasveta.net/?s=LN+02+5+BK+mpa&post_type=productThis is the ISSUE that I can’t figure out
***
or
“LN”[space/no space/dash] “0” [space] “mpa” – need to get only the products that are containing all of these three terms. (this is working)
***
I have already removed “Hyphens and dashes”,
set “Minimum word length” to “1” (filter added)
added “_sku, ” in “Custom fields”,
added “products” in “Product types”,
set “Default operator” to “AND”,
disabled “Fallback to OR”,
set “Keyword matching” to “Partial words”.I really hope that i have explained and described this well…
Thanks in advance.Best regards,
RockitThe page I need help with: [log in to see the link]
- The topic ‘Fuzzy Search by Title and SKU (dashes/spaces)’ is closed to new replies.