Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースの検索に sphinx を使用しています。この例では、2 つのインデックスをクエリしています。インデックス 1 とインデックス 2。
$res = $cl->Query( $query, "index1 index2" );
結果は良好ですが、結果の ID を index1 と index2 からコード内で区別することはできません。index1 からのすべての ID を in1_1、in1_600、in1_x のようにする方法はありますか?
それがどのインデックスから来たかを識別する属性を設定するだけです。
http://sphinxsearch.com/forum/view.html?id=5653