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

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

    <tfoot id='SCcDb'></tfoot>
      <bdo id='SCcDb'></bdo><ul id='SCcDb'></ul>

      1. <legend id='SCcDb'><style id='SCcDb'><dir id='SCcDb'><q id='SCcDb'></q></dir></style></legend>
      2. 如何实现标签搜索?用lucene?

        How do i implement tag searching? with lucene?(如何实现标签搜索?用lucene?)

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

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

            <tbody id='B5Zid'></tbody>
          <tfoot id='B5Zid'></tfoot>
                  <bdo id='B5Zid'></bdo><ul id='B5Zid'></ul>
                  <legend id='B5Zid'><style id='B5Zid'><dir id='B5Zid'><q id='B5Zid'></q></dir></style></legend>

                • 本文介绍了如何实现标签搜索?用lucene?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我没有用过 lucene.上次我问(几个月前,也许一年)人们建议使用 lucene.如果我不应该使用 lucene 我应该使用什么?例如说有这样标记的项目

                  I havent used lucene. Last time i ask (many months ago, maybe a year) people suggested lucene. If i shouldnt use lucene what should i use? As am example say there are items tagged like this

                  1. 苹果胡萝卜
                  2. 苹果
                  3. 胡萝卜
                  4. 苹果香蕉

                  如果用户搜索苹果,我不在乎 1,2 和 4 是否有任何偏好.但是我看到很多论坛都这样做,我讨厌的是,当用户搜索苹果胡萝卜 2 和 3 时结果很高,而 1 很难即使它与我的搜索更接近也要找到.

                  if a user search apples i dont care if there is any preference from 1,2 and 4. However i seen many forums do this which i HATED is when a user search apple carrots 2 and 3 have high results while 1 is hard to find even though it matches my search more closely.

                  我还希望能够搜索胡萝卜-苹果,这只会让我得到 3.我不确定如果我搜索胡萝卜香蕉会发生什么,但无论如何只要标记为 2 和 3 结果的更多项目排名较低然后 1 当我搜索苹果胡萝卜时,我会很高兴.

                  Also i would like the ability to do search carrots -apples which will only get me 3. I am not sure what should happen if i search carrots banana but anyways as long as more items tagged with 2 and 3 results are lower ranking then 1 when i search apples carrots i'll be happy.

                  lucene 能做到这一点吗?我从哪里开始?我尝试查找它,当我看到很多课程时,我会看到有关文档、网页的教程,但是当我喜欢标记某些东西时,没有一个人清楚地知道该怎么做.如果不是 lucene 我应该用什么来标记?

                  Can lucene do this? and where do i start? I tried looking it up and when i do i see a lot of classes and i'll see tutorials talking about documents, webpages but none were clear about what to do when i like to tag something. If not lucene what should i use for tagging?

                  推荐答案

                  Lucene for .net 似乎已经成熟了.无需使用 Java 或 SOLR

                  Lucene for .net seems to be mature. No need to use Java or SOLR

                  Lucene 的标准查询语言允许同等排名的搜索词和否定

                  The Standard query language for Lucene allows equally ranked search terms and negation

                  因此,如果您的 Lucene 索引有一个字段标签",您的查询将是

                  So if your Lucene index had a field "tag" your query would be

                  tag:apple* OR tag: carrot*
                  

                  这将为每个单词提供相同的排名,并为带有两个标签的文档提供更多的排名权重

                  Which would give equal ranking to each word, and more rank weighting to document with both tags

                  要否定标签,请使用此

                  tag:carrot* NOT tag:apple*
                  

                  显示使用 Lucene 进行索引和查询的简单示例 这里

                  Simple example to show indexing and querying with Lucene here

                  这篇关于如何实现标签搜索?用lucene?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                  Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                  IBM.Data.DB2.Core connection problems(IBM.Data.DB2.Core 连接问题)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  Datetime field overflow with IBM Data Server Client v9.7fp5(IBM Data Server Client v9.7fp5 的日期时间字段溢出)
                  Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                    <bdo id='Lm9W5'></bdo><ul id='Lm9W5'></ul>
                        <tfoot id='Lm9W5'></tfoot>
                          • <i id='Lm9W5'><tr id='Lm9W5'><dt id='Lm9W5'><q id='Lm9W5'><span id='Lm9W5'><b id='Lm9W5'><form id='Lm9W5'><ins id='Lm9W5'></ins><ul id='Lm9W5'></ul><sub id='Lm9W5'></sub></form><legend id='Lm9W5'></legend><bdo id='Lm9W5'><pre id='Lm9W5'><center id='Lm9W5'></center></pre></bdo></b><th id='Lm9W5'></th></span></q></dt></tr></i><div id='Lm9W5'><tfoot id='Lm9W5'></tfoot><dl id='Lm9W5'><fieldset id='Lm9W5'></fieldset></dl></div>

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

                            <legend id='Lm9W5'><style id='Lm9W5'><dir id='Lm9W5'><q id='Lm9W5'></q></dir></style></legend>
                              <tbody id='Lm9W5'></tbody>