Support » Plugin: Relevanssi - A Better Search » search with a single character

  • Resolved munokura

    (@nomura774)


    I am Japanese.
    I am not good at English.
    I write in Google translation, so it may be strange words.

    I want to realize a search with a single character because Japanese kanji understands even one character.
    in function.php
    add_filter ('relevanssi_block_one_letter_searches', '__return_false');
    I’m doing “Build the index” after adding, but it doesn’t work well.

    Please give me some advice.

    • This topic was modified 3 years, 4 months ago by munokura.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi doesn’t work properly in Japanese. Relevanssi can’t tell where words begin or end in Japanese writing, so while searching works in theory, the relevancy of the results probably won’t make much sense.

    You’re on the right track. You also need to adjust the “Minimum word length” setting to 1. It’s in the Indexing tab, hidden under “Advanced Indexing Controls”.

    Thread Starter munokura

    (@nomura774)

    The setting of one character has already been completed in “Advanced Indexing Controls”.
    After that, we do “Build the index”.
    Still, it is not working.

    Plugin Author Mikko Saari

    (@msaari)

    Try the Dashboard > Admin search to rule out possible problems with your theme. Does that search work any better?

    If the one-letter searches are not working, there may be very little that can be done. It’s a feature that really isn’t supposed to work all that well. Relevanssi is not a good tool for searching in Japanese.

    Thread Starter munokura

    (@nomura774)

    There was no change in turning on ‘Admin search’.
    It does not seem to work well in Japanese.

    It is very disappointing.

    Plugin Author Mikko Saari

    (@msaari)

    Yes, like I said in my first reply, I know that Relevanssi does not work in Japanese, and I would never recommend it. Relevanssi is based on words and simply doesn’t know how Japanese words work (there’s no easy method of telling where a Japanese word begins or ends; as far as I can tell, many Japanese search tools use dictionaries, but we have no resources for something like that).

    As far as I can tell, at least Algolia and Elastic can handle Japanese. I would expect many other big search tools can do it. Relevanssi is one guy in Finland who doesn’t know any Japanese; Algolia has a separate office in Japan, so their resources are much better.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘search with a single character’ is closed to new replies.