1
我有奇怪的麻煩創建於獅身人面像2.0.5-id64釋放指數(r3308)獅身人面像怪異的行爲
/etc/sphinx/sphinx.conf
source keywords
{
// ..
sql_query = \
SELECT keywords.lid, keywords.keyword FROM keywords_sites \
LEFT JOIN keywords ON keywords_sites.kid = keywords.kid \
GROUP BY keywords_sites.kid \
sql_attr_uint = lid
sql_field_string = keyword
// ...
}
我得到警告
WARNING: attribute 'lid' not found - IGNORING
但是,當我改變查詢:
sql_query = \
SELECT 1, keywords.lid, keywords.keyword FROM keywords_sites \
LEFT JOIN keywords ON keywords_sites.kid = keywords.kid \
GROUP BY keywords_sites.kid \
我沒有收到任何警告。爲什麼會發生?