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.
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
The previous talk about SOLR's installation, according to the rationale, this time should be about. NET and the contents of the database, C # How to manipulate SOLR indexes and so on. But I would like to start with some basic content, such as SOLR query parameter usage instructions and the use of SOLR's own web management system. Only first understand the basic content of
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
errors caused SOLR to return an error page instead of the result of index success.
Where the above HTML code is formatted after rendering:
HTTP Status 405-http method POST is not supported by this URL
Type Status Report
Message HTTP method POST is not a supported by this URL
Description The specified HTTP method is not a allowed for the requested resource. Apache tomcat/7.0.54 Workaround:
After using Tomcat to deploy
Software environment:
Operating System: rehl 5
JDK: JDK 1.6.0 _ 16
Tomcat: 6.0.20
I. Install JDK
Run:
# Sh/home/apps/jdk-6u16-linux-i586-rpm.bin
Install the SDK in the/usr/Java directory by default.
After the installation is complete, run:
# Java-version
The current JRE version is displayed. If it is not 1.6.0 _ 16 (earlier version 1.4 is installed by default), you need to modify the configuration. Run:
# Vi/etc/profile
Add the following content:
Java_home =/usr/Java/jdk1.6.0 _ 16
Classpath =.:
Take a morning to learn about SOLR and solve the problem:
First understand what SOLR is:
SOLR is a high-performance, using JAVA5 development, SOLR based on Lucene's Full-text search server. At the same time, it has been extended to provide a richer query language than Lucene, while achieving configurable, scalable and
SOLR is equipped with a word breaker, but the word breaker has a filter with uppercase converted to lowercase, and the number is filtered. Like 123 Chinese ABC. 123 will be filtered out, so only check 1|12|123 will fail."SOLR numeric characters can not search for a problem" this blog post is more detailed, I am studying this article.According to the account to search, when the account in the database is an
SOLR Study Notes (2) Examples of SOLR
The database I use here is mysql. First, integrate MySQL
1. Create a table
-- ------------------------------ Table structure for `documents`-- ----------------------------DROP TABLE IF EXISTS `documents`;CREATE TABLE `documents` ( `id` int(11) NOT NULL auto_increment, `date_added` datetime NOT NULL, `title` varchar(255) NOT NULL, `content` text NOT NULL, PRIMARY KE
Objective:The SOLR server is set up, and after the data is imported, it is applied to the project. So how do you integrate and apply SOLR in the project?Next, you'll integrate and apply SOLRI. Integration1. Introduction of the JAR package Properties> spring.data.solr.version>2.1.1.RELEASEspring.data.solr.version> Properties> dependencymanagement> Dependencies> Dependency>
.
Omitheader: Sets whether to ignore the query result return header information, the default is "false".
two. query Syntax
1. Match All documents: *:*
2. Force, block, and optional queries:1) Mandatory: Must be included in the query results (for example, only entry name containing the word make) Solr/lucene statement:+make, +make +up, +ma Ke +up +kiss2) Prohibited: (for example, all documents except those with Word believe)
1. How to configure the spring DATASOLR in the development environment to use the embedded SOLR Server According to the official Case Project (Spring-data-book), find the class with embedded, that is, the use of embedded solrserver, the advantage: You can learn to use spring data SOLR without having to configure the environment yourself, Note: In this class, within the function that is @after annotated, con
action indefinitely.
TIMED_WAITING
The thread waits for another thread to complete an action to specify a wait time.
TERMINATED
The thread has exited.
Core SelectorClick the Core Selector menu to display a list of cores in the current Solr instance. If there are too many cores, you can search for a specific Core in the search box ab
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
Read Catalogue
Introduction
What is Lunece?
What is SOLR?
Java Environment Building
Variable configuration of Java environment construction
End
IntroductionA gentleman is born non-dissimilar also, good false in things also.Java and. Net which is good, we do not need to water fights, I think language is only our tool to achieve the purpose, a business scenario which is handy (including all languages except the two), of
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.