How does Lucene/Solr achieve high performance in multi-field / faceted search?

前端 未结 2 1602
臣服心动
臣服心动 2021-02-06 02:41

Context

This is a question mainly about Lucene (or possibly Solr) internals. The main topic is faceted search, in which search can happen along

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 02:59

    An explaining post can be found at: http://yonik.wordpress.com/2008/11/25/solr-faceted-search-performance-improvements/

    The new method works by un-inverting the indexed field to be faceted, allowing quick lookup of the terms in the field for any given document. It’s actually a hybrid approach – to save memory and increase speed, terms that appear in many documents (over 5%) are not un-inverted, instead the traditional set intersection logic is used to get the counts.

提交回复
热议问题