Queries vs. Filters

前端 未结 8 825
太阳男子
太阳男子 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:50

    This is what official documentation says:

    As a general rule, filters should be used instead of queries:

    • for binary yes/no searches
    • for queries on exact values

    As a general rule, queries should be used instead of filters:

    • for full text search
    • where the result depends on a relevance score

提交回复
热议问题