问题标签 [solr8]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
18 浏览

solr - 如何在 Solr 的查询中设置分析器

我正在尝试解决如何在 Solr (8.11.1) 中为搜索查询设置文本分析器

这是我的处理程序设置solrconfig.xml

我想要做的是能够使用此字段类型进行搜索:(这是在 中设置的managed-schema.xml

我该怎么做?对于 Solr 6.6(我们的旧服务器),我们使用了这个插件:https ://github.com/o19s/match-query-parser ,然后传入analyze_as=synonymized,但不幸的是,该插件似乎不适用于 Solr 8.11.1

希望这是有道理的!请询问您是否需要澄清任何事情(Solr 是一个复杂的野兽,我仍在努力解决其中的一些问题!)

0 投票
0 回答
21 浏览

solr - solr 8.11 字段类型文档矛盾。有什么指导吗?

我正在使用 solr:8.11.1-slim 通过 docker 设置我的第一个 Solr 服务器。我将使用模式 API 为名为“产品”的核心设置模式。在阅读文档时,似乎有关于字段类型的文档的错误信息: https ://solr.apache.org/guide/8_11/field-types-included-with-solr.html

对比

https://solr.apache.org/guide/8_11/schema-api.html

我按照第一个指南获取有关我可以指定哪些字段类型的信息,并尝试根据第二个文档发送请求,例如:

但是 Solr 给了我错误,例如:

那么给了什么?我是误读了文档,还是它们错了,或者 docker 中的 solr 8.11.1 图像有问题?为什么它不接受我提供的字段类型?

提前感谢您的帮助。

0 投票
0 回答
95 浏览

java - Solr 8 在尝试启动 Solr 时不起作用:java.lang.IllegalStateException:/opt/solr-8.11.1/server/NONE 不是有效的密钥库?

我正在尝试在运行 RHEL 8 的新服务器上设置 Solr 8.11.1。我遵循了 Solr 指南 ( https://solr.apache.org/guide/8_11/taking-solr-to中列出的所有步骤-production.html )

我几乎能够毫无问题地遵循指南,直到它检查进度的部分(我应该开始 solr)。那时我尝试启动 Solr 并看到错误“java.lang.IllegalStateException: /opt/solr-8.11.1/server/NONE is not a valid keystore”。

我运行了 Solr 随附的安装脚本,该指南要求运行该脚本。我保留了所有默认值。所以我不确定我为什么会遇到这个问题。我确实在 /etc/default/solr.in.sh 文件中设置了“SOLR_SSL_ENABLED=false”。然而,当我尝试启动 solr 时,我仍然会收到该错误。关于我为什么得到它以及如何解决它的任何想法?先感谢您!

==================================================== =========================

/etc/default/solr.in.sh:

==================================================== =========================

Solr 日志:

2022-02-04 20:52:10.610 INFO (main) [] oejulog 日志记录已初始化 @1276ms 到 org.eclipse.jetty.util.log.Slf4jLog 2022-02-04 20:52:10.878 INFO (main) [] oejsServer码头-9.4.44.v20210927;建成:2021-09-27T23:02:44.612Z;混帐:8da83308eeca865e495e53ef315a249d63ba9 332;jvm 1.8.0_312-b07 2022-02-04 20:52:10.898 INFO (main) [] oejdpScanningAppProvider 部署监视器 [file:///opt/solr-8.11.1/server/contexts/] 间隔 0 2022-02 -04 20:52:11.173 INFO (main) [] oejwStandardDescriptorProcessor NO JSP 支持 /solr,没有找到 org.apache.jasper.servlet.JspServlet 2022-02-04 20:52:11.185 INFO (main) [] oejssession DefaultSessionIdManager workerName=node0 2022-02-04 20:52:11.185 INFO (main) [ ] oejssession 未设置 SessionScavenger,使用默认值 2022-02-04 20:52:11.187 INFO (main) [ ] oejs
欢迎使用 Apache Solr™ 版本 8.11.1 2022-02-04 20:52:11.252 INFO (main) [ ] oassSolrDispatchFilter / | | | _ 在端口 8983 上以独立模式启动 2022-02-04 20:52:11.252 INFO (main) [
] oassSolrDispatchFilter _
/ _ \ | '
| 安装目录:/opt/solr 2022-02-04 20:52:11.253 INFO (main) [] oassSolrDispatchFilter |
/___/ |_| 开始时间:2022-02-04T20:52:11.253Z 2022-02-04 20:52:11.264 INFO (main) [] oascSolrPaths 使用系统属性 solr.solr.home: /var/solr/data 2022-02-04 20:52:11.264 INFO (main) [] oascSolrXmlConfig 从 /var/solr/data/solr.xml 加载容器配置 2022-02-04 20:52:11.341 INFO (main) [
] oascSolrXmlConfig MBean 服务器找到:com.sun.jmx.mbeanserver.JmxMBeanServer@7bedc48a,但没有我们重新配置的 JMX 报告器 - 添加默认 JMX 报告器。2022-02-04 20:52:11.671 INFO (main) [] oashcHttpShardHandlerFactory 主机白名单已初始化:WhitelistHostChecker [whitelistHosts=null, whitelist HostCheckingEnabled=true] 2022-02-04 20:52:11.703 WARN (main) [] oascsiHttp2SolrClient 创建自 Java 8 或更低版本以来使用 HTTP/1.1 传输的 Http2SolrClient 不支持 SSL + HTTP/2 2022-02-04 20:52:11.760 错误(主要)[] oassSolrDispatchFilter 无法启动 Solr。检查 solr/home 属性和日志 2022-02-04 20:52:11.782 错误(主)[] oascSolrCore null => org.apache.solr.common.SolrException:错误实例化 shardHandlerFactory 类 [Http ShardHandlerFactory]:java.lang .

  • janhoy - 2021-12-14 13:50:55] 在 org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:287) ~[solr-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef3 6b42ed1223c14b50 - janhoy - 2021-12-14 13:50:55] 在 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:184) ~[solr-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b5 0 - janhoy - 2021-12-14 13:50:55] 在 org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44。 v20210927] 在 org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:731) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927] 在 java.util.Spliterators $ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_312] at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742) ~[?:1.8.0_312] at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) ~[?:1.8.0_312] at org.eclipse.jetty.servlet.ServletHandler。在 org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379) 处初始化(ServletHandler.java:755)~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927] -servlet-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449) ~[jetty-webapp-9.4.44.v20210927.jar: 9.4.44.v20210927] 在 org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414) ~[jetty-webapp-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse。 jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.servlet。ServletContextHandler.doStart(ServletContextHandler.java:288) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) ~ [jetty-webapp-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44。 v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927 ] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.server .handler.AbstractHandler.doStart(AbstractHandler.java:97) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component。AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169 ) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) ~[jetty-util-9.4. 44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) ~[jetty-server-9.4.44.v20210927.jar:9.4.44 .v20210927] 在 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty .util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component。ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97 ) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4。 44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-9.4.44.v20210927.jar:9.4.44 .v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty .server.handler.AbstractHandler.doStart(AbstractHandler.java:97) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component。AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169 ) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) ~[jetty-util-9.4. 44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) ~[jetty-server-9.4.44.v20210927.jar:9.4.44 .v20210927] 在 org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:426) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse .jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle。开始(ContainerLifeCycle.java:169)~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.server.Server.start(Server.java:423)~[jetty -server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) ~[jetty-util-9.4.44.v20210927。 jar:9.4.44.v20210927] 在 org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在org.eclipse.jetty.server.Server.doStart(Server.java:387) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.AbstractLifeCycle .start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$3(XmlConfiguration.java:1907 ) ~[jetty-xml-9.4.44.v20210927.jar:9.4.44.v20210927] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_312] at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1857) ~[jetty-xml-9.4.44 .v20210927.jar:9.4.44.v20210927] 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_312] 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?: 1.8.0_312] 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312] 在 java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8. 0_312] 在 org.eclipse.jetty.start.Main.invokeMain(Main.java:218) ~[start.jar:9.4.44.v20210927] 在 org.eclipse.jetty.start.Main.start(Main.java: 491) ~[start.jar:9.4.44.v20210927] at org.eclipse.jetty.start.Main.main(Main.java:77) ~[start.jar:9.4.44.v20210927] 原因:java。 lang.RuntimeException:java.lang。IllegalStateException:/opt/solr-8.11.1/server/NONE 不是 org.apache.solr.client.solrj.impl.Http2SolrClient.createHttpClient(Http2SolrClient.java:234) ~[solr-solrj-8.11. 1.jar:8.11.1 0b002b11819df70783e83e f36b42ed1223c14b50 - janhoy - 2021-12-14 13:50:57] 在 org.apache.solr.client.solrj.impl.Http2SolrClient.(Http2SolrClient.java:159) ~[solr-solrj -8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed12 23c14b50 - janhoy - 2021-12-14 13:50:57] 在 org.apache.solr.client.solrj.impl.Http2SolrClient$Builder.build(Http2SolrClient.java:857 ) ~[solr-solrj-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36 b42ed1223c14b50 - janhoy - 2021-12-14 13:50:57] 在 org.apache.solr.handler.component.HttpShardHandlerFactory.init(HttpShardHandlerFactory.java :319) ~[solr-core-8.11.1.jar:8.11.1 0b002b11819df70783e 83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:50:55] 在 org.apache.solr.handler.component.ShardHandlerFactory.newInstance(ShardHandlerFactory.java:51) ~[solr-core-8.11.1.jar:8.11.1 0b002b11819df70783e83 ef36b42ed1223c14b50-janhoy-2021-12-14 13: 50:55] ... 53 更多原因:java.lang.IllegalStateException:/opt/solr-8.11.1/server/NONE 不是 org.eclipse.jetty.util.security.CertificateUtils.getKeyStore 的有效密钥库( CertificateUtils.java:50) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1203) ~[jetty -util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.ssl.SslContextFactory.load(SslContextFactory.java:322) ~[jetty-util-9.4.44.v20210927。 jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:244) ~[jetty-util-9.4.44.v20210927.jar:9.4.44。v20210927] 在 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty。 util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle .java:117) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.client.HttpClient.doStart(HttpClient.java:255) ~[jetty-client- 9.4.44.v20210927.jar:9.4.44.v20210927] 在 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.44.v20210927.jar:9.4 .44.v20210927] 在 org.apache.solr.client.solrj.impl.Http2SolrClient.createHttpClient(Http2SolrClient.java:232) ~[solr-solrj-8.11.1.jar:8.11。1 0b002b11819df70783e83e f36b42ed1223c14b50 - janhoy - 2021-12-14 13:50:57] 在 org.apache.solr.client.solrj.impl.Http2SolrClient.(Http2SolrClient.java:159) ~[solr-solrj-8.11.1.jar :8.11.1 0b002b11819df70783e83ef36b42ed12 23c14b50 - janhoy - 2021-12-14 13:50:57] 在 org.apache.solr.client.solrj.impl.Http2SolrClient$Builder.build(Http2SolrClient.java:857) ~[solr-solrj -8.11.1.jar:8.11.1 0b002b11819df70783e83ef36 b42ed1223c14b50 - janhoy - 2021-12-14 13:50:57] at org.apache.solr.handler.component.HttpShardHandlerFactory.init(HttpShardHandlerFactory.java:319) ~[solr -core-8.11.1.jar:8.11.1 0b002b11819df70783e 83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:50:55] at org.apache.solr.handler.component.ShardHandlerFactory.newInstance(ShardHandlerFactory.java:51) ~ [solr-core-8.11.1.jar:8.11.1 0b002b11819df70783e83 ef36b42ed1223c14b50-janhoy-2021-12-14 13:50:55] ... 53 更多 2022-02-04 20:52:11.803 INFO (main) [] oejshContextHandler Started oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr -webap p/webapp/,AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL , (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 已停止 ServerConnector@383dc82c {SSL,(ssl,http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 信息(ShutdownMonitor)[] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.153 更多 2022-02-04 20:52:11.803 INFO (main) [] oejshContextHandler 启动 oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr-webap/webapp/, AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1 )}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer 已启动 @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 已停止 ServerConnector@383dc82c {SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO ( ShutdownMonitor) [ ] oejshContextHandler 已停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.153 更多 2022-02-04 20:52:11.803 INFO (main) [] oejshContextHandler 启动 oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr-webap/webapp/, AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1 )}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer 已启动 @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 已停止 ServerConnector@383dc82c {SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO ( ShutdownMonitor) [ ] oejshContextHandler 已停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.111.803 INFO (main) [ ] oejshContextHandler 启动 oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr-webap p/webapp/,AVAILABLE}{/opt/solr-8.11.1 /server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022- 02-04 20:52:11.926 INFO (main) [] oejsServer 开始 @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 停止 ServerConnector@383dc82c {SSL, (ssl, http/1.1)} {0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/ solr,null,STOPPED}{/opt/solr-8.11.111.803 INFO (main) [ ] oejshContextHandler 启动 oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr-webap p/webapp/,AVAILABLE}{/opt/solr-8.11.1 /server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022- 02-04 20:52:11.926 INFO (main) [] oejsServer 开始 @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 停止 ServerConnector@383dc82c {SSL, (ssl, http/1.1)} {0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/ solr,null,STOPPED}{/opt/solr-8.11.1ContextHandler Started oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr-webap/webapp/,AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/ webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52: 11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector Stopped ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{ /opt/solr-8.11.1ContextHandler Started oejwWebAppContext@11bb571c{/solr,file:///opt/solr-8.11.1/server/solr-webap/webapp/,AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/ webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52: 11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector Stopped ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{ /opt/solr-8.11.11/server/solr-webap p/webapp/,AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector 已启动ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20:53: 00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 停止 ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.11/server/solr-webap p/webapp/,AVAILABLE}{/opt/solr-8.11.1/server/solr-webapp/webapp} 2022-02-04 20:52:11.926 INFO (main) [] oejsAbstractConnector 已启动ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20:53: 00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 停止 ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0 停止清理2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.1AbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20: 53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 停止 ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler Stopped oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.1AbstractConnector Started ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:52:11.926 INFO (main) [] oejsServer Started @2594ms 2022-02-04 20: 53:00.999 INFO (ShutdownMonitor) [] oejsAbstractConnector 停止 ServerConnector@383dc82c{SSL, (ssl, http/1.1)}{0.0.0.0:8983} 2022-02-04 20:53:00.999 INFO (ShutdownMonitor) [] oejssession node0停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler Stopped oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.1999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.1999 INFO (ShutdownMonitor) [] oejssession node0 停止清理 2022-02-04 20:53:01.007 INFO (ShutdownMonitor) [] oejshContextHandler 停止 oejwWebAppContext@11bb571c{/solr,null,STOPPED}{/opt/solr-8.11.1
0 投票
0 回答
11 浏览

lucene - 在索引时向文档 Lucene8+solr 8 添加权重

我正在为我的一个搜索应用程序将 solr 从 5.4.3 迁移到 8.11,并成功升级到 7.7.3。但是对于进一步的升级,响应数据的顺序比以前发生了变化。在这里,我尝试将 FunctionScoreQuery 与 DoubleValuesSource 一起使用,因为 CustomScoreQuery 在 7.7.3 中已弃用并在 8 中删除。

下面是我的代码片段(现在我使用的是 solr 8.5.2 和 Lucene 8.5.2)

我尝试了很长时间,但还没有找到一个可行的例子。任何人都可以帮助我并在这里救我。

谢谢你,沙马拉。