SearchWP Archive

Class: Query

Controls the threshold that SearchWP considers when deciding whether to perform an AND logic pass. AND logic can be problematic resource-wise and in some cases result in long query times. Because of SearchWP’s relevance algorithm, skipping AND logic because there are too many search terms will not degrade the quality of results as the most […]

Fires immediately before a \SearchWP\Query query is executed, before Mod(s) have been set up.

Using this hook you can directly manipulate the search query itself.

Control whether AND logic is performed. Note: By default AND logic will be skipped if the token threshold is breached. The default threshold is 5 but can be customized with the searchwp\query\logic\and\token_threshold hook.

Create a Better WordPress Search Experience Today

Never lose visitors to unhelpful search results again. SearchWP makes creating your own smart WordPress search fast and easy.

Get SearchWP Now
Multiple Search Engines Icon