IM一個sql,但我有一件事,當我使用獅身人面像比較返回不太匹配使用獅身人面像,使searchs在我的網站,例如搜索
LIKE '%19.628%'
返回即時尋找的數據(在phpMyAdmin搜索8匹配),但是當我使用獅身人面像比較一個SQL LIKE搜索返回較少的匹配(3匹配)。
這裏的PHP代碼
$sp->SetMatchMode(SPH_MATCH_ANY);
$sp->SetArrayResult(true);
$sp->SetLimits(0,1000000);
$results = $sp->Query($query, 'data_base');
爲什麼呢?
關於
感謝您的幫助,即時通訊使用defautl phrase_boundary,'$ query'僅包含19.628,star_syntax,未啓用。我更改配置文件添加您的建議,問題繼續,這裏是我的配置文件的一部分: –
'phrase_boundary_step = 100'' phrase_boundary =。,?,!,U + 2026'' enable_star = 1',即時通訊認爲問題在sql_query中有起源,導致即時通訊使用這個'SELECT * FROM juris',可以嗎? –
defualt phrase_boundary是空的。此外,它隻影響存儲索引的單詞位置,停止從匹配的acorss邊界顯式的詞組搜索。它不影響查詢,在phrase_boundary中的字符在查詢中沒有任何特殊含義。 – barryhunter