实现 SOLR Spellcheker 的定制类

发布于 2025-01-13 11:56:24 字数 10611 浏览 0 评论 0原文

我们正在尝试用我们自己的类扩展当前的 solr.DirectSpellchecker。自定义的原因是将“maxEdits”扩展为超过 2 个字符。

下面是我们的实现配置(solrconfig.xml),


<lst name="spellchecker">
    <str name="name">en_US</str>
    <str name="field">spellcheck_en_us</str>
    <!-- <str name="classname">solr.DirectSolrSpellChecker</str>-->
    <str name="classname">com.solr.spelling.CustomDirectSolrSpellChecker</str> 
    <str name="distanceMeasure">internal</str>
    <float name="accuracy">0.5</float>
    <int name="maxEdits">2</int>
    <int name="minPrefix">0</int>
    <int name="maxInspections">8</int>
    <int name="minQueryLength">3</int>
    <float name="maxQueryFrequency">0.0001</float>
    <float name="thresholdTokenFrequency">.0001</float>
    </lst>

我们能够创建一个 Jar 文件并将其放置在 SOLR 可以读取的 Lib 之一中。

完成上述步骤后重新启动 solr。没有发现任何问题,因为该课程已被接受。

问题

在调用如下所示的拼写检查查询时,我们收到 NULLPOINTER 错误

查询

/spell?&spellcheck=true&spellcheck.q=acesaries&spellcheck.dictionary=en_US&spellcheck.collate=true&wt=xml

错误

java.lang.NullPointerException at 
org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:581) 
at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:149) 
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:331) at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:214) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2606) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:815) 
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:588) 
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415) 
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) 
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) 
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) 
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561) 
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) 
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) 
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) 
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) 
t org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) 
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) 
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) 
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191) 
at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905) at java.base/java.lang.Thread.run(Thread.java:834) 

无法根据错误启动拼写检查组件,并且不确定是哪个错误我们在这里缺少一步。

我们的自定义更改如下

  1. CustomDirectSolrSpellChecker 扩展 org.apache.solr.spelling.DirectSolrSpellChecker
  2. CustomDirectSpellChecker 扩展 org.apache.lucene.search.spell.DirectSpellChecker
  3. 第一个类覆盖 DirectSolrSpellChecker 的 init 方法,并将下面的行替换
private DirectSpellChecker checker = new DirectSpellChecker();

为新行

private CustomDirectSpellChecker checker = new CustomDirectSpellChecker();
  1. CustomDirectSpellChecker 覆盖“setMaxEdits”方法允许超过 2 次编辑。

solr 日志

o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: null
o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: null

更新(03/12/2022)

尝试其他方法来覆盖开箱即用的类而不是扩展它。因此,我采用了 jar 的 lucene-core-8.6.3.jar、lucene-suggest-8.6.3.jar 并使用新代码更新了以下类(仅进行了一项更改,将 maxEdits 从 2 更新为 4)

  1. DirectSpellChecker.java
  2. FuzzyAutomatonBuilder。 java
  3. FuzzyQuery.java

更新现有的 jar 并将其替换为上面的新类文件后,我收到以下错误

java.lang.NullPointerException at org.apache.lucene.util.automaton.CompiledAutomaton.<init>(CompiledAutomaton.java:154) 
at org.apache.lucene.util.automaton.CompiledAutomaton.<init>(CompiledAutomaton.java:140) 
at org.apache.lucene.search.FuzzyAutomatonBuilder.buildAutomatonSet(FuzzyAutomationBuilder.java:41) 
at org.apache.lucene.search.FuzzyTermsEnum$AutomatonAttributeImpl.init(FuzzyTermsEnum.java:365) 
at org.apache.lucene.search.FuzzyTermsEnum.<init>(FuzzyTermsEnum.java:125) 
at org.apache.lucene.search.FuzzyTermsEnum.<init>(FuzzyTermsEnum.java:92) at org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:208) 
at org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:179) 
at org.apache.solr.spelling.DirectSolrSpellChecker.getSuggestions(DirectSolrSpellChecker.java:197)
 at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:194)
 at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:331) 
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:214) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2606) 
at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:815) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:588) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191) at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:135) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905) at java.base/java.lang.Thread.run(Thread.java:834)

如果我在中将 maxEdits 指定为 2 solrconfig.xml,一切正常,当我将其更改为超过 2 时,就会出现上述错误

。有人可以帮忙解决这个问题吗?

任何对执行此操作的帮助都会有很大帮助。我们正在使用 solr 8.6

提前致谢。

We are tryin to extend the current solr.DirectSpellchecker with our own class. The reason to customize is to expand the 'maxEdits' to more than 2 characters.

Below is our implementation config (solrconfig.xml)


<lst name="spellchecker">
    <str name="name">en_US</str>
    <str name="field">spellcheck_en_us</str>
    <!-- <str name="classname">solr.DirectSolrSpellChecker</str>-->
    <str name="classname">com.solr.spelling.CustomDirectSolrSpellChecker</str> 
    <str name="distanceMeasure">internal</str>
    <float name="accuracy">0.5</float>
    <int name="maxEdits">2</int>
    <int name="minPrefix">0</int>
    <int name="maxInspections">8</int>
    <int name="minQueryLength">3</int>
    <float name="maxQueryFrequency">0.0001</float>
    <float name="thresholdTokenFrequency">.0001</float>
    </lst>

we are able to create a Jar file and able to place it in one of the Lib which SOLR can read.

restarted the solr after above steps. Didn't see any issues as the class has been accepted.

Problem

while calling the spellcheck query like below, we are getting NULLPOINTER error

Query

/spell?&spellcheck=true&spellcheck.q=acesaries&spellcheck.dictionary=en_US&spellcheck.collate=true&wt=xml

Error

java.lang.NullPointerException at 
org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:581) 
at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:149) 
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:331) at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:214) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2606) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:815) 
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:588) 
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415) 
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) 
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) 
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) 
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561) 
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) 
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) 
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) 
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) 
t org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) 
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582) 
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) 
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) 
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191) 
at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905) at java.base/java.lang.Thread.run(Thread.java:834) 

Unable to initiate Spellcheck Component as per the error and not sure which step we are missing here.

Our Custom changes are below

  1. CustomDirectSolrSpellChecker extends org.apache.solr.spelling.DirectSolrSpellChecker
  2. CustomDirectSpellChecker extends org.apache.lucene.search.spell.DirectSpellChecker
  3. 1st class overriden the init method of DirectSolrSpellChecker and replaced below line
private DirectSpellChecker checker = new DirectSpellChecker();

with new line

private CustomDirectSpellChecker checker = new CustomDirectSpellChecker();
  1. CustomDirectSpellChecker overriden the 'setMaxEdits' method to allow more than 2 edits.

solr logs

o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: null
o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: null

Update(03/12/2022)

Tried other way to Override the out of the box class rather than extending it. So I took the jar's lucene-core-8.6.3.jar, lucene-suggest-8.6.3.jar and updated the below classes with new code (only one liner change where updating maxEdits to 4 from 2)

  1. DirectSpellChecker.java
  2. FuzzyAutomatonBuilder.java
  3. FuzzyQuery.java

After updating the existing jars and replacing them with above new class files, I got the below error

java.lang.NullPointerException at org.apache.lucene.util.automaton.CompiledAutomaton.<init>(CompiledAutomaton.java:154) 
at org.apache.lucene.util.automaton.CompiledAutomaton.<init>(CompiledAutomaton.java:140) 
at org.apache.lucene.search.FuzzyAutomatonBuilder.buildAutomatonSet(FuzzyAutomationBuilder.java:41) 
at org.apache.lucene.search.FuzzyTermsEnum$AutomatonAttributeImpl.init(FuzzyTermsEnum.java:365) 
at org.apache.lucene.search.FuzzyTermsEnum.<init>(FuzzyTermsEnum.java:125) 
at org.apache.lucene.search.FuzzyTermsEnum.<init>(FuzzyTermsEnum.java:92) at org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:208) 
at org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:179) 
at org.apache.solr.spelling.DirectSolrSpellChecker.getSuggestions(DirectSolrSpellChecker.java:197)
 at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:194)
 at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:331) 
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:214) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2606) 
at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:815) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:588) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191) at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:135) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905) at java.base/java.lang.Thread.run(Thread.java:834)

If i give maxEdits as 2 in the solrconfig.xml, everything working and the above error is coming when i change it to more than 2.

Can some one please help on this.

Any help on making this execute will be great help. we are using solr 8.6

Thanks In advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文