. Net programmer Solr-5.3 journey (I) Solr getting started, solr-5.3solr

Source: Internet
Author: User

. Net programmer Solr-5.3 journey (I) Solr getting started, solr-5.3solr

Reading directory

  • Introduction
  • What is Lunece?
  • What is Solr?
  • Build a JAVA environment
  • Variable configuration for JAVA environment setup
  • Simple Tomcat configuration
  • End

Introduction

A gentleman is born with good or false knowledge.

Java and. net, we do not need to fight the language. I think the language is just a tool for us to achieve our goals. Which business scenario can use well (including all other languages ), of course, it is difficult to master a language. We need to persevere.

What is Lunece at the top?

Lucene is the currently and most popular free Java Information Retrieval library in recent years.

Lunece is also available in the. Net version --- Lucene. Net,

Why didn't I use the. Net version? How do you know I'm useless ..... current Lucene. from the Net version to the 3.03 version, it is said that this project has been stopped, so the new functions provided by Lucene will not be followed up (such as Join, grouping, etc ...).

So I didn't have a choice. I finally chose the original Lunece.

What is Solr back to the top?

At the beginning, I also sent a large macro to write a search engine based on Lunece. (after reading the encyclopedia carefully, I knew that Lunece was not a search engine, but an Information Retrieval library ), index initialization, index synchronization, index query, weight setting, etc. I have deployed Eclipse and TomCat and downloaded the latest Lunece5.3 from the official website.

After several days of exploration, I accidentally discovered Solr, A Lucene-based full-text search server. Very easy to use

Back to the top environment to build

Let's just talk about it. The first step in our Solr journey is to build the environment.

1. Eclipse download: http://www.eclipse.org/downloads/download.php? File =/oomph/epp/mars/R1a/eclipse-inst-win64.exe (my environment is a Win7-64 bit)

2. Java-JDK8.0 download http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-windows-x64.exe? AuthParam = 1446687554_926c8d0bd88689df9fd551dd67501a8a the same Win7-64 bit environment

3. Tomcat 8 (equivalent to. Net IIS) http://mirrors.cnnic.cn/apache/tomcat/tomcat-8/v8.0.28/bin/apache-tomcat-8.0.28-windows-x64.zip

After the above tools are downloaded and installed, You need to configure the environment variables. There are many articles on how to configure them online.

I have been a beginner in Java for many years. net experience is of little significance to new Java users like me, so I downloaded all the latest versions. Later I realized that due to open-source problems, there were too many versions, the update speed of various plug-ins cannot keep up with the updated Java version.

Therefore, many people and enterprises still use very low versions. In this regard,. Net programmers are much at ease, all of which are rules set by. Net ......

Similar to other Tomcat installation materials on the Internet

Variable configuration back to the top Environment

Because I am in the latest version, many of the environment variable configuration methods found online are somewhat different. below is my configuration. You need to configure the path in the value according to your own path.

1. variable name: JAVA_HOME value: C: \ Program Files \ Java \ jdk1.8.0 _ 65

2. variable name: CATALINA_HOME value: C: \ apache-tomcat-8.0.28

2. variable name: TOMCAT_HOME value: C: \ apache-tomcat-8.0.28 \ bin

3. variable name: CLASS_PATH value:.; % JAVA_HOME % \ lib; % TOMCAT_HOME % \ BIN; % CATALINA_HOME % \ common \ lib \ servlet. jar

4. variable name: Path value:; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;

The value between % and % is the address that references the existing variable name.

PS: CATALINA_HOME and TOMCAT_HOME should be the reason why the version is not synchronized. Many applications still reference TOMCAT_HOME, while the latest TOMCAT8 is the CATALINA_HOME

Go back to the top of Tomcat for simple configuration

1. to prevent Tomcat from accessing ports 8080 and 80 by default... occupies a common port, so I modified apache-tomcat-8.0.28 \ conf \ server. all ports in xml must start with 90, for example, 9080.

Open http: // localhost: 9080/. Of course, refer to the configured port. The following page is displayed:

2. click Manager App management App found that you need to enter the password, this is in the apache-tomcat-8.0.28 \ conf \ tomcat-users.xml file configuration, and then enter the tomcat password tomcat can log on to the back-end management interface.

Back to the top and end

This blog post will introduce so much about Solr configurations. We will talk about it later. A blog post that is too long may make you feel tired and learn the pace ).

Back to Top

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.