mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:41:59 +01:00
Fixed append_queries to honor RT variable
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
2b45170fc1
commit
ff93c47930
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user