Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Advanced Search question

    Is there a way to negate the return of certain items that are returned with the Advanced Search.

    For instance, lets say that I am searching for for the word
    "owl" . Currently, the returned items also include "bowl",
    "howling", etc.

    Any ideas?

  2. #2
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Advanced Search question

    I FOUND A SOLUTION that works for me.

    I found a way to force and EXACT match, more or less.
    It turns out that you can FORCE the inclusion of whitespace
    in your keyword search by using the MySql wild card character "%".

    So, in my previous example where I was looking for the word OWL,
    I will now search for "% owl %" . What this does is to force
    the word OWL to have whitespace at both ends of the word.

    It seems to work for me. Thanks to all those that puzzled over this
    with me.

  3. #3
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: Advanced Search question

    where did you put the percentage signs in the code?

  4. #4
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Advanced Search question

    The percentage signs are not in the code but in the advanced search keywords input field. I think it would take some significant code work to change the advanced search php code to be able to do exact searches plus it might interfere with the regular search routines. One might be able to right an alternative advanced search php file that would be only for exact searches but that is a task that I am not ready to undertake.

 

 

Similar Threads

  1. v154 "Fancy" Advanced Search Question
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Jun 2015, 11:39 PM
  2. Advanced Search Question (limit to category box)
    By gazag in forum Templates, Stylesheets, Page Layout
    Replies: 61
    Last Post: 8 May 2013, 01:29 AM
  3. v139h Advanced Search Question
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 17 Oct 2012, 06:04 AM
  4. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  5. Remove 'Search by Date Added' field from advanced search page?
    By gaffettape in forum General Questions
    Replies: 7
    Last Post: 24 Jan 2010, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg