Forums

Relevanssi - A Better Search
Can I approve/decline search request by my own algorithm? (2 posts)

  1. SamMan
    Member
    Posted 5 months ago #

    Hello!

    Is there some filter/action in this excellent plugin that make me possible to intercept the very beginning of search process and allow/disallow it? Quick example:

    -user of my blog enter "AAB" and press "Search" button -> OK, normal search allowed
    -user of my blog enter "AAA" and press "Search" button -> REJECT and show standard "nothing found" web-page EVEN there is a post with "AAA" in text/title. It's because my "search policy" state: 'ignore any search request with 3+ identical chars'

    Is it real to implement?

    I thank in advance for your answers!

    http://wordpress.org/extend/plugins/relevanssi/

  2. msaari
    Member
    Posted 5 months ago #

    I don't think you can intercept it, but you can use relevanssi_hits_filter to kill the search results depending on the query.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags