simple query string searching for "diabetesin the disease name"query":"simple_query_string"query"'diabetes'"fields"["name" term filter filtering in all the diseases with "diabetesin the name"query":"filtered"filter"'term'{'name':'diabetes'although it won' show on the small amount of data at your disposalthe filter is way faster than the search search query will calculate search score for each of the diseases and rank them accordinglywhereas filter simply filters out all those that don' comply filter is thus far less complex than an actual searchit' either "yesor "noand this is evident in the output the score is for everythingno distinction is made within the result set the output consists of two parts now because of the significant terms aggregation before you only had hitsnow you have hits and aggregations firsthave look at the hits in figure this should look familiar by now with one notable exceptionall results have score of in addition to being easier to performa filter is cached by elasticsearch for figure hits output of filtered query with the filter "diabeteson disease name