Fixed append_queries to honor RT variable

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-06-06 16:35:39 +02:00
parent 2b45170fc1
commit ff93c47930

View File

@ -69,12 +69,16 @@ run_05_sphinx_tests() {
append_queries() {
append_query "select * from main1,dailydelta1,delta1 WHERE MATCH('@subject budaörsi dc felmérés')" 9
append_query "select * from main1,dailydelta1,delta1 WHERE MATCH('@sender gruppi.hu')" 4
append_query "select * from main1,dailydelta1,delta1 WHERE attachments > 0 AND MATCH('@subject spam ')" 85
append_query "select * from main1,dailydelta1,delta1 WHERE attachments > 0 AND MATCH('@subject spam @attachment_types image')" 15
append_query "select * from main1,dailydelta1,delta1 WHERE MATCH('@(subject,body) New Task TSK002*')" 29
append_query "select * from main1,dailydelta1,delta1 WHERE MATCH('@subject \"virtualfax daily summary\" | \"adsl hibajegy\"')" 11
local index="main1,dailydelta1,delta1"
if [[ $RT -eq 1 ]]; then index="piler1"; fi
append_query "select * from ${index} WHERE MATCH('@subject budaörsi dc felmérés')" 9
append_query "select * from ${index} WHERE MATCH('@sender gruppi.hu')" 4
append_query "select * from ${index} WHERE attachments > 0 AND MATCH('@subject spam ')" 85
append_query "select * from ${index} WHERE attachments > 0 AND MATCH('@subject spam @attachment_types image')" 15
append_query "select * from ${index} WHERE MATCH('@(subject,body) New Task TSK002*')" 29
append_query "select * from ${index} WHERE MATCH('@subject \"virtualfax daily summary\" | \"adsl hibajegy\"')" 11
}