2010-12-02 88 views
1

我有像這樣定義的源sql_query獅身人面像+的Postgres + UUID問題

sql_query    = SELECT \ 
    criteria.item_uuid, \ 
    criteria.user_id, \ 
    criteria.color, \ 
    criteria.selection, \ 
    criteria.item_id, \ 
    home.state, \ 
    item.* \ 
    FROM criteria \ 
    INNER JOIN item USING (item_uuid) \ 
    INNER JOIN user_info home USING (user_id) \ 
    WHERE criteria.item_uuid IS NOT NULL 

然後索引:

index csearch { 
    source     = csearch 
    path     = /usr/local/sphinx/var/data/csearch 
    docinfo     = extern 
    enable_star    = 1 
    min_prefix_len   = 0 
    min_infix_len   = 0 
    morphology    = stem_en 
} 

但是當我運行indexer --rotate csearch我得到:

indexing index 'csearch'... 
WARNING: zero/NULL document_id, skipping 

這個想法是,item_uuid列是我想要的標識符,基於索姆其他欄的組合。 item_uuid列是postgres中的uuid類型:也許sphinx不支持這個?無論如何,這裏的任何想法將不勝感激。

回答