根据/etc/tomcat6/Catalina/localhost/solr.xml中部署的solr.home的位置上创建
mkdir solrm
sudo chgrp mlzboy solrm
sudo chmod 777 solrm
change tomcat port:
Tomcat runs on the port defined
$CATALINA_HOME/conf/server.xml,
configured by default to port 8080.
in ubuntu check location here /etc/tomcat6/server.xml
Configuring Solr Home with JNDI
A Tomcat
context fragments can be used to configure the JNDI property needed to
specify your Solr Home directory.
Just put a
context fragment file under $CATALINA_HOME/conf/Catalina/localhost that
looks something like this...
$ cat
/tomcat55/conf/Catalina/localhost/solr.xml
<Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="/my/solr/home" override="true" />
</Context>
A few things to keep in mind:
- The
"conf/Catalina/localhost" directory may not exist by default in your
installation. You may have to create it.
- "/some/path/solr.war" is the absolute path
to where ever you want to keep the Solr war using the appropriate
syntax for your Operating System. In Tomcat 5.5 and later, the war file
must be stored outside of the webapps directory for this to work.
Otherwise, this entire Context element is ignored.
- "/my/solr/home" should be to where you
have created your Solr Home directory, using the appropriate syntax for
your Operating System.
- Prior
to Tomcat 5.5, a "path" attribute was required for Context elements
(starting with 5.5, the path attribute must not be used except when
statically defining a Context in server.xml, as it will be inferred from
the Context fragment filename.
Enabling Longer Query Requests
If you try
to submit too long a GET query to Solr, then Tomcat will reject your
HTTP request on the grounds that the HTTP header is too large; symptoms
may include an HTTP 400 Bad Request error or (if you execute the query
in a web browser) a blank browser window.
If you need to enable longer queries, you can set the
maxHttpHeaderSize attribute on the HTTP Connector element in your
server.xml file. The default value is 4K. (See
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html)
分享到:
相关推荐
ik-analyzer分词器,支持solr5-5.x
solr更新到6.x的版本了,ik-analyzer-5.x.jar又不好使了。 无意间从"随-忆"的博客中看到了如何去修改源代码,从而让分词器能够适应6.x的版本,亲自尝试了一下,果然可以,于是奉上了自己重新编译的jar包。 6.x的版本...
IKAnalyzer是一个开源的,基于java语言开发的轻量级的中文分词工具包。此包兼容solr7.x
apache-solr-core-1.4.0.jar,apache-solr-core-1.4.0.jar
php 扩展 -- solr-1.0.1,linux系统编译安装
k-analyzer-solr,solr分词器,包括在solr的core中的配置方法
ik-analyzer-5.01-for solr4.3.jar
目前在网上只能找到以前最老spring-data-solr 1.x.x 版本的配置和说明,最新版本的根本找不到,在参考spring-data-solr 官网文档后写的配置和小Demo,spring-data-solr 所使用的是目前最新版本的 spring-data-solr ...
包涵apache-solr-core-3.5.0.jar和apache-solr-solrj-3.5.0.jar两个文件,搭建solr全文检索环境必须要添加的包
中文分词器ik-analyzer-solr5-5.x.jar,已经打包好,直接用就可以
docker-solr, 用于Solr的Docker 构建,用于管理官方的Docker-Hub Solr映像 支持的标签和相应的Dockerfile 链接7.2.1-slim,7.2-slim,7-slim,latest-slim ( 7.2/slim/Dockerfile )7.2.1-alpine,7.2-alpine,7-...
solr6的中文分词器ik-analyzer-solr-6.0.jar,在solr上亲测可用
以solr8.11.1为基础镜像,使用docker-compose构建含中文分词器的新的镜像 文件夹内含有docker-compose.yml脚本、Dockerfile脚本以及构建镜像所需中文分词器ik-analyzer-8.5.0.jar、所有扩展词和停用词相关的配置文件...
solr7,ik-analyzer中文分词,带配置文件,放到solr的classes目录即可配置自己的分词规定
经测试apache-solr-dataimportscheduler1.0 版本在solr5.5上已经不能使用,这是本人自己根据情况修改后打的jar包亲测可用
solr6 solr-dataimporthandler-scheduler-1.1源码,可以自己编译适应不同版本solr