sql_attr_string 好像是在sphinx0.9.9上才出现的,我找了很久,在国内网上找不到 关于SetFilterString的用法,去英文网站一搜就搜索到了。 英文说明:Adds new string value filter. Only those documents where $attr column value matches the string value from $value will be matched (or rejected, if $exclude is true).
发布评论
评论(1)
sql_attr_string 好像是在sphinx0.9.9上才出现的,我找了很久,在国内网上找不到 关于SetFilterString的用法,去英文网站一搜就搜索到了。
英文说明:Adds new string value filter. Only those documents where $attr column value matches the string value from $value will be matched (or rejected, if $exclude is true).
用法:
$sph->SetFilterString($attr, $value)
$sph->SetFilterString($attr, $value, $exclude)
$value是字符串,不能为数组