Ich habe 4 Tabellen zur Indizierung. Mein Problem ist,Wie setzt man die Priorität auf Tabellen?
Ich möchte Suchergebnisse nicht nach Gewicht, sondern nach Tabellen Priorität bekommen. I Mittelwert Tabelle 1 übereinstimmende Ergebnisse zeigen zuerst dann für Tabelle 2 und so weiter.
Derzeit werden die Ergebnisse zuerst nach dem höchsten Gewicht abgerufen.
Abfrage
Select UUID_SHORT() AS sphinxid, info as keyword, 'column_name' as type from table 1
UNION ALL
Select UUID_SHORT() AS sphinxid, info as keyword, 'column_name' as type from table 2
UNION ALL
Select UUID_SHORT() AS sphinxid, info as keyword, 'column_name' as type from table 3
UNION ALL
Select UUID_SHORT() AS sphinxid, info as keyword, 'column_name' as type from table 4;