How to fix exceeded limit of maxWarmingSearchers?

后端 未结 3 621
孤街浪徒
孤街浪徒 2021-01-30 23:13

Anyone know why and how to resolve this as I have a very busy updates and searches at the same time.

Error opening new searcher.

Exceeded limit of max

3条回答
  •  不要未来只要你来
    2021-01-30 23:52

    As per the https://wiki.apache.org/solr/CommitWithin

    There are multiple commit strategies in Solr. The most known is explicit commits from the client. Then you have AutoCommit, configured in solrconfig.xml, which lets Solr automatically commit adds after a certain time or number of documents, and finally there may be a behind-the-scenes commit when the input buffer gets full.

    You can use 'CommitWithin' to handle this problem.
    Solr3.5 and later, it can be server.add(mySolrInputDocument, 10000);
    In earlier versions, you can use below code
    UpdateRequest req = new UpdateRequest(); req.add(mySolrInputDocument); req.setCommitWithin(10000); req.process(server);
    It can reduce the frequently you send the commits.

提交回复
热议问题