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

    2. <legend id='FtYPO'><style id='FtYPO'><dir id='FtYPO'><q id='FtYPO'></q></dir></style></legend>

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

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

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

      Solr:如何动态提升有限数量的文档?QueryElevationComponent 是否需要修改?

      Solr: How to dynamically elevate limited number of documents? Has QueryElevationComponent to be modified?(Solr:如何动态提升有限数量的文档?QueryElevationComponent 是否需要修改?)

      <small id='0CL67'></small><noframes id='0CL67'>

          <tfoot id='0CL67'></tfoot>

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

                本文介绍了Solr:如何动态提升有限数量的文档?QueryElevationComponent 是否需要修改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我的要求是针对用户请求提升有限数量(例如五个)文档.

                my requirement is to elevate a limited number of (e.g. five) documents for a user request.

                我得到的是一个单独的文档字段,它存储了一个类似于表示电梯排名值的提升值的数值.

                What I've got is a single document field which stores a numerical value similar to a boosting value which represents an elevator ranking value.

                因此,用户查询将返回电梯排名值最高的 5 个文档,其余文档按常规顺序填充页面.

                So a user query would return 5 documents with the highest elevator ranking value and the remaining documents to fill a page in regular order.

                怎么做?

                QueryElevationComponent 只允许static 查询定义.提升不允许提升特殊电梯排名字段的有限数量文档.

                The QueryElevationComponent does only allow static query definitions. Boosting does not allow to boost a limited number of documents for the special elevator ranking field.

                我必须编写修改后的 QueryElevationComponent 吗?如果是,有没有好的示例如何做到这一点?

                Do I have to write a modified QueryElevationComponent? If yes, are there good examples how to do that?

                或者是否存在另一种方法,我没有赶上?

                Or does another approach exists, I didnt catched up?

                感谢您的任何提示或想法!

                Thank you for any hints or ideas!

                推荐答案

                使用两个单独的请求找到了解决方案.

                Found a solution using two separate requests.

                首先按该分数字段提升文档.使用分页来限制结果.从结果页面中获取唯一的文档 ID,并在新请求中显式提升这些 ID.

                First boost documents by that score field. Use pagination to limit the result. Take the unique document ids from the result page and boost these ones explicitly within a new request.

                这篇关于Solr:如何动态提升有限数量的文档?QueryElevationComponent 是否需要修改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)
                  <tfoot id='gVGrT'></tfoot>

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

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

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

                        <tbody id='gVGrT'></tbody>