1. <tfoot id='cA454'></tfoot>
      <i id='cA454'><tr id='cA454'><dt id='cA454'><q id='cA454'><span id='cA454'><b id='cA454'><form id='cA454'><ins id='cA454'></ins><ul id='cA454'></ul><sub id='cA454'></sub></form><legend id='cA454'></legend><bdo id='cA454'><pre id='cA454'><center id='cA454'></center></pre></bdo></b><th id='cA454'></th></span></q></dt></tr></i><div id='cA454'><tfoot id='cA454'></tfoot><dl id='cA454'><fieldset id='cA454'></fieldset></dl></div>
      <legend id='cA454'><style id='cA454'><dir id='cA454'><q id='cA454'></q></dir></style></legend>

      <small id='cA454'></small><noframes id='cA454'>

        • <bdo id='cA454'></bdo><ul id='cA454'></ul>

        如何使用 Lucene.Net 创建构面

        时间:2023-09-14

        • <tfoot id='sRqg5'></tfoot>

            <small id='sRqg5'></small><noframes id='sRqg5'>

              <legend id='sRqg5'><style id='sRqg5'><dir id='sRqg5'><q id='sRqg5'></q></dir></style></legend>
            • <i id='sRqg5'><tr id='sRqg5'><dt id='sRqg5'><q id='sRqg5'><span id='sRqg5'><b id='sRqg5'><form id='sRqg5'><ins id='sRqg5'></ins><ul id='sRqg5'></ul><sub id='sRqg5'></sub></form><legend id='sRqg5'></legend><bdo id='sRqg5'><pre id='sRqg5'><center id='sRqg5'></center></pre></bdo></b><th id='sRqg5'></th></span></q></dt></tr></i><div id='sRqg5'><tfoot id='sRqg5'></tfoot><dl id='sRqg5'><fieldset id='sRqg5'></fieldset></dl></div>
                <bdo id='sRqg5'></bdo><ul id='sRqg5'></ul>

                    <tbody id='sRqg5'></tbody>
                  本文介绍了如何使用 Lucene.Net 创建构面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在构建一个搜索数据库并显示结果的 C# Windows 窗体应用程序.我正在尝试找到有关如何使用 Lucene 创建构面的指南,但似乎我做不到.我正在创建索引,并且可以搜索数据库,但我想为结果创建方面.是否有任何指南或项目可用作示例?

                  I am building a C# windows form application that searches a database and displaying the results. I am trying to find a guide on how to create facets with Lucene but it seems that I can't. I am creating the index and I am able to search a database but I want to create facets for the results. Is there any guide or a project to use as example?

                  EDIT这是到目前为止我的项目的链接https://github.com/assignment128A-adopse/Assignment

                  EDIT here's the link to my project so far https://github.com/assignment128A-adopse/Assignment

                  任何帮助/建议都会有所帮助

                  any help/suggestion would be helpful

                  推荐答案

                  有几个选项.

                  在 Lucene.Net 4.8.0 中,您可以使用 Lucene.Net.Facet 模块来设置分面搜索.请参阅 Lucene API 文档.

                  In Lucene.Net 4.8.0, you can use the Lucene.Net.Facet module to setup faceted search. See the Lucene API documentation.

                  您可以使用 Simple Faceted Search contrib 项目,但据我所知,它只会为您分组并获取它们的计数.我相信,如果您需要实际列出与所选方面匹配的内容,您必须自己构建它.

                  You could use the Simple Faceted Search contrib project, but as far as I can tell, it only groups the facets for you and gets their count. I believe that if you need to actually list what matches the selected facets you have to build it yourself.

                  https://cwiki.apache.org/confluence/display/LUCENENET/简单+分面+搜索

                  https://github.com/apache/lucenenet/tree/812e1c541f1a00392391c5761fd3dcb7b0aedd88/src/contrib/SimpleFacetedSearch

                  https://github.com/apache/lucenenet/blob/3.0.3/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs

                  使用 BoboBrowse.Net.它是一个全面的搜索引擎,不仅可以计算方面的数量,还允许选择方面以及检索具有内置排序和分页的匹配列表.还有很多内置的 facet 类型,例如范围和地理位置.

                  Use BoboBrowse.Net. It is a full faceted search engine that not only works out the facet counts, but allows facets to be selected as well as retrieving the list of matches with built in sorting and paging. There are also lots of built-in facet types such as ranges and geo-location.

                  • 对于 Lucene.Net 3.0.3 - (NuGet 页面, 演示 1,演示 2)
                  • 对于 Lucene.Net 2.9.4
                  • For Lucene.Net 3.0.3 - (NuGet page, Demo 1, Demo 2)
                  • For Lucene.Net 2.9.4

                  注意,虽然演示在MVC中完成,但在Windows表单中将其设置为类似(实际上更容易,因为您无需使用AJAX在选择更改时重新加载结果).

                  Note that although the demos are done in MVC, setting it up in Windows Forms is similar (easier actually because you don't need to use AJAX to reload the results when the selections change).

                  使用 SOLR.这是一个在 Java 上运行的基于服务器的解决方案,可以设置为分面搜索.

                  Use SOLR. It is a server-based solution that runs on Java that can be set up to do faceted search.

                  还有一个 SOLR 的 .NET 客户端 - (faceting 文档)

                  这篇关于如何使用 Lucene.Net 创建构面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Lucene 和特殊字符 下一篇:在 Lucene 中获取文档 ID

                  相关文章

                1. <tfoot id='XBYiU'></tfoot>

                    <bdo id='XBYiU'></bdo><ul id='XBYiU'></ul>

                  <i id='XBYiU'><tr id='XBYiU'><dt id='XBYiU'><q id='XBYiU'><span id='XBYiU'><b id='XBYiU'><form id='XBYiU'><ins id='XBYiU'></ins><ul id='XBYiU'></ul><sub id='XBYiU'></sub></form><legend id='XBYiU'></legend><bdo id='XBYiU'><pre id='XBYiU'><center id='XBYiU'></center></pre></bdo></b><th id='XBYiU'></th></span></q></dt></tr></i><div id='XBYiU'><tfoot id='XBYiU'></tfoot><dl id='XBYiU'><fieldset id='XBYiU'></fieldset></dl></div>

                  <small id='XBYiU'></small><noframes id='XBYiU'>

                  1. <legend id='XBYiU'><style id='XBYiU'><dir id='XBYiU'><q id='XBYiU'></q></dir></style></legend>