Hello,
I have two queries that produce results basically in the same amount of time and I think there was more discrepancy in the 1.7 version versus the 2.0. I know filters and queries have been reworked so I was hoping I could get advice as to which one is more "efficient" or neither.
-- option 1
POST /siptrace-*/_search
{
"sort": [
{
"line": "asc"
}
],
"from": "0",
"size": "1000",
"query": {
"filtered": {
"query": {
"bool": {
"must": [
{
"match": {
"callid": "201369922_133976002@192.168.18.110"
}
}
]
}
}
}
}
}
-- option 2
POST /siptrace-*/_search
{
"sort": [
{
"line": "asc"
}
],
"from": "0",
"size": "1000",
"query": {
"filtered": {
"query": {
"term": {
"callid": "201369922_133976002@192.168.18.110"
}
}
}
}
}
Thanks in advance!