`
mlzboy
  • 浏览: 700952 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

How to set up Solr on Ubuntu 10.04 (or whatever)

阅读更多
How to set up Solr on Ubuntu 10.04 (or whatever) | Tags: solr search Apache Solr is a fast, open-source search solution. People are doing some very cool things with Solr. I personally have only begun to scratch the surface of what is possible with Solr, but have seen amazing returns with a relatively small investment (thanks entirely to Daniel Lindsley's excellent search framework, django-haystack). There are instructions for getting up and running with Solr + Jetty -- the purpose of this blog entry is to walk through setting up multi-core Solr with Apache Tomcat. Let's go First step, install the server: sudo apt-get install tomcat6 Next you'll want to get Solr and extract it to a temporary directory mkdir -p ~/tmp/solr/ cd ~/tmp/solr/ wget http://apache.multihomed.net/lucene/solr/1.4.0/apache-solr-1.4.0.tgz tar xzf apache-solr-1.4.0.tgz All the solr cores and indexes will go in /var/solr: sudo mkdir -p /var/solr Copy the Solr webapp and the example multicore configuration files: sudo cp apache-solr-1.4.0/dist/apache-solr-1.4.0.war /var/solr/solr.war sudo cp -R apache-solr-1.4.0/example/multicore/* /var/solr/ sudo chown -R tomcat6 /var/solr/ OK, now just need to point Catalina at Solr: echo -e '<context docbase="/var/solr/solr.war" debug="0" privileged="true" allowlinking="true"> 'crossContext="true"&gt;\n<environment name="solr/home" type="java.lang.String" value="/var/solr"> 'override="true" /&gt;\n</environment>' | sudo tee -a /etc/tomcat6/Catalina/localhost/solr.xml echo 'TOMCAT6_SECURITY=no' | sudo tee -a /etc/default/tomcat6 I edited the init script (/etc/init.d/tomcat6) to set solr.home, pointing it at /var/solr. I made this change near the top of the file other environment vars are set up: JAVA_OPTS="$JAVA_OPTS -Dsolr.home=/var/solr" Restart Tomcat6 and luxuriate in your newfound power: sudo /etc/init.d/tomcat6 restart Navigate to http://localhost:8080/solr/ - you should get something like this: Where to now? The solrconfig.xml files provided for each core are pretty barebones, so you'll want to replace those with something more like the solrconfig.xml at ~/tmp/solr/apache-solr-1.4.0/example/solr/conf/solrconfig.xml I personally copy all the stuff from the example conf directory into any new cores I create and use that as a starting place.</context>

分享到:
评论

相关推荐

    ubuntu下安装solr4.9详细介绍

    文档中详细介绍了如何在ubuntu下面安装solr-4.9.0,以及在安装过程中出现的问题和解决办法

    Apache Solr High Performance

    You will learn everything you need to know in order to achieve a high performing Solr instance or set of instances, as well as how to troubleshoot the common problems you are prone to face while ...

    Apache-Solr-Reference-Guide-v3.5

    include how to back up a Solr instance, and how to run Solr with Java Management Extensions (JMX). : This section tells you how to grow a Solr distribution by dividing a Scaling and Distribution large...

    Solr in Action_2014

    - How to scale Solr for big data - Rich real-world examples - Solr as a NoSQL data store - Advanced multilingual, data, and relevancy tricks - Coverage of versions through Solr 4.7

    Solr in Action

    deep understanding of how to implement core Solr capabilities such as faceted navigation through search results, matched snippet highlighting, field collapsing and search results grouping, spell-...

    Solr in Action(Manning,2014)

    This easy-to-read guide balances conceptual discussions with practical examples to show you how to implement all of Solr's core capabilities. You'll master topics like text analysis, faceted search, ...

    Practical Hadoop Ecosystem(Apress,2016)

    How to set up environment in Linux for Hadoop projects using Cloudera Hadoop Distribution CDH 5. How to run a MapReduce job How to store data with Apache Hive, Apache HBase How to index data in HDFS ...

    Ubuntu16.04安装部署solr7

    Ubuntu16.04安装部署solr7详细过程,有需要搭建的可以参考!

    Apache Solr Essentials(PACKT,2015)

    The book starts off by explaining the fundamentals of Solr and then goes on to cover various topics such as data indexing, ways of extending Solr, client APIs and their indexing and data searching ...

    Apache.Solr.Search.Patterns.1783981849

    Leverage the power of Apache Solr to power up your business by navigating your users to their data quickly and efficiently About This Book Learn the best use cases for using Solr in e-commerce, ...

    Solr in Action最新完整版

    Readers will gain a deep understanding of how to implement core Solr capabilities such as faceted navigation through search results, matched snippet highlighting, field collapsing and search results ...

    Solr in Action 英文版完整版

    Readers will gain a deep understanding of how to implement core Solr capabilities such as faceted navigation through search results, matched snippet highlighting, field collapsing and search results ...

    Apache Solr(Apress,2015)

    The book, which assumes a basic knowledge of Java, starts with an introduction to Solr, followed by steps to setting it up, indexing your first set of documents, and searching them. It then covers the...

    [Solr] Solr 管理教程 (英文版)

    Learn how to work with monitoring tools like OpsView, New Relic, and SPM Utilize Solr scripts and Collection Distribution scripts to manage Solr Employ search features like querying, categorizing, ...

    Pro Docker: Learn how to use Containers as a Service for development and

    packaging and running portable distributed applications, Deepak Vorhadiscusses how to build, ship and run applications on any platform such as a PC, the cloud, data center or a virtual machine....

    ubuntu下solr7的ik分词及配置使用

    git地址https://github.com/magese/ik-analyzer-solr7,注意为solr7x的版本,如果低于此版本可能不使用 另外附件中有solr7的配置

    solr.war包solr.war包solr.war包solr.war包solr.war包

    solr.warsolr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包...

    Apache.Solr.4.Enterprise.Search.Server.3rd.Edition.1782161368.epub

    If you are a developer who wants to learn how to get the most out of Solr in your applications, whether you are new to the field of search or have used Solr but don t know everything or simply want a ...

    Apache.Solr.4.Enterprise.Search.Server.3rd.Edition.1782161

    If you are a developer who wants to learn how to get the most out of Solr in your applications, whether you are new to the field of search or have used Solr but don t know everything or simply want a ...

Global site tag (gtag.js) - Google Analytics