![Blog top image](https://storage.googleapis.com/multi-site-prod/files/marufh.com/2023/26666c66-c080-483e-ac7f-9541308bf760.jpeg)
Filter vs Query
Filter query তে কোন score থাকার ব্যাপার নাই, তাই filter দিয়ে প্যাকেট করা query ফাস্টার
GET employee/_search { "query": { "bool": { "filter": { "match": { "gender": "Male" } } } } }
যেহেতু এখানে Elasticsearch স্কোর বসাবে, তাই এটা সামান্য হলে স্লো হবে
GET employee/_search { "query": { "bool": { "must": { "match": { "gender": "Male" } } } } }