Changeset 12948

Show
Ignore:
Timestamp:
10/22/07 10:18:34 (1 year ago)
Author:
rambo
Message:

forward port r12947

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.search/viewer.php

    r12936 r12948  
    146146        $data['query'] = trim($_REQUEST['query']); 
    147147 
    148         if (   $GLOBALS['midcom_config']['indexer_backend'] != 'solr' 
    149             && count(explode(' ', $data['query'])) == 1 
     148        if (   count(explode(' ', $data['query'])) == 1 
    150149            && strpos($data['query'], '*') === false) 
    151150        { 
    152151            /** 
    153              * If there is only one search term AND the backend is not Solr 
    154              * Append * to the query (Solr does this wilcard automagically) 
     152             * If there is only one search term append * to the query 
    155153             */ 
    156154            $data['query'] .= '*';