配置solr

2019-03-27 01:17|来源: 网路

笔记


tomcat7

solr4.9.0


解压solr

将dist下的solr.4.9.0.war复制到tomcat下的webapps文件下改名solr.war


找到solr文件夹下的example中的solr 将这个文件夹复制到tomcat文件夹下


在tomcat/conf/Catalina/localhost 下新建solr.xml  内容如下

<Context docBase="\solr.war"  crossContext="true" >
   <Environment name="solr/home" type="java.lang.String" value="D:\tomcat7\solr" override="true" />
</Context>

value就是刚才赋值的solr文件路径


启动tomcat会报错

context [/solr] startup failed due to previous errors


缺少架包

到solr/example/lib/ext 将里面的架包复制到 webapps/solr/web-inf/lib 下面


启动tomcat

浏览器打开localhost:8080/solr  

bingo



转自:http://blog.csdn.net/u012967460/article/details/36630775

相关问答

更多
  • 建议的来源使用中文词库
  • tomcat配置数据源solr使用数据源 1、tomcat中配置数据源(注:需要拷贝jdbc相关jar包到tomcat中。tomcat6.x/lib目录下,注意tomcat6.0以下的版本在tomcat5.x/common/lib/目录下) 在server.xml文件,找到“Engine-> Host -> Context”,在其下面配置主要针对某一项目的数据源使用。 在context.xml文件,找到“Context”,在其下面配置可以让所有项目使用。 在Context下面配置数据源如下: 数据源相关参数 ...
  • tomcat配置数据源solr使用数据源 1、tomcat中配置数据源(注:需要拷贝jdbc相关jar包到tomcat中。tomcat6.x/lib目录下,注意tomcat6.0以下的版本在tomcat5.x/common/lib/目录下) 在server.xml文件,找到“Engine-> Host -> Context”,在其下面配置主要针对某一项目的数据源使用。 在context.xml文件,找到“Context”,在其下面配置可以让所有项目使用。 在Context下面配置数据源如下: & ...
  • 我解决了这个问题,它是关于Cygwin文件夹的文件权限,Solr colud不创建文件夹。 我手动更改了访问权限。 I solved the problem, it was about file permissions at Cygwin folder, the Solr coludn't create folders. I changed manually the access rights.
  • 是的,应该可以使用WSO2 DAS 3.0.1,因为它使用的是solr 5.2.1。 您可以完全按照上面提到的步骤为DAS启用它。 Yes it should be possible to do with WSO2 DAS 3.0.1, as it is using solr 5.2.1. You can exactly follow the steps mentioned in above post to enable it for DAS.
  • 不,据我所知,目前这是不可能的(没有在服务器上创建文件,然后从文件创建核心)。 如果需要这种功能,您可能希望为架构使用更多无架构的结构,您可以在其中定义一组映射到字段的不同默认设置的字段前/后缀,然后使用通配符名称来避免定义架构中的每个字段。 基于Lucene的真正模式替代方案也可以是弹性搜索。 No, as far as I know, this is not possible at the moment (without creating the files on the server, then cr ...
  • 如果您通过Web服务调用它,请添加/写入将在所需时间调用Web服务的调度程序。 有关编写调度程序的信息,请参阅以下链接 http://www.mkyong.com/java/how-to-run-a-task-periodically-in-java/ http://archive.oreilly.com/pub/a/java/archive/quartz.html If you are calling it through the web service, add/write a scheduler wh ...
  • 最新的Solr作为独立黑匣子运行。 不要看Tomcat信息的古老教程,它们不再有用。 这是通过.NET客户端连接到它的一个单独问题。 对于客户端部分,SolrNet的源代码版本更新。 它应该与最新的Solr一起工作,主要问题是Solr的URL现在必须包含集合名称,所以http:// localhost:8983 / solr / collectionname 。 检查参数以设置核心或集合或类似。 还有Solr Express,你可能想看看。 Latest Solr runs as standalone bl ...
  • 尝试使用以下fieldType ....
    你不需要做任何特别的事情。 只需为您的发行版获取Tesseract OCR设置并将其安装在系统上。 确保您的PATH变量具有Tesseract主目录的条目,并且设置了TESSDATA_PREFIX变量,并且还指向Tesseract主目录。 重新启动Solr,你很高兴。 通过/update/extract处理程序将文档推送到索引时,您应该能够看到OCR组件。 默认情况下,Tesseract仅附带英文模型。 从这里获取其他语言的模型。 You don't need to do anything special. ...