I'm trying to write a query that joins a handful of tables from MySQL with two SphinxSE tables. It's basically an "each row has two names" type database, and those two names are each an index that is linked to a SphinxSE table... my goal is to do a search that is basically "either one of the names match this string in Sphinx".
The query I've tried using is:
SELECT * from names
LEFT JOIN name_1_se ON name_1_se.id=names.name_1_id
LEFT JOIN name_2_se ON name_2_se.id=names.name_2_id
WHERE name_1_se.query=('some random name;mode=phrase;limit=100000;maxmatches=100000')
OR name_2_se.query=('some random name;mode=phrase;limit=100000;maxmatches=100000')
(The name_1_se and name_2_se tables are SphinxSE tables).
If I use just a single lookup in the where, it works fine... adding the second clause (either one) that forces two SphinxSE 'lookups' forces the results to return empty.
Is what I am trying to do possible, or is it a known issue with SphinxSE? The closest I could find on the Sphinx site was this bug http://sphinxsearch.com/bugs/view.php?id=255 from 2008.
Thanks!