• Hi,

    First of all, thank you for your plugin, it is one of the best search plugins for WordPress by far, and recommended particularly for any website in Japanese.

    We have a strange issue searching the string PAT. It does not show any results, although the string can be found here:

    https://graebert.jp/faq/?p=10332

    We tried different combinations, adding “” marks, also adding extra characters to see when it works, and worked when adding extra characters that are found as part of the post body:

    「 .pat 」のファイル

    There are no problems using any other 3-letter combinations (as far as we know), examples, DWG, DXF, SHX, but for some reason PAT on its own doesn’t bring any results. Any ideas?

    Thanks for your help in advance.

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

    (@ishitaka)

    Hi,

    It seems that MySQL (ngram + ngram_token_size>=2) may not correctly search for strings with 3 or less alphabetic characters including certain strings (an, at, in, etc.).

    https://dev.mysql.com/doc/refman/5.7/en/fulltext-stopwords.html

    I think you can work around this problem by setting ngram_token_size to 1 and rebuilding the index. Please try it.

    Thread Starter graebertjapan

    (@graebertjapan)

    Ishitakaさん,

    Thanks for your prompt response, we will give your suggestion a try and report back; but most likely you just ‘hit the nail’.

    どうもありがとうございました!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot search string PAT’ is closed to new replies.