• <tfoot id='NBVGH'></tfoot>
      <bdo id='NBVGH'></bdo><ul id='NBVGH'></ul>
  • <legend id='NBVGH'><style id='NBVGH'><dir id='NBVGH'><q id='NBVGH'></q></dir></style></legend>

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

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

        Solr 中的查询超时

        时间:2023-09-29
        • <bdo id='nWrYS'></bdo><ul id='nWrYS'></ul>
          • <legend id='nWrYS'><style id='nWrYS'><dir id='nWrYS'><q id='nWrYS'></q></dir></style></legend>

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

                <tbody id='nWrYS'></tbody>
            2. <tfoot id='nWrYS'></tfoot>

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

                  本文介绍了Solr 中的查询超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我通过自定义开发层对 solr 进行查询,并且在我的层中超时的少数查询仍在 solr 实例中.solr 中是否有一个参数可以用来使特定查询超时

                  I hitting queries to solr through a custom developed layer and few queries which i time out in my layer are still in the solr instance. Is there a parameter in solr which can be used to time out an particular query

                  推荐答案

                  如 中所述客户端断开连接后 Solr 查询是否继续? 和 写在 Solr 常见问题解答中

                  在内部,Solr 不会对任何请求进行超时 - 它允许更新和查询都需要花费多长时间才能完全处理.

                  Internally, Solr does nothing to time out any requests -- it lets both updates and queries take however long they need to take to be processed fully.

                  但在常见问题解答中的同一位置写入

                  But at the same spot in the FAQ is written

                  但是,用于运行 Solr 的 servlet 容器可能会对所有请求施加任意超时限制.如果您发现此值太低,请查阅您的 Serlvet 容器的文档.(在 Jetty 中,相关设置是maxIdleTime",以毫秒为单位)

                  However, the servlet container being used to run Solr may impose arbitrary timeout limits on all requests. Please consult the documentation for your Serlvet container if you find that this value is too low. (In Jetty, the relevant setting is "maxIdleTime" which is in milliseconds)

                  因此,您可以将容器配置为关闭长时间运行的请求,以便连接的 HTTPClients 接收关闭.

                  So you may configure your container to close a long-running request so that the HTTPClients connected receive a shutdown.

                  但这可能还不够,但 Solr 内部可能仍在工作,在您的服务器上产生负载.因此可以使用常用的timeAllowed参数.

                  However that may not be enough, Solr could internally still be working though, generating load on your Server. Therefore the common timeAllowed parameter may be used.

                  timeAllowed - 此参数指定允许完成搜索的时间量(以毫秒为单位).如果此时间在搜索完成之前到期,将返回任何部分结果.

                  timeAllowed - This parameter specifies the amount of time, in milliseconds, allowed for a search to complete. If this time expires before the search is complete, any partial results will be returned.

                  在每个请求中或在您的 solrconfig.xml 中配置为默认值.

                  Either with each request or configured as default in your solrconfig.xml.

                  <requestHandler name="standard" class="solr.StandardRequestHandler" default="true">
                      <lst name="defaults">
                          <!-- other parts left out -->
                          <!-- timeout (in milliseconds) -->
                          <int name="timeAllowed">5000</int>
                      </lst>
                  </requestHandler>
                  

                  这篇关于Solr 中的查询超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何从 Lucene 的特定字段中获取唯一术语列表? 下一篇:Lucene OR 使用布尔查询进行搜索

                  相关文章

                  最新文章

                  <tfoot id='2WbJY'></tfoot>

                  <small id='2WbJY'></small><noframes id='2WbJY'>

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