I am working with Sphinx and would like to implement string sorting. I understand that this can be accomplished using attributes and String Ordinals, however, I also want to implement Live Index Updates and string ordinals do not work with multiple indexes.
What would be the best way to approximate string sorting with multiple indexes? I am thinking along the lines of generating an integer from the first few letters of the string, for example:
select concat(ord('t'),ord('e'),ord('s'));
would allow me to add the first three characters of the string 'test' to an integer attribute (assuming that it would be added to sphinx as an integer even though it is a string in MySQL). This would give me approximate sorting, which is probably good enough.