• Resolved ashleynlinares

    (@ashleynlinares)


    We have a website with a large database of products, most of which have hyphens (i.e. 173-1651). When a customer searches the part number with the hyphens (or with a space instead of the hyphen), the results appears. However, some of our customers will enter the numbers in with no hyphen (i.e. 1731651) and no results are found.

    I’ve been searching for hours trying to find a solution. I did try the solutions found here, adding the code to functions.php and reindexing. But it hasn’t worked.

    https://www.ads-software.com/support/topic/fuzzy-search-option-not-honored?replies=3

    I’m not sure that accomplishes what I’m trying to do anyway.

    I want someone, for example, to type ‘173-1651’, ‘173 1651’ or ‘1731651’ and retrieve the correct product in search results. The first two work but I can’t get the third to work. Any idea how I can remedy this?

    Thank you!

    https://www.cdielectronics.com

    https://www.ads-software.com/plugins/relevanssi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    After the fix in the linked post, ‘173-1651’ should find the post, the other two not.

    I think the best solution would be to make sure the product numbers are indexed in all the different forms. Is the product number stored in a custom field or in some other place where it can easily and automatically be recognised and handled in indexing?

    Thread Starter ashleynlinares

    (@ashleynlinares)

    Yes – that was plan b. We’ll just go with that then.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Searching Products with Hyphens’ is closed to new replies.