我正在尝试为我的 mysql 表的相同副本创建 sphinx 索引,但是我的自动增量 ID 出现错误。所以我不能创建一个相同的自动递增 id 的字段名。
错误:
WARNING: attribute 'u_g_id' not found - IGNORING
这是我的配置..
###############################
## Sphinx configuration file ##
###############################
# Source For Assamese Male Profiles
source usergallerysrc
{
type = mysql
sql_host = localhost
sql_user = test
sql_pass = test
sql_db = test
sql_query = SELECT u_g_id,u_g_u_id,u_g_type,u_g_path,u_g_time from user_gallery where u_g_status='1'
sql_attr_bigint = u_g_id
sql_attr_bigint = u_g_u_id
sql_attr_uint = u_g_type
sql_attr_timestamp = u_g_time
sql_field_string = u_g_path
}
######################
## index definition ##
######################
# gallery index
index usergalleryindex
{
source = usergallerysrc
path = /usr/local/sphinx/var/data/usergalleryindex/usergalleryindex
docinfo = extern
mlock = 0
morphology = none
min_word_len = 1
charset_type = sbcs
html_strip = 1
html_remove_elements = style, script
enable_star = 1
min_infix_len = 3
}
任何人都可以帮助我...提前谢谢...