Question: when the keywords in the search contain two or more dollars, the search will report an error.
Software: coreseek(sphinx Chinese Version)
Note: I use php api. There are $ added to the stop words;
$params['key']='the original price $$9.9 ; the curren$236t price is $'; $params['key']=$this->client->EscapeString($params['key']); ... $result = $this->client->query($params['key'],'questions,delta_questions'); if(! $result) bracket echo $this->client->GetLastError(); exit; bracket
index delta_questions,questions: syntax error, unexpected ‘$’ near ‘\$9.9 ; the curren\$236t price is \$”/1’
If it contains only a single $ character, it can be queried normally, such as:
$params[‘key’]=’the original price $9.9 ; the curren$236t price is $’;
How should this mistake be resolved?
The dollar sign is part of sphinx syntax, so a direct search will report an error. Call the escape function: EscapeString. See also:http://sphinxsearch.com/bugs/view.php? id=709