Have seen a lot of installed blog posts, combined with several plans to write their own simple integrated step, first ensure that the installation of JDK and Tomcat1. Download solr-4.10.4, unzip to/opt2. Select a directory for SOLR and use the SOLR_HOME environment variable to point to this directory, I chose/OPT/SOLR here, so my solr_home=/opt/
jar files under the example\lib\ex folder to Webapps\solr\web-inf\lib. (6) When you run HTTP://LOCALHOST:8080/SOLR, you will see a page that looks like this: At this time, the environment of SOLR was completed (at this time only one core,solr support multicore , let's not say it for the time being, and then start
add a child element to the 4.3 Modifying the configuration file dataimport.properties:Create a new directory under the SOLR_HOME\SOLR directory conf (note not solr_home\solr\collection1 below conf), Then use the decompression file to open the Apache-solr-dataimportscheduler
SOLR multicore is a new feature of SOLR 1.3. It is a SOLR instance and can have multiple search applications.Here's a start to run out of a example given by SOLR. This article is based on the "Use SOLR to build enterprise search platform-run
Combine SOLR and Tomcat:
1. Create a directory D:\DEMOS\SOLR under D disk
2. Extract solr-4.9.0 file, I download here is this 4.9 version, will example folder in the Solr folder in all files (not including the SOLR folder itself)
Copy to D:\DEMOS\
. XML Reference PathEntry: G:\solr_cloud\tomcat1\webapps\solr\WEB-INFModify Web. xml, remove Each of the remaining TOMCATX under SOLR is configured with the corresponding Solr_home path.2, modify solr_home under Solr.xml configuration Tomcat Port pathEntry: G:\SOLR_CLOUD\SOLR_HOME1\SOLRModify the Solr.xml, respectively, to the corresponding port and IP,Make a tomcat configuration for the remaining solr_home
Q: for pinyin and Pinyin first letter support, when you search for goods, if you want to enter the pinyin and pinyin first letter to give the product information, how to do?There are 2 ways to implement them, but they are in fact corresponding.
using Lucene to achieve
1. Build an index, more than one index field, that is, pinyin and pinyin first letter of the 2 fields. A field that is merged.(Pinyin and pinyin initials can be obtained by Pinyin4j.jar. Convert the fields you want to searc
1. first assume that my data fields are: Name, tel, address preset Search is the Name field, if the data to be searched is exactly the name field, you do not need to specify the search field name. 2. Query Rules:If you want to query a specific field (not a preset field), precede the query with the field name plus ":" (No "sign") symbol,For example: Address: tel:88xxxxx1, Haidian District, Beijing Software Park1>. Q represents query input2>. Version stands for
A brief description of Solr master-slave cluster configuration and a brief description of solr master-slave Cluster
Solr clusters are mainly divided into master-slave and SolrCloud clusters. It is applicable to read-dominated scenarios. SolrCloud is suitable for scenarios with large data volumes and updates from time to time. Therefore, the master-slave configura
1Create a collection
SSH connects remotely to the CDH node that has SOLR installed.
Running the solrctl instancedir--generate/solr/test/gx_sh_tl_tgryxx_2015 command generates the default configuration for the Gx_sh_tl_tgryxx_2015 collection.
Enter the/solr/test/gx_sh_tl_tgryxx_2015/conf directory, first edit th
I. Introduction of SOLR Recently in a project to do a full-text search function, initially intended to use Apache Lucene to achieve, after all, before the Lucene have a little understanding, but in the Internet to see the technical articles when they saw someone introduced Apache SOLR, feel very good, is also an open source search server, mainly based on HTTP and Apache Lucene implementation. The resources
After learning from the previous two articles, using SOLR for data import and incremental indexing of MySQL should be all right.
(Children's shoes are not clear, please check the following blog posts to learn: http://blog.csdn.net/weijonathan/article/details/16962257, Http://blog.csdn.net/weijonathan /article/details/16961299)
Next we'll learn to read the data we want from SOLR. You can also verify with the
Disclaimer: I am using Slor 4. Integrated in the 7.2+tomcat7+widows environment
First, download solr4.7.2, unzip. Unzip the directory below.
Copy the Solr.war in the Example/webapps directory into the WebApps directory of Tomcat;
Third, the Solr.war decompression, at this time you can delete the Solr.war file.
Iv. Create a new file home, name and location options, as pictured myself in my Learning Search technology folder built under the Solr-to
Download SOLR, tomcat, and ant from the Apache website. After SOLR is compiled with ant, * SOLR *. War is generated in the DIST directory of SOLR. You can copy the war to Tomcat webapp. You can also specify the location of the war and SOLR/home by using JNDI. Because
,SOLR project provides its own log package)6. Import the log4j configuration file.
7. Modify the configuration file
8. Complete
Graphic:
0. Download SOLR's compact Package
1. Unzip to the E-drive, copy the file directory E:\solr-4.10.3\example\webapps under Solr.war to Tomcat. \apache-tomcat-7.0.68\webapps directory, run, auto unzip generate SOLR project file
Download the solr file compressed package and decompress it. Install jdk before running the solr service. For the installation process, see the following article:
Http://www.cnblogs.com/xiazh/archive/2012/05/24/2516322.html
Wget http://mirror.bit.edu.cn/apache/lucene/solr/3.6.0/apache-solr-3.6.0.tgz
After decompressio
uninstall_service
It will remove/etc/init. d/mongo-connector and/etc/mongo-connector.json
View service status
Service mongo-connector status
Configure Solr
The Solr configuration file solr. xml is available in the Solr data DIRECTORY/data/solr/data /.
Create a core
Su-
Prerequisites:Installing SOLR Version: 4.8.0 deployment SOLR Path:/data/solr-4.8.01. Upload some configuration information via zookeeper:Upload configuration information to the ZK environment via the ZK command/data/solr-4.8.0/node/scripts/cloud-scripts/zkcli.sh-zkhost solr1-cmd upconfig-confdir/data/
-SOLR-dataimporthandler-* with SOLR -*. jar, APACHE-SOLR-dataimporthandler-extras -*. jar to SOLR. under the lib directory of war2. Modify WEB-INF/Web. XML in SOLR. War and add the following before the servlet node:
3. run APACHE-SOLR
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.