Does Lucene support Faceted Search with Multiple Field Values

倾然丶 夕夏残阳落幕 提交于 2021-01-29 20:18:25

问题


I am reading this article from http://www.devatwork.nl/index.php/articles/lucenenet/faceted-search-and-drill-down-lucenenet/

The author did not say whether Lucene support storing multiple values in each field.

To follow the example in the article, a book may have multiple genres and multiple authors.

Is it possible to store more than one genres in the genre field?

Is it also possible to perform searches using multiple genres or multiple authors? The result should return a document if matching one or more of the query genres and matching one or more of the authors.

Thanks,

Vu Dang


回答1:


Core Lucene doesn't support multi-valued faceted queries, but these extension projects do:

  • Solr
  • bobo-browse



回答2:


Here is a doc about faceted search

https://cwiki.apache.org/LUCENENET/simple-faceted-search.html

and its usage

https://svn.apache.org/repos/asf/incubator/lucene.net/branches/Lucene.Net_2_9_4g/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs



来源:https://stackoverflow.com/questions/6514390/does-lucene-support-faceted-search-with-multiple-field-values

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!