Hi,
I want to ask a question related to Apache Benchmark Tool, $ ab.
For example, for now I can post an JSON object (stored in /tmp/data ) with -p /tmp/data option like this :
{
"query" : {
"bool" : {
"should" : [
{ "match" : { "gender" : "Male"}},
{ "match" : { "first_name" : "Albert"}},
{ "match" : { "last_name" : "Roy"}},
{ "match" : { "country" : "Canada"}},
{ "match" : { "languages" : "Azeri"}},
{ "match" : { "drugs" : "Loratadine"}},
{ "match" : { "currency" : "Rial"}}
]
}
}
}
If I want to post another object, I have to run ab again with different option, -p /tmp/data2.
My question is, how can I put 2 JSON objects in one file, /tmp/data, so ab can post these 2 object in 2 separated requests ?
Thanks.