In a Linux environment, deploy Solr in tomcat7, import Mysql database data, regularly update indexes, and solrtomcat7What is solr?
Solr is a full-text search Server Based on Lucene. It expands and optimizes Lucene.Preparations
First, download the
Apache SOLR Beginner's Tutorial (introductory tour)Written in front: This article covers all aspects of the introduction of SOLR, please read on a line, and I believe it will help you to have a clear and comprehensive understanding and use of
Install the Java language Software Development Kit
Brew Cask Install Java
Alternatively, select the Mac version jdk-8u111-macosx-x64.dmg download and install on the Oracle website.
Install SOLR
Brew Install SOLR
The SOLR
Building HBase Two indexes using SOLR
@ (hbase) [HBase, SOLR]
Building an HBase two-level index using SOLR Overview A Business Scenario Description Two technical Scenario 1 technical programme 12 Technical programme 23 recommendations on indexes
Test data volume: 10407608Num Docs: 10407608One of the most common queries in a project is to query data within a certain period of time, and obtain data through SQL query for about 30 s.SELECT * FROM 'Tf _ hotspotdata_copy_test 'WHERE collectTime
The Java installation and tomcat installation are ignored here, And the solr-4.10.0 is used here
1. Download SOLR from Apache. Address:
Http://mirrors.hust.edu.cn/apache/lucene/solr/
2. Extract the solr-4.10.0
3. Copy the SOLR. War file in
Original address: http://blog.csdn.net/zcl_love_wx/article/details/52092098
The SOLR server management interface allows you to view the system status, SOLR settings, Word detection, query indexing, core changes, view logs, etc. 1.Dashboard
Lucene-based SOLR has always been known for its stability and high performance, although it has high CPU requirements, but it can solve complex queries and return search results in such a fast speed, which is a great tool to develop search. SOLR,
Add/Update (OVERWRITE=TRUE)# Coding=utf-8import Requestsdata = {"Add": {"Doc": {"id": "10001", "Item_title": "I am a good person"}}} # The data to add params = {" Boost ": 1.0," Overwrite ":" true "," Commitwithin ": + # Overwrite: If there is
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.