I am currently indexing a mysql table using sphinx. I want the index by giving a condition in query apart from id.
My sql_query is
SELECT id, group_id, concat(ifnull(title, ""), ifnull(tags, "")) \
FROM items \
WHERE group_id in (262, 147, 165, 190, 256, 272, 442, 577, 933) and id>=$start AND id<=$end;
My sql_info is
SELECT id, concat(ifnull(title, ""), ifnull(tags, "")) FROM items WHERE group_id in (262, 147, 165, 190, 256, 272, 442, 577, 933) and id=$id;
But, when I try to index the table using there queries, the index fails.
1) Am I missing anything in the above queries.?
2) How do I index queries by giving conditions?