Is {Filter}ing faster than {Query}ing in Lucene?

后端 未结 4 1149
囚心锁ツ
囚心锁ツ 2020-12-13 15:15

While reading \"Lucene in Action 2nd edition\" I came across the description of Filter classes which are could be used for result filtering in Lucene. Lucene ha

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 16:00

    If the filter will be reused it is wise to use this instead of queries because of caching purposes. If you are not going to be using the scoring or field values it also makes sense to use filter over query.

    Hope this helps.

提交回复
热议问题