• Resolved fidoboy

    (@fidoboy)


    When doing searches in other languages than english and using accented chars (áéíóú) the results page displays cutted words instead the typed by the user. For example, if I do the search: “el gran camión” the result page displays this: “gran camió” and the N at the end is missing.

    NOTE: I’m using a list of stopwords and that’s why the result page doesn’t display the word “el” at the begining of the phrase

    • This topic was modified 2 years, 5 months ago by fidoboy. Reason: Added note
    • This topic was modified 2 years, 5 months ago by fidoboy.
Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author Ajay

    (@ajay)

    You’re correct in the assessment above on how it works.

    The plugin uses FULLTEXT searching feature of MySQL which ignores regular stopwords and attempts to analyse phrases.

    The bannned words are what they mean – words you don’t want to show up in search results like swear words. The default list is the English set of typical swear words.

    Is there a reason you’re removing out so many stopwords including a word like a and e.
    Banning a or e ends up removing them and all versions of them including accented characters. This is done intentionally to avoid someone using a swear word but replacing u with it’s accent for example.

    My suggestion is to limit these to only to words you really require banned.

    Thread Starter fidoboy

    (@fidoboy)

    I believe that I understand now how it works. I didn’t know that nude SQL engine has the knowledge to discard regular words in every language and that’s why I was trying to provide the most common ones.

    If the purpose of that feature is to really ban (and not stop) swear words, then I believe that I’ll leave it empty. Initially my purpose was to make the queries faster cause my site has thousands of posts with a lot of text. I believed that removing all those words the operation could be a bit fast.

    So, thanks anyway for all your explanations and I’m sorry for the misunderstanding. I’ve removed all my stop words list and now it’s working fine, just as expected.

    As a recomendation, if you accept it, I think that it could be a good idea to put this explanation into the settings page, showing the user that the only purpose of that list of words is to avoid ugly language or politically incorrect words.

    However, I think that there is some kind of bug cause the plugin engine is removing letters inside the words, and this is not the expected behaviour.

    You can consider this issue as solved. Kind regards and keep up the good work, this is the best search plugin I’ve found to enhance WordPress searches.

    • This reply was modified 2 years, 5 months ago by fidoboy.
    • This reply was modified 2 years, 5 months ago by fidoboy.
    • This reply was modified 2 years, 5 months ago by fidoboy.
    • This reply was modified 2 years, 5 months ago by fidoboy.
    • This reply was modified 2 years, 5 months ago by fidoboy.
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Searches with accents (áéíóú)’ is closed to new replies.