SearchWP

searchwp\query\partial_matches\buoy

Since: 4.0.0

Table of Contents

Control whether exact matches are given extra relevance weight when performing partial match logic.

Parameters

Type Parameter Default Since
Boolean $enabled true 4.0.0
Array $args
Key Type Value
tokens String[] Tokens for this search
query \SearchWP\Query The Query taking place
4.0.0

Examples

All hooks should be added to your custom SearchWP Customizations Plugin.

Disable exact match buoy

<?php
// Disable SearchWP's exact match buoy when performing partial match logic.
add_filter( 'searchwp\query\partial_matches\buoy', '__return_false' );

How to use this code