在Solr Cloud中,分布式集合中的QueryElevationComponent是必需的吗?(In Solr Cloud, is QueryElevationComponent mandatory in distributed collection?)
我有分布在多个solr云节点上的集合。 要在模式中禁用uniqueKey,我还在solrconfig.xml中禁用QueryElevationComponent。
<!-- <searchComponent name="elevator" class="solr.QueryElevationComponent" > <str name="queryFieldType">string</str> <str name="config-file">elevate.xml</str> </searchComponent> -->
配置在未分配的集合中工作正常(1个分片,1个rf)。 但是如果分片数* rf大于1,则会出现问题。 当我执行查询到分布式集合时,比solr抛出异常。
org.apache.solr.handler.component.QueryComponent.createMainQuery(QueryComponent.java:852)中的org.apache.solr.handler.component.QueryComponent.regularDistributedProcess(QueryComponent.java:721)中的java.lang.NullPointerException。位于org.apache.solr.handler.RequestHandlerBase的org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:345)中的apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:674)。的handleRequest(RequestHandlerBase.java:154)
Solr并没有抱怨索引。 只有查询才有问题。
I have collection that is distributed over multiple solr cloud node. To disable uniqueKey in schema, I also disable QueryElevationComponent in solrconfig.xml.
<!-- <searchComponent name="elevator" class="solr.QueryElevationComponent" > <str name="queryFieldType">string</str> <str name="config-file">elevate.xml</str> </searchComponent> -->
Configuration works fine in undistributed collection (1 shard, 1 rf). But if number of shards*rf are greater than 1, problem occures. When I execute query to distributed collection, than solr throws below exception.
java.lang.NullPointerException at org.apache.solr.handler.component.QueryComponent.createMainQuery(QueryComponent.java:852) at org.apache.solr.handler.component.QueryComponent.regularDistributedProcess(QueryComponent.java:721) at org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:674) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:345) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:154)
Solr does not complain against indexing. Only querying is problem.
原文:https://stackoverflow.com/questions/40230510
最满意答案
答案是在webapp / WEB-INF中创建具有以下内容的glassfish-web.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> <glassfish-web-app error-url=""> <property name="alternatedocroot_1" value="from=/upload/* dir=C:/opt/oracle/webapps/asd"/> </glassfish-web-app>
The answer is creating glassfish-web.xml in webapp/WEB-INF with following content
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> <glassfish-web-app error-url=""> <property name="alternatedocroot_1" value="from=/upload/* dir=C:/opt/oracle/webapps/asd"/> </glassfish-web-app>
相关问答
更多-
Apache上的虚拟主机可以访问另一个虚拟主机的文件吗?(Can a Virtual Host on Apache access the files of another Virtual Host?)[2022-01-18]
Apache“虚拟主机”只是主机名(或IP地址或端口)到一组特定配置指令的映射。 这没有暗示“遏制”或隔离; 一切仍然在同一台主机上运行。 如果您想要实际隔离应用程序,请考虑调查Docker(或虚拟机解决方案)等容器技术,并使用前端代理将流量引导到适当的后端。 An Apache "virtual host" is just a mapping of a hostname (or ip address or port) to a particular set of configuration directi ... -
WebSphere没有开始监听这些端口。 如果前端服务器正在侦听非默认端口并将请求路由到WebSphere,则在虚拟主机中定义端口号。 例如,如果您的Apache会监听:81和:444端口并将请求路由到您的应用程序,而不在default_host中定义新的主机别名,您将收到错误500 - 找不到虚拟主机/网络组,因为它不会配置为接受在这些端口上发出的请求。 WebSphere doesn't start listening on these ports. You define port number in ...
-
这可以使用tomcat和apache创建虚拟主机。 但是为了使其可以在本地Intranet中访问,您需要将您的IP地址条目添加到Intranet的memeber机器的/ etc / hosts文件中,除非它们无法识别您创建的虚拟主机。 这根本不可行,因为/ etc / hosts文件由root本身管理,并且每次重启时都会刷新。 您可以向文件添加粘性位,但这类似于对机器/公司策略的入侵,这是不应该做的。 :) This is possible to create a virtual host using to ...
-
虚拟主机的配置(Configuration of virtual host)[2022-10-11]
首先创建一个文件(比如说)命名为links.conf并添加虚拟主机DocumentRoot "C:\Users\Sony\Desktop\links" ServerName links.localhost 现在在httpd.conf的末尾添加: Include conf/links.conf 。 First create a file (say) name it links.conf and add your Virtual host ... -
试试这种方式 DocumentRoot /var/www/host2.com ServerName www.host2.com ServerAlias *.host2.com try in this way DocumentRoot /var/www/host2.com ServerName www.host2.com ServerAlias *.host2.com
-
彻底重新启动后,问题自行解决。 重新启动WAMP是不够的,但重新启动操作系统会修复它。 The problem resolved itself after a clean reboot. Restarting WAMP was not sufficient but restarting the operating system fixed it.
-
您可以通过允许访问images文件夹来设置apache目录,并拒绝访问其他目录
Documentroot /var/www Alias /images /path/to/images Options Indexes FollowSymLinks AllowOverride None Allow from all # allow access to images only 答案是在webapp / WEB-INF中创建具有以下内容的glassfish-web.xml链接到外部视频源是否使用我的服务器带宽和资源?(Does linking to external video sources use my server bandwidth and resources?)[2021-11-23]
不,它没有。 浏览器使用该链接连接到YouTube的服务器,并使用其资源。 No, it doesn't. The browser instead uses the link to connect to YouTube's server, and uses their resources.解决了 共享文件如果要共享具有多个域(Apache,FTP,rsync,Samba)的文件,可以设置public_content_t和public_content_rw_t的文件上下文。 这些上下文允许上述任何域读取内容。 使用chcon -R -t samba_share_t将覆盖标签floders。 要使用它们(公共)我使用过的多个服务: chcon -R -t public_content_rw_t SOLVED SHARING FILES If you want ... 相关文章
更多- Solr参数(Analysis Collection Common CoreAdmin)
- tomcat中搭建solr Cloud、日志、多Core以及常见问题
- Solr Multicore 结合 Solr Distributed Searching 切分...
- Solr总结
- opensource projects relevant version of cloud
- Solr Multicore 结合 Solr Distributed Searching 切分大索引来搜索
- 什么是Spring Cloud
- Solr分布式搜索技术实现分析
- Solr分布式搜索技术实现分析
- 基于Solr和Zookeeper的分布式搜索方案SolrCloud
最新问答
更多- h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
- 创建一个功能(Create a function)
- 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
- PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
- Qt冻结循环的原因?(Qt freezing cause of the loop?)
- TableView重复youtube-api结果(TableView Repeating youtube-api result)
- 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
- SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
- 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
- 以编程方式创建UITableView(Creating a UITableView Programmatically)
- 如何打破按钮上的生命周期循环(How to break do-while loop on button)
- C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
- 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
- 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
- Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
- 设置kotlin扩展名(Setting a kotlin extension)
- 如何并排放置两个元件?(How to position two elements side by side?)
- 如何在vim中启用python3?(How to enable python3 in vim?)
- 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
- 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
- Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
- dedecms如何安装?
- 在哪儿学计算机最好?
- 学php哪个的书 最好,本人菜鸟
- 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
- 如何覆盖错误堆栈getter(How to override Error stack getter)
- 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
- USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
- 电脑高中毕业学习去哪里培训
- 正则表达式验证SMTP响应(Regex to validate SMTP Responses)