solr是什么?

翻译

SolrTM is the popular, blazing fast open source enterprise search platform from the Apache LuceneTM project. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world's largest internet sites.

Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Jetty. Solr uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use from virtually any programming language. Solr's powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.

See the complete feature list for more details.

solr安装

下载:

http://archive.apache.org/dist/lucene/solr/

最新版本4.6.1

环境需求:

java 1.6版本以上;

solr运行需要java serverlet 容器,默认使用jetty,或者tomcat,jboss等等。

步骤:

1.wget 软件包,wget http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz

2.解压, tar zxvf solr-4.6.1.tgz

3.进入到solr-4.6.1/example, 运行java -jar start.jar,这样jetty就监听在8983端口,在浏览器输入ip:8983/solr

side XXXXXXXXX

使用tomcat替代jetty

1.安装好java,安装好tomcat

2.将解压包中的solr-4.6.1/dist/solr-4.6.1.war复制到tomcat_dir/webapps/目录,并命名为solr.war

3.将solr-4.6.1/example/lib/ext/目录下的jar文件复制到tomcat_dir/lib目录下,将solr-4.6.1/example/resources/下的log4j.properties文件复制到tomcat_dir/lib目录下

这一步的目的是解决报错 startInternal SEVERE: Error filterStart,参考http://www.cnblogs.com/hupengcool/archive/2013/05/11/3072573.html

4.修改tomcat_dir/conf/server.xml

    <Connector port="" protocol="HTTP/1.1"
connectionTimeout=""
redirectPort=""
URIEncoding="UTF-8" />

5.创建solr.xml,路径:tomcat_dir/conf/Catalina/localhost/solr.xml,内容:

<Context path="/solr" docBase="/home/app/act/tomcat/apache-tomcat-7.0.47/webapps/solr.war"
debug="" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/home/app/act/solr/example/solr/" override="true" />
</Context>

6.下面是添加solr配置文件,这些文件包括schema.xml,solrconfig.xml等等,这些文件放置在solr/home目录下(实际上实在solr/home/collection1下)。

solr-4.6.1/example/solr/下的目录结构是

.
├── bin
├── collection1
│   ├── conf
│   │   ├── admin-extra.html
│   │   ├── admin-extra.menu-bottom.html
│   │   ├── admin-extra.menu-top.html
│   │   ├── clustering
│   │   │   └── carrot2
│   │   │   ├── kmeans-attributes.xml
│   │   │   ├── lingo-attributes.xml
│   │   │   └── stc-attributes.xml
│   │   ├── currency.xml
│   │   ├── elevate.xml
│   │   ├── lang
│   │   │   ├── contractions_ca.txt
│   │   │   ├── contractions_fr.txt
│   │   │   ├── contractions_ga.txt
│   │   │   ├── stopwords_ca.txt
│   │   │   ├── stopwords_cz.txt
│   │   │   ├── stopwords_da.txt
│   │   ├── mapping-FoldToASCII.txt
│   │   ├── mapping-ISOLatin1Accent.txt
│   │   ├── protwords.txt
│   │   ├── schema.xml
│   │   ├── scripts.conf
│   │   ├── solrconfig.xml
│   │   ├── spellings.txt
│   │   ├── stopwords.txt
│   │   ├── synonyms.txt
│   │   ├── update-script.js
│   │   ├── velocity
│   │   │   ├── browse.vm
│   │   │   ├── cluster_results.vm
│   │   │   ├── cluster.vm
│   │   │   ├── debug.vm
│   │   │   └── VM_global_library.vm
│   │   └── xslt
│   │   ├── example_atom.xsl
│   │   ├── example_rss.xsl
│   │   ├── example.xsl
│   │   ├── luke.xsl
│   │   └── updateXml.xsl
│   ├── core.properties
│   ├── data
│   │   ├── index
│   │   │   ├── _0.fdt
│   │   │   ├── _0.fdx
│   │   │   ├── _0.fnm
│   │   │   ├── _0_Lucene41_0.doc
│   │   │   ├── _0_Lucene41_0.pos
│   │   └── tlog
│   │   └── tlog.
│   └── README.txt
├── README.txt
├── solr.xml
└── zoo.cfg

按照上面可以运行solr。

[solr]solr的安装的更多相关文章

  1. Nutch搜索引擎(第2期)_ Solr简介及安装

    1.Solr简介 Solr是一个高性能,采用Java5开发,基于Lucene的全文搜索服务器.同时对其进行了扩展,提供了比Lucene更为丰富的查询语言,同时实现了可配置.可扩展并对查询性能进行了优化 ...

  2. Solr 1.3 安装步骤

    可以通过以下三种方式之一设置   Solr   的主位置: 1.设置   java   系统属性   solr.solr.home   (没错,就是  solr.solr.home).    2.配置 ...

  3. Zookeeper、Solr和Tomcat安装配置实践

    Zookeeper.Solr和Tomcat安装配置实践

  4. Nutch搜索引擎Solr简介及安装

    Nutch搜索引擎(第2期)_ Solr简介及安装   1.Solr简介 Solr是一个高性能,采用Java5开发,基于Lucene的全文搜索服务器.同时对其进行了扩展,提供了比Lucene更为丰富的 ...

  5. 最新版Solr 7.2安装配置

    Solr是一个独立的企业级搜索应用服务器,它对外提供类似于Web-service的API接口.用户可以通过http请求,向搜索引擎服务器提交一定格式的XML文件,生成索引:也可以通过Http Get操 ...

  6. (一)Solr——简介和安装配置

    1. solr简介 1.1 Solr是什么 Solr是apache的顶级开源项目,它是使用java开发 ,基于lucene的全文检索服务器. Solr和lucene的版本是同步更新的,最新的版本是7. ...

  7. Solr学习、安装与Quick Start

    之前用Lucene进行了一些简单的例子,现在安装Solr学习一下. 在mac下,貌似可以直接brew install solr来进行安装.尝试一下. 貌似安装成功了: ==> Summary

  8. Solr单机版的安装与使用

    .使用Solr实现. 基于Solr实现站内搜索扩展性较好并且可以减少程序员的工作量,因为Solr提供了较为完备的搜索引擎解决方案,因此在门户.论坛等系统中常用此方案. .什么是Solr. Solr是A ...

  9. Solr集群安装Version5.5.2(cloud模式)

    Solr安装cloud模式,基于Solr的安装版本为5.5.2. 安装规划 Solr IP/机器名 安装软件 运行进程 zdh-7 solr jar zdh-9 solr jar zookeeper ...

  10. solr笔记之solr下载及安装

    在学习solr过程中,磕磕碰碰,遇到过许多问题,所以特写下笔记,以供需要的时候时常翻阅,也给能看到该博文的博友提供一个不全面的参考. 一.solr简介: Solr是一个独立的企业及搜索应用服务器,它对 ...

随机推荐

  1. 复合词 (Compund Word,UVa 10391)

    题目描述: 题目思路: 用map保存所有单词赋键值1,拆分单词,用map检查是否都为1,即为复合词 #include <iostream> #include <string> ...

  2. jQuery实现checkbox(复选框)选中、全选反选代码

    谁都知道 在html 如果一个复选框被选中 是 checked="checked". 但是我们如果用jquery alert($("#id").attr(&qu ...

  3. LintCode-374.螺旋矩阵

    螺旋矩阵 给定一个包含 m x n 个要素的矩阵,(m 行, n 列),按照螺旋顺序,返回该矩阵中的所有要素. 样例 给定如下矩阵: [     [ 1, 2, 3 ],     [ 4, 5, 6 ...

  4. iOS-UILabel加线

    NSAttributedString *attrStr =[[NSAttributedString alloc]initWithString:[NSString stringWithFormat:], ...

  5. C# 如何在winform中嵌入Excel,内嵌Excel,word

    近使用.net做一个小软件遇到一个问题,就是想实现把excel表格在winform中打开,同时可以操作,不单单是打开.或者就提取数据.在网上找了好多资料,发现这方面的资料比较少,即使有,都是旧版本的使 ...

  6. 某一线互联网公司前端面试题总结css部分

    1,css3选择器 :not(selector) 选择页面内所有type!=text的类型: input:not([type=text]){ color: red; font-weight: bold ...

  7. Maximum execution time of 30 seconds exceeded解决办法

    Maximum execution time of 30 seconds exceeded,今天把这个错误的解决方案总结一下: 简单总结一下解决办法: 报错一:内存超限,具体报错语句忘了,简单说一下解 ...

  8. Python对字符串进行MD5加密处理

    import hashlibimport sysreload(sys)sys.setdefaultencoding('utf-8') m = hashlib.md5()m.update('123456 ...

  9. 【bzoj4008】[HNOI2015]亚瑟王 概率dp

    题目描述 $n$ 张牌,$r$ 轮游戏,每轮从左向右操作,遇到第 $i$ 张牌有 $p_i$ 的概率选中,选中会产生 $d_i$ 的贡献,丢弃掉该牌并结束这一轮,否则继续下一张.问最终的期望贡献. 输 ...

  10. 【bzoj2588】Spoj 10628. Count on a tree 离散化+主席树

    题目描述 给定一棵N个节点的树,每个点有一个权值,对于M个询问(u,v,k),你需要回答u xor lastans和v这两个节点间第K小的点权.其中lastans是上一个询问的答案,初始为0,即第一个 ...