Lucene.NET的多面搜索 [英] Lucene.NET faceted search

查看:64
本文介绍了Lucene.NET的多面搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了有关执行多面搜索的出色教程.

I found a great tutorial on performing a faceted search.

http://www.devatwork. nl/articles/lucenenet/faceted-search-and-drill-down-lucenenet/

本文不会解释如何检索要筛选的缩小的可用属性(以进行进一步的深入研究).

This article does not explain how to retrieve the narrowed available attributes to filter from (for further drill down).

让我们说我正在寻找红色的规划师.当执行多面搜索时,我想返回所有可用属性以从中筛选出红色.然后,当我添加每周格式"过滤器时,我希望属性列表变得更小,仅包含适用于细分受众群的过滤器.

Lets say I am looking for planners that are red. When I perform the faceted search, I want to return all available attributes to filter from that are red. Then when I add a "weekly format" filter, I want the attribute list to get even smaller, containing only filters available for the segmented group.

我想喜欢使用Solr/SolrNET,但是我处于共享托管的情况下,对实际服务器的访问受到限制.

I want love to use Solr/SolrNET but I am in a shared hosting situation with limited access to the actual server.

我是lucene.net的新手,因此非常感谢示例.

I am fairly new to lucene.net, so examples are much appreciated.

推荐答案

IIUC,您将获得一个BitArray,其中包含过滤结果的列表.在本教程的示例中,您将具有CombinedResults作为此列表.如果您想进一步缩小范围,则需要重复此过程:运行另一个searchQuery并将结果与​​您对CombinedResults使用的BitArray相交.

IIUC, you get a BitArray containing the list of the filtered results. In the tutorial's example, you will have combinedResults as this list. If you want to further narrow this down, you need to reiterate the process: run another searchQuery and intersect the results with the BitArray you have for combinedResults.

这篇关于Lucene.NET的多面搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆