简体   繁体   English

用于生产的Apache Solr

[英]Apache Solr for production

I have chosen Apache Lucene with Solr to learn about advanced search indexing for my web applications but there seems to be a gap in configuration between versions Solr 4 and Solr 5. 我选择了带Solr的Apache Lucene来学习我的Web应用程序的高级搜索索引,但是版本Solr 4和Solr 5之间似乎在配置方面存在差距。

Most online material and books get you to setup Apache Tomcat to run the Solr service for version 4. Whereas version 5 tells you to use it using its built-in service. 大多数在线资料和书籍都会使您设置Apache Tomcat来运行版本4的Solr服务。而版本5则告诉您使用其内置服务来使用它。

My web applications are built on the LAMP stack and I would like in the future to use Solr in production and I am wondering what version/configuration is best practice? 我的Web应用程序建立在LAMP堆栈上,我希望将来在生产中使用Solr,我想知道哪种版本/配置是最佳实践?

The latest stable version of Solr is currently 5.4.0. Solr的最新稳定版本当前为5.4.0。 So, that is the version that you should be using unless there is some other constraint that requires you to use an older version. 因此,除非有其他限制要求您使用旧版本,否则这就是您应该使用的版本。

By default Solr runs in Jetty, but you can also run in in various other servlet containers. 默认情况下,Solr在Jetty中运行,但是您也可以在其他各种servlet容器中运行。 Here is documentation for running it inside Tomcat: https://wiki.apache.org/solr/SolrTomcat 这是在Tomcat中运行它的文档: https : //wiki.apache.org/solr/SolrTomcat

As far as having a LAMP stack, that shouldn't really have much to do with Solr. 就拥有LAMP堆栈而言,与Solr并没有太大关系。 You should have a webapp that is accessing Solr and is sitting behind an web server (in your case Apache httpd). 您应该有一个访问Solr并位于Web服务器(在您的情况下为Apache httpd)后面的webapp。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM