Introduction:
SOLR is an enterprise-level full-text search engine based on Lucene Java Search Library. It is currently a project of Apache. Its official website is in http://lucene.apache.org/solr. SOLR needs to run in a servlet container, such as Tomcat. SOLR provides HTTP/XML-based Web Services at the upper layer of
This article is a companion article about Apache SOLR. I will analyze each package of Apache SOLR one by one, and try to analyze the SOLR design and architecture in detail. Apache SOLR consists of 12 packages:
Org. Apache. SOLR. Analysis
Org. Apache.
Search engine Solr environment setup instance
The Solr server is developed using Java 5 and is based on Lucene full-text search. To build Solr, first configure the java environment and install the corresponding jdk and tomcat.
The latest solr4.10.3 version is set up in the jdk1.7 and tomcat 1.7 environments.
The procedure is as follows:
1. Go to http://developere
SOLR is a lucene-based Java search engine server. SOLR provides level search, hit highlighting, and supports multiple output formats (including XML/XSLT and JSON formats). It is easy to install and configure, and comes with an HTTP-based management interface. SOLR has been used in a number of large sites, more mature and stable.
1. Unzip the TarTAR-ZXVF solr-4.10.3.tgz.tgz-c/opt2. Rename to SolrMV SOLR-4.10.3/SOLR3. TheSOLR/dist/solr-4.10.3.war package is deployed under Tomcat. and changed its name to Solr.war .[email protected] dist]# CP Solr-4.10.3.war/opt/tomcat/webapps/solr.war4 . Unzip the war package. Start Tomcat automatic decompressio
SOLR is based on SOLR to achieve a better site search scalability and reduce the workload of programmers, because SOLR provides a more comprehensive search engine solutions, so in portals, forums and other systems commonly used in this scenario. Provides a complete cluster scenario, and an index library optimization scheme.
Implemented using a Third-party search
1. Writing the configuration file 1) Write Data-config-comment.xml, which describes how to query MySQL data and how to import data into an index. Suppose there is a database called MOOC, which has a table called comment, which represents the student's comments which
Entity corresponds to a row in the MySQL database table
query for SQL queries for full library imports
Queryimportquery SQL query corresponding to incremental import
The deltaquery corresponds to an incremental
Current state of affairs
SSL support is added in version 4.2 (Solrcloud v4.7).
Protection of Zookeeper content through ACLs is added in version 5.0
Authentication and Authorization plugin support is added in 5.2 (Solrcloud only)
Basic Auth Kerberos plugins and rule-based Authorization plugin is added in 5.3
There is (as of 5.3) No role-based restrictions on the Admin UI, so being aware that anyone with access to Admin UI would be a ble to does anything with your system
A total of three parts, the first part SOLR conventional treatment, the second part of the targeted treatment, the former is more general, the latter has limitations. It is important to adjust the parameters and compare the performance according to the specific application characteristics. Part IIISOLR Queries RelatedSpecific applications need to be comprehensive to control, all factors work together.The first part e-Text Connection http://wiki.apache
SOLR cluster environment setupA. Prepare1. Download:solr-4.4.0.zip SOLR installation packageapache-tomcat-7.0.47.tar.gz Tomcat installation package2. Description:Where the cluster environment using nginx for distribution (also can use Apache),nginx installation is no longer introduced here. We have a total of four machines, respectively, as follows10.10.42.16410.10.42.16510.10.42.16610.10.42.167where 10.10.
Running SOLR is a simple task. It is not easy to make SOLR run your project efficiently. There are too many factors to consider. It is important to understand SOLR configurations. Understand the meaning of each configuration item in the configuration file!
In SOLR, schema. xml and solrconfig. xml under the
Test Data Volume: 10407608Num docs:10407608In the project one of the most commonly used queries, query a certain period of time data, SQL query to obtain data, 30s or soSELECT * from ' tf_hotspotdata_copy_test ' WHERE collecttime BETWEEN ' 2014-12-06 00:00:00 ' and ' 2014-12-10 21:31:55 ';After indexing the collecttime, the same query, 2s, is much faster.SOLR Index
SOLR query, same condition, 72ms"Status": 0,"Qtime": 72,"Params": {' Indent ': ' true
solr-4.10.0 and TOMCAT7 Integration related configurations:
1. Create folder directory on this machine as shown in figure:
2. Copy all the information in the SOLR file under the example file in SOLR to the location you want as the server D:\solrconfig\solr\home file
3. Copy the Solr.war file in
SOLR Database Import1. Create a table T_SOLR in MySQL and insert the test data.2, put E:\Solr\solr-4.10.4\example\example-DIH\solr\db\conf under the admin-extra.html, Admin-extra.menu-bottom.html,admin-extra.menu-top.html three files are also copied to the Conf.Open the E:\Solr
1. Uploading Data with SOLR Cell using Apache TikaSOLR uses the Apache Tika Engineering code to provide a framework for merging all the different formats of file parsers for SOLR's own parser, such as Apache Pdfbox,apache POI. Through this framework, SOLR uses Extractingrequesthandler to upload binary files.If you want SOLR to use your own contenthandler, you nee
SOLR Multi-core (multicore) configurationSOLR multicore significanceSOLR multicore is a new feature of SOLR 1.3 . Its purpose is a solr instance that can have multiple search applications. we areyou can put different types of data intoThe sameIndex, you can also use a separate multi- indexes. Based on this, you only need to know how to use multiple Indexes(w
Combine SOLR and Tomcat:1. Create a directory under D disk D:\DEMOS\SOLR2. Unzip the solr-4.9.0 file, I download here is this 4.9 version, will example folder in the Solr folder of all the files (not including the SOLR folder itself)Copy to the D:\DEMOS\SOLR directory3. Crea
Basic knowledge of running Solr in Eclipse, eclipsesolrI am still a newbie in Solr. Writing these articles only record my experiences with Solr in recent years.What is Solr?Recently, when I was studying Solr, I have seen a sentence that
This article mainly analyzes important hadoop configuration files.
Wang Jialin's complete release directory of "cloud computing distributed Big Data hadoop hands-on path"
Cloud computing distributed Big Data practical technology hadoop exchange group: 312494188 Cloud computing practices will be released in the group every day. welcome to join us!
Wh
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.