Changeset 12947

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

append * to single term also when using Solr backend

Files:

Legend:

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

    r12934 r12947  
    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'] .= '*';