I have a very long and complex sphinx config
file with multiple indexes. The main one (idx_Main) is not only huge it indexes a 2 million+ record table
. Sometimes I encounter unexpected search (SphinxQL
) results and testing becomes a challenge due to the hour long rotate. Ideally I could run this exact same index on a test table with a few sample records.
However I haven't found a good way to do that;
If I copy and paste using another index (e.g. idx_test
) I quickly get out of 'synch (changes to the idx_test not carrying forward to changes in idx_Main index and vice-versa)
if I just change the Select
I overwrite the original index
if I change the Select
and the index name and the src_index
and rotate I seem to mess up Sphinx since I now have a stored index (idx_Main
) that is no longer in the configuration file.
In an ideal world I could have an Include
in the config so I could store e.g.
{ idx_Main Various Settings }
{ idx_Test Include idx_Main Settings }
But I see no way to do that. What would the most efficient way be then to test changes of a large production index on a smaller table using the same settings w/o corrupting/overwriting the production/main index?