查询与过滤器 [英] Queries vs. Filters

查看:147
本文介绍了查询与过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看不到任何使用查询或过滤器或两者的组合的描述。任何人都可以解释或指出我的解释?

I can't see any description of when I should use a query or a filter or some combination of the two. Can anyone please explain or point me to an explanation?

推荐答案

差异很简单:过滤器被缓存,不影响得分,因此比查询快。也可以查看此处。让我们说一个查询通常是用户键入的,几乎不可预测的,而过滤器可以帮助用户缩小搜索结果,例如使用facet。

The difference is simple: filters are cached and don't influence the score, therefore faster than queries. Have a look here too. Let's say a query is usually something that the users type and pretty much unpredictable, while filters help users narrowing down the search results , for example using facets.

这篇关于查询与过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆