SOLR uses the Lucene search library as the core, provides full-text indexing and search for open source enterprise platforms, provides rest of the Http/xml and JSON APIs, and if you're new to SOLR, get started with me! This tutorial takes solr4.8 as a test environment, and the JDK version requires version 1.7 and later.Get readyThis article assumes that you have a junior level or above in Java and therefore
Solr and. net series course (7) solr master-slave replication,. netsolr
Solr and. net series course (7) solr master-slave Replication
Since solr is a solution to solve the full-text index of a large amount of data, due to the high concurrency problem, we need to consider
above1) apache-solr-1.4.1/Dist/apache-solr-1.4.1.war
You can copy this war to the SOLR home directory.
3.4 add the Tomcat \ conf \ Catalina \ localhost \ SOLR. xml file
Content:
3.5 start Tomcat
If you can see the SOLR search page, it indicates that
Solr learning (6) -- Solr's PHP client solr returns results in xml or json format, not like the pretty and refreshing interface we usually use google or Baidu, in fact, solr is only responsible for data query and return, and is not responsible for display. if you want to generate a google-like interface, you can also use the
DocumentDocument is the most basic unit of the SOLR index (verb, indexing) and search, which resembles a record in a relational database table and can contain one or more fields (field), each containing a name and text value. A field can be stored in an index while it is indexed, and the value of the field can be returned when the search is searched, and usually the document should contain an ID field that uniquely represents the document. For example
]. [dbo]. [Books] where [publishdate] > ' ${dataimporter.last_index_time} ' "> Fieldcolumn= "id"name= "id" /> Fieldcolumn= "Name"name= "Name" /> Entity> Document>Dataconfig>This configuration is very important.The above configuration instructions are as follows:Query is the SQL that gets all the data (SOLR gets those data from SQL), and multiple columnsDeltaimportquery is the SQL
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
SOLR and. NET Series courses (eight) considerations for re-running indexes in SOLRIf we use SOLR in a project, it is necessary to run the data in the database into the SOLR server, there are two operations in SOLR, one is to create a new index, and one is an incremental index, here we say a new index noteStop Run Index
Index
Submit the data for indexing, to E:/apache-solr-3.1.0/example/exampledocs, run:
E:/apache-solr-3.1.0/example/exampledocs> JAVA-durl = http: // localhost: 8080/SOLR/update-dcommit = yes-jar post. jar demo-Doc *. XML
At this point to the E:/apache-solr-3.1.0/example/
Solr Dataimporthandler imports MySQL memory overflow ., Solr memory overflow
Recently, we are preparing to import more than 19 million of the data into Solr. In the past, only 1 millions or 2 millions of the test data was used. There is no task problem in full import. However, when the data is changed to 19 million, solr
Mmseg4j is a good Chinese word breaker, and the integration of SOLR and mmseg4j is very simple. As follows:The first step: Download mmseg4j jar package, online search for a lot, the following is a connection on the CSDN: http://download.csdn.net/detail/nrs12345/6986585Step Two: Copy the downloaded Mmseg4j-analysis-1.9.1.jar, Mmseg4j-core-1.9.1.jar, Mmseg4j-solr-2.2.0.jar three jar packages to the WEBAPPS/
contains the configuration information for the index SOLR instance.
II. There is a solrconfig.xml under the Conf folder. Configures information about the instance. If you use the default configuration, you do not have to make any modifications.
configuration information FOR xml:
Lib: The SOLR service relies on the expansion pack, the default path is the Collection1\lib folder, and if not, create a
DataDir
Build a local Solr server and a Solr Server
1. Download The Solr official website http://developere.apache.org/solr/to download the solrproject FileIn this project file, you can find the resource file required to run the Solr server in the local environment. Here we take 4.
One, SOLR study related information
1. Official materials
(1) QuickStart: http://lucene.apache.org/solr/4_9_0/tutorial.html, with its own example project, provides a quick introduction to the basic use of SOLR.
(2) api:http://lucene.apache.org/solr/4_9_0/index.html
(3) reference:pdf format, apache-
to put under webapps such as Tomcat server, and rename it to solr-cores.war (of course it can be other ). Write a solr-cores.xml file in the tomcat/CONF/Catalina/localhost directory, such:
ContextDocbase=Solr-cores.war"Reloadable="True">
Environment Name = "SOLR/home" Type = "Java. Lang. String" Va
Today is still not related to Java and database operations, mainly to summarize SOLR query parameters, or that sentence, only the first understanding of SOLR's basic content and query syntax, follow-up learning SOLR Java and Database operations, are the things that happen. The parameters required for SOLR queries are listed here firstWiki address: Http://wiki.apa
Easynet. SOLR (http://easynet.codeplex.com) is a SOLR (http://lucene.apache.org/solr) C # client developed by myself. It has the following features:
1. Support for SOLR 3.1 (not compatible with SOLR 1.4.x)
2. By default, SOLR's most efficient javabin protocol is suppo
Today, we collected some information about the spelling checker and tried to use the spelling checker.--= encountered a lot of problemsFour configurations for spell checking now I'm just a success, half of it.---------------------------------The spell checker feature provides a better user experience when searching, so the main search engine has this feature. Before this, I would like to briefly say what is the spelling checker, in fact, very good understanding, is that you enter the search term
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.