Queries vs. Filters

前端 未结 8 823
太阳男子
太阳男子 2020-11-29 15:20

I can\'t see any description of when I should use a query or a filter or some combination of the two. What is the difference between them? Can anyone please explain?

8条回答
  •  [愿得一人]
    2020-11-29 15:35

    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.

提交回复
热议问题