• Resolved flaneuring

    (@flaneuring)


    I don’t think I’ve ever searched for emoji before, but now there’s a case where it would be helpful. I searched for an emoji that is on the site and came up with no results. Maybe it’s because it’s only one character?

    This is probably an unusual case but would be handy for me.

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

    (@msaari)

    It’s a minimum word length issue, yes. Some emoji are actually two characters. For example ??? is “fist character” and “black skin tone character”. Some are just one character, like ?.

    You must adjust the minimum word length to 1 from Relevanssi advanced indexing settings and then allow one-letter searches with:

    add_filter( 'relevanssi_block_one_letter_searches', '__return_false' );
    Thread Starter flaneuring

    (@flaneuring)

    So it is possible… thank you!

    Plugin Author Mikko Saari

    (@msaari)

    Relevanssi has no problems with emoji in itself, they’re characters like anything else.

    Thread Starter flaneuring

    (@flaneuring)

    I tried running the code snippet using the Code Snippets plugin (in addition to changing the indexing setting) but this didn’t work. It’s not important enough to debug, but thanks for the response.

    Plugin Author Mikko Saari

    (@msaari)

    Did you rebuild the index after changing the setting?

    Thread Starter flaneuring

    (@flaneuring)

    I just rebuilt the index and now it works! Thanks for your assistance.

    • This reply was modified 5 months, 3 weeks ago by flaneuring.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.