Exact search in wp search engine? (3 posts)

  1. fncll
    Posted 12 years ago #

    Is there any way to specify an exact search with the current wordpress search facility? I see some variables for "exact" and "sentence" but they don't appear to do anything at the moment...
    I've hacked the search to include metadata and am using a metadata field to contain a "source title" for quotes (and a plugin to get at the field and turn it into a link) and would like that link to point to an exact search for that source title in some automated fashion...

  2. carthik
    Posted 12 years ago #

    Currently, what you seek seems to be missing. You will need to hack your own, right now.
    The following post might help a little, perhaps :

  3. Anonymous
    Posted 12 years ago #

    line 1487 of functions.php from cvs version there is a :

    if ($exact) {
    $n = '';
    } else {
    $n = '%';

    when $n is the string to build the query (a % mean .* in sql)
    maybe if you hack by there you can have a exact search.
    Chmouel -- http://www.chmouel.com/wp/

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.