php - SPHINX enable_star not working -


i wish search substrings using results sphinx returned.

is setting ok?

do need restart searchd process?

index dev_jobs {     source      = dev_jobs_src     path        = /home/sphinx/jobs/dev_jobs     docinfo     = extern     charset_type    = utf-8     enable_star = 1     min_infix_len = 3    }  searchd {     port        = 9312     log     = /var/log/sphinx/searchd.log     query_log   = /var/log/sphinx/query.log     read_timeout    = 5     max_children    = 30     pid_file    = /var/run/sphinx/searchd.pid     max_matches = 100000     seamless_rotate = 1     preopen_indexes = 0     unlink_old  = 1 } 

and php part of code:

$sphinx_search = yii::app()->search;         $sphinx_search->setselect('*');          $sphinx_search_final = '';          $sphinx_search_query = trim($this->q);         if (strlen($sphinx_search_query) > 0) {             $sphinx_search_query = str_replace('-', ' ', $sphinx_search_query);             $keys = explode(' ', $sphinx_search_query);             foreach ($keys $k => $key) {                 if ($key) {                     $keys[$k] = $key;                 } else {                     unset($keys[$k]);                 }             }             if (count($keys) > 0) {                 $sphinx_search_final = ' @(position_name,employer_name,employer_first_name,employer_last_name,employer_position) ' . $sphinx_search_query .                         ' @(position_name,employer_name,employer_first_name,employer_last_name,employer_position) ' . implode('|', $keys);             }         } 

do need restart searchd process?

more importantly need rebuild index. if use --rotate, tell searchd reload index.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -