1. Installation StartupOfficial website: http://lucene.apache.org/solr/Download source code, unzip, go to root directory (I put SOLR under/USR/LOCAL/SOLR)In/usr/local/solr/example, there are some examplesLaunch exampleBIN/SOLR start–e cloud–noprompt-e Another way to start
-inf/lib underAnd thenTurn the tomcat back on;Open Browser HTTP://LOCALHOST:8080/SOLR If the following interface shows that the installation was successfulNext, we'll copy the Dist and contrib under solr-5.1.0 to the Tomcat root directoryThen i we open step A to copy over the folder and you will see the following folderOpen these five files you will find that the documents are similar, this is solr5.0 after
application Conta Iner. In the case of Tomcat, you are need to where the SOLR WAR file in Tomcat's WebApps directory. If you are installed Tomcat with SOLR, take a look in Tomcat/webapps:you ' ll-the Solr.war file is already there.
Point SOLR to the SOLR home directory, that contains
Overview:Apache SOLR is an open-source, enterprise-level search platform built on Apache Lucene projects in the Java language. Key features include: full-text search, hit highlighting, fragment search, real-time indexing, dynamic clustering, database integration, NoSQL features, and rich Text processing. Provides distributed search and index replication, which is designed with extended and fault-tolerant capabilities in mind.
The time problem in 1:SOLRThe time shown in SOLR defaults to eight hours less than our native time, because time zones are different.viewing in SOLR's Web page will find eight hours less time.However, the use of Java code is the full-time operation, so in this only need to know sorl this phenomenon can be.You can add a default value to this time field. Add the Default field toAdds a default value to the Last_modified field, which is the current time.M
Reprint please indicate source: http://blog.csdn.net/cywosp/article/details/389659811. Installing Jdk,tomcatsudo apt-get install tomcat7 openjdk-7-jdk openjdk-7-jre2. Download the latest SOLR to http://lucene.apache.org/solr/. Be careful not to go down to the source code packagesolr-4.9.0.tgz sudo mv solr-4.9.0.tgz/mnt cd/mnt sudo tar-xvf
-v /opt/solr-4.5.0 /opt/solrAnd move example directory to project name or simply core:# mv -v /opt/solr/example /opt/solr/coreCreate a symlink to the Mysql-connector-java we installed earlier:# ln -s /usr/share/java/mysql-connector-java.jar /opt/solr/dist/mysql-connector-java.jarThen edit The/opt/
/web-inf/lib/
Cp-r/home/gaolei/solr-5.4.0/server/lib/ext/* webapps/solr/web-inf/lib/
5. Switch the current position ...CD to webapps/solr/web-inf/, create the Classes folder. and copy the Log4j.properties file under Solr-5.4.0/server/resources to the Tomcat7/weapps/solr/web
(ID));
INSERT into goods (name, number) values (' Shoes ', m);
INSERT into goods (name, number) values (' clothes ');
INSERT into goods (name, number) values (' trousers ', 300);
Download MySQL Driver
Download the Mysql-connector-java driver package from the official MySQL address. Or just run the command to get the 5.1.40 version of the drive:
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
Copy this driver package to the/usr/local/cell
Web server. Here we use the built-in.
Ii. Solr Configuration
New core:
In the web interface opened above, you can perform operations. Click the Core Admin menu to go to the Core Management page.
Click
So we create a folder named test under the path \ solr-5.0.0 \ server \ solr. Go to the solr-5.0.0 \ server \
Preparatory work
Download solr and Tomcat
Solr-4.8.1.tgz,apache-tomcat-7.0.54.tar.gz
Open/home/cluster, unzip
Tar zxvf apache-tomcat-7.0.54.tar.gzTar zxvf solr-4.8.1.tgzStart the installation configurationSOLR
Establish Solrhome
Mkdir-p/home/cluster/solrhome
Copy the Solr
file (assuming that the solr-4.9.0.tgz is in the/home/SOLR directory)CD/home/SOLR
Tar-zxvf solr-4.9.0.tgz
Ln-s solr-4.9.0 SOLR # Changing the SOLR working directoryCP-r/home/
Read Catalogue
Introduction
Solr5.3 Environment Construction
Solr5.3 creating the first core
End
IntroductionA bad design has a good form of expression, it will be sentenced to a reprieve, a good design has a bad form of expression, it will be sentenced to death to execute immediately. From a designer's words, there may be some discrepancy in the original sentence, but the essence is the same. Everyone has their own understanding, my understanding is-understand your cu
1. Software Download
(1). apache-solr-3.1.0, write the latest version of this article, please go to the Apache official website to download, unzip to E:/apache-solr-3.1.0.
(2). Download APACHE-Tomcat-6.0.32 from the Apache official website and decompress it to E:/Apache-Tomcat-6.0.32.
2. Install SOLR on Tomcat
(1). Modify E:/Apache-Tomcat-6.0.32/
to use Hbase-indexer to synchronize data in HBase into SOLR.The rationale is that the operations are rewritten in SOLR once, based on the log of HBase. (i) Installation environment preparation
This article is deployed in an existing clustered environment, with JDK version 1.7, where the HBase cluster version is hbase-1.0.0-cdh5.6.0
The software required for SOLR and HBase integration is as follows: 1,
Notes for re-Indexing in solr and. net series (8) solr,. netsolr
Notes for re-Indexing in solr and. net series (8) solr
If solr is used in the project, it is definitely to run the data in the database into the solr server.
First, installation PreparationOperating system: CentOS 6.5Tomcat version: apache-tomcat-7.0.54.tar.gzSOLR version: Solr-4.9.0.tgzIi. Deployment Implementation
Install Tomcat: slightly .....
Then go to the Tomcat/bin folder, execute the./startup.sh startup script, and then access Tomcat's url:http://ip:8080 in the browser, such as deploying Tomcat successfully.
Install SOLR:
1. SOLR is an enterprise-level Search Server Based on the Lucene Java library. This article records the installation process of SOLR, version 1.4.1.
Http://lucene.apache.org/solr/ from SOLR's official websiteOpen the downloaded apache-solr-1.4.1.zip or apache-solr-1.4.1.tgz
It took nearly one afternoon to configure SOLR. The main problem is
You can set the SOLR master location in one of the following ways:
1. Set the java system property SOLR. SOLR. Home (yes, It is SOLR. SOLR. Home ).2. Configure a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.