• Resolved SkylerMax

    (@skylermax)


    Hi Mikko,

    I have a strange problem. Some of the tags are not in the Revelanssi Index in.

    For example, the post has the following tags:

    Cyber Defense,OT,webinar,Threat Detection,SCADAfence,ipari kibervédelem,IoT,IT/OT

    But is I debug the post index, there are only these tags:
    cyber defense detection iot ipari kibervédelem scadafence threat webinar

    IT/OT and OTis missing. Of course the posts of these tags will not be found.

    I tried to rebuild the index but it has not helped.

    Thank you for your help!

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

    (@msaari)

    No worries: there’s nothing strange about this, it’s basic Relevanssi behaviour. By default, the minimum word length for Relevanssi is three letters, so words shorter than that are not indexed. You can adjust the word length in the advanced indexing settings. Then just rebuild, and the short words are included.

    IT/OT is indexed as “IT OT” because the slash is replaced with a space. If you want to change that,

    add_filter( 'relevanssi_punctuation_filter', 'rlv_adjust_punctuation' );
    function rlv_adjust_punctuation( $replacements ) {
        $replacements['/'] = '';
        return $replacements;
    }

    will fix this by removing the slash, so “IT/OT” becomes “ITOT”.

    Thread Starter SkylerMax

    (@skylermax)

    Thank you very much your help! I changed the ‘/’ to ‘-‘.

    Have a nice weekend!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not all the tags are indexed’ is closed to new replies.