Installation of Solr for full-text search purpose
来源:互联网 发布:js往数组中添加对象 编辑:程序博客网 时间:2024/04/30 15:21
A very good article to start with if you want to use solr for your search engine,
http://crazorsharp.blogspot.ca/2010/01/full-text-search-using-solr-lucene-and.html
Here are the quick steps for installation, assuming that the jre is already installed.
1.Installation tomcate web server
1.1 Download from http://mirror.csclub.uwaterloo.ca/apache/tomcat/tomcat-7/v7.0.27/bin/apache-tomcat-7.0.27-windows-x64.zip
1.2 Unzip the downloaded file to a folder c:\apache-tomcat-7.0,27
1.3 Set environment variables with setenv.bat containing following lines
set JRE_HOME=%ProgramFiles%\Java\jre7
set JAVA_OPTS=-Dsolr.solr.home=E:\Solr ( this line is for the solr installation below, if you run tomcat as window server, see below to add this line)
exit /b 0
1.4 Run tomcate server on command line
c:\apache-tomcat-7.0,27\bin> startup.bat
or Install tomcate as windows server
c:\apache-tomcat-7.0,27\bin> service.bat install
if you get "Access is denied", try to run the cmd as administrator, run tomcat7w.exe to start the server
1.5 Test the tomcat web server by browsing http://localhost:8080
2. Installation Solr
2.1 Download: http://apache.mirror.iweb.ca/lucene/solr/3.6.0/apache-solr-3.6.0.zip
2.2 Unzip the file to c:\apach-solr-3.6.0
2.3 Copy the dist/apache-solr-3.6.0.war to c:\apache-tomcat-7.0,27\webapps folder and rename it to solr.war
2.4 Create "solr home":
Copy the solr folder in c:\apach-solr-3.6.0\example to c:\solr
Add one line -Dsolr.solr.home=c:\solr in java options list box of the Java tab in the tomcate7w.exe window
2.5 Restart the tomcate server
Test by browsing http://localhost:8080/solr
Now you can config Solr server to index your content, and using SolrNet to write searching code for your project.
- Installation of Solr for full-text search purpose
- Full-text Search for SQLite
- full-text search
- full-text search examples
- Full Text Search
- SQL Full Text Search service
- 全文搜索 full-text search
- Here Are 8 Of The Top Open Source Full-Text Search Engines!
- Solr 开发 I - Installation, Indexing and Search
- From MySQL full-text search to Elasticsearch
- elasticsearch---search in depth之full-text search
- A record for OF installation
- Purpose of the Voting Disk for #Oracle RAC
- 全文检索(Full-Text Search)与XML
- PostgreSQL 8.3.1 全文检索(Full Text Search)
- Getting Started With MySQL's Full-Text Search Capabilities
- SQL Server 2005全文索引(full text search)
- PostgreSQL 8.3.1 全文检索(Full Text Search)
- OSI七层模型,并详细解释网线,网卡,集线器,交换机,路由器分别工作
- fclose()/pclose() may block on some file pointers
- Mac裸奔的年代真的过去了?
- ListView动态加载数据模板(使用代码布局)
- 模态窗口及传值过程 .
- Installation of Solr for full-text search purpose
- post get 区别 .
- 算法系列15天速成——第七天 线性表【上】
- 使用ident来格式化你的c程序
- 算法系列15天速成——第八天 线性表【下】
- Suppress output from popen()
- 面试一
- poj 1204 AC自动机
- 字体处理