field - Sphinx create attribute for mysql primary key auto increment id -
i trying create sphinx index same copy mysql table there got error auto increment id. can't create same field name of auto increment id.
error:
warning: attribute 'u_g_id' not found - ignoring here config..
############################### ## sphinx configuration file ## ############################### # source 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 user_gallery 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 } any 1 can me... in advance...
the first column sql_query result used document_id always. can't defined attribute.
so u_g_id cant found because been used.
if want use column document_id , attribute (although can't think why would) have duplicate in query.
Comments
Post a Comment