Hi,
While testing out the search performance, it was found that the search is considerably faster in 1.7.3 than in 2.0.0 when the document count in a single shard index is > 2.5 million.
There is a 200-300 ms difference in the search times between the versions on quite a few search requests.
I also notice that the query cache is being used inspite of the query NOT being executed in a filter context.
Here is the dump of the query cache that I see:
"query_cache" : {
"memory_size_in_bytes" : 145528,
"total_count" : 212888,
"hit_count" : 89651,
"miss_count" : 123237,
"cache_size" : 22,
"cache_count" : 22,
"evictions" : 0
}
Here is the sample query that is sent:
{
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"bool": {}
},
{
"term": {
"filename": {
"value": "file_363121",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_408663",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_384012",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_279082",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_103020",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_279445",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_453014",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_221093",
"boost": 5
}
}
},
{
"term": {
"filename": {
"value": "file_488775",
"boost": 5
}
}
}
]
}
}
]
}
}
}
Any help on tweaks to make search faster would be much appreciated.
Thanks,
Vignesh