Changeset 1015 for trunk/search.php


Ignore:
Timestamp:
Jan 27, 2006, 11:40:51 PM (18 years ago)
Author:
plg
Message:

Search engine redesign, second part :

improvement: in category.php, an icon opening a popup display the list of
search rules.

modification: function get_search_array is responsible of search rules
retrieving from database. This function is called from get_sql_search_clause
and from search_rules.php

modification: ability to search multiple authors. Warning: this version of
search tool can't search author names including any blank space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/search.php

    r1009 r1015  
    6565  {
    6666    $search['fields']['author'] = array(
    67       'words' => array($_POST['search_author']),
     67      'words' => preg_split(
     68        '/\s+/',
     69        $_POST['search_author']
     70        ),
     71      'mode' => 'OR',
    6872      );
    6973  }
Note: See TracChangeset for help on using the changeset viewer.