Home Forums WoodMart support forum Search synonyms: uppercase first letter + multi-word synonyms not working

Search synonyms: uppercase first letter + multi-word synonyms not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #699953

    PM
    Participant

    Hi,

    I’ve found two issues with the search synonyms feature in Woodmart related to uppercase behavior and multi-word synonyms.

    1) Uppercase first letter breaks the synonym (PC & mobile)

    I have synonyms configured in:

    Theme Settings → Search → Synonyms, for example:

    aot = attack on titan

    kimetsu = demon slayer

    lotr = el señor de los anillos

    The issue:

    If the user types exactly aot, the synonym works.

    But if the user types Aot, AOT, or any variation where the first letter is uppercase, the synonym does NOT work and returns “No products found”.

    This affects both desktop and mobile, but on mobile it is more visible because the mobile keyboard automatically capitalizes the first letter, so users naturally trigger the failure case.

    It seems the synonyms are being matched in a case-sensitive way, which defeats the purpose of synonyms because users don’t always write them in perfect lowercase.

    2) Multi-word synonyms don’t behave as a single phrase

    Examples:

    caracortada = scarface → works.

    cara cortada = scarface → returns No products found.

    formula = f1 → works.

    formula 1 = f1 → returns almost all products containing “formula” or “1”, instead of behaving as a phrase synonym.

    This suggests Woodmart is splitting the synonym by spaces and evaluating each word separately, instead of treating the entire phrase as a single alias.

    Expected behavior

    Synonyms should be case-insensitive
    So aot, Aot, AOT, etc. should all map to the same synonym.

    Multi-word synonyms should be supported as full phrases, not tokenized word-by-word.

    Right now I’m using custom PHP to normalize the search query (lowercaseg), but couldn’t find a fix for the multi-words.

    Please can you check it and give me an answer?

    Thanks!

    #700067

    Artem Temos
    Keymaster

    Hello,

    You can fix it by applying patch # 700044. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.

    Kind Regards

    #700193

    PM
    Participant

    Hi,

    It fixed it! Thanks for the fast response and solution!

    #700242

    Artem Temos
    Keymaster

    You are always welcome. Feel free to contact us if you have any further questions.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Search synonyms: uppercase first letter + multi-word synonyms not working’ is closed to new replies.