Changeset 273


Ignore:
Timestamp:
Nov 8, 2003, 10:13:06 AM (18 years ago)
Author:
Ivor Williams
Message:

Change NOT search syntax to use '-' instead of '!'. Update POD to reflect this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/SuperSearch.pm

    r272 r273  
    287287
    288288        term: '(' list ')' {$return = $item[2]}
    289             |        '!' term {$return = ['NOT', @{$item[2]}]}
     289            |        '-' term {$return = ['NOT', @{$item[2]}]}
    290290#           |        word ':' term {$return = ['meta', $item[1], $item[3]];}
    291291            |        '"' word(s) '"' {$return = ['word', @{$item[2]}]}
     
    442442=item B<NOT searches>
    443443
    444 Clauses preceded by exclamation marks (C<!>), for example:
    445 
    446   !expensive
    447 
    448 will return all pages that do not contain the word "expensive".
     444Words and phrases preceded by a minus sign are excluded, for example:
     445
     446  restaurant -expensive
     447
     448will return all pages that contain the word "restaurant" and do not
     449contain "expensive".
     450
     451Note that a NOT search is used to qualify an existing search, so you
     452cannot use -foo standalone to give you all pages without foo.
    449453
    450454=cut
Note: See TracChangeset for help on using the changeset viewer.