Sphinxql Replace() 函数类似于 mysql
Sphinxql Replace() function like mysql
我可以在 mysql 上找到搜索,例如下面的示例;
记录是:I'Histoire
查询搜索:IHistoire
通过这个 sql 查询,我可以找到包含 ' 字符串的单词。
select
kitap_id,kitap_Adi,turu,fiyati,kargo,satici,yazari,yayinevi,yayin_Yili,yayin_Yeri,kucuk_Re
sim,kondisyon FROM kitaplar WHERE onay='1' and (REPLACE(kitap_Adi,'''','' ) 喜欢
'%IHistoire%' OR yazari like '%IHistoire%') order by fiyati asc LIMIT 0,5;
但是在 sphinx 上我该怎么做呢?在下面的查询中,我找到了匹配项,我还想找到带有 '.
的匹配项
select
kitap_id,kitap_Adi,turu,fiyati,kargo,satici,yazari,yayinevi,yayin_Yili,yayin_Yeri,kucuk_Re
sim,kondisyon from test1 where match ('@(kitap_Adi,yazari)(IHistoire)') and onay=1 order
通过 kitap_Adi asc, fiyati asc LIMIT 0,5\G;
我如何在 sphinxql 中执行 replace(),我可以在 mysql 端执行但如何在 sphinx 端执行?
谢谢
ignore_chars
似乎非常适合这个...
我可以在 mysql 上找到搜索,例如下面的示例;
记录是:I'Histoire 查询搜索:IHistoire
通过这个 sql 查询,我可以找到包含 ' 字符串的单词。
select kitap_id,kitap_Adi,turu,fiyati,kargo,satici,yazari,yayinevi,yayin_Yili,yayin_Yeri,kucuk_Re sim,kondisyon FROM kitaplar WHERE onay='1' and (REPLACE(kitap_Adi,'''','' ) 喜欢 '%IHistoire%' OR yazari like '%IHistoire%') order by fiyati asc LIMIT 0,5;
但是在 sphinx 上我该怎么做呢?在下面的查询中,我找到了匹配项,我还想找到带有 '.
的匹配项select kitap_id,kitap_Adi,turu,fiyati,kargo,satici,yazari,yayinevi,yayin_Yili,yayin_Yeri,kucuk_Re sim,kondisyon from test1 where match ('@(kitap_Adi,yazari)(IHistoire)') and onay=1 order 通过 kitap_Adi asc, fiyati asc LIMIT 0,5\G;
我如何在 sphinxql 中执行 replace(),我可以在 mysql 端执行但如何在 sphinx 端执行?
谢谢
ignore_chars
似乎非常适合这个...