. NET Programmer Solr-5.3 Tour (ii) SOLR installation

Source: Internet
Author: User
Tags solr

Read Catalogue

    • Introduction
    • Solr5.3 Environment Construction
    • Solr5.3 creating the first core
    • End
Introduction

A bad design has a good form of expression, it will be sentenced to a reprieve, a good design has a bad form of expression, it will be sentenced to death to execute immediately.

From a designer's words, there may be some discrepancy in the original sentence, but the essence is the same. Everyone has their own understanding, my understanding is-understand your customer's needs, understand what they need, with any technical means to achieve it.

Back to top Solr5.3 environment setup

Needless to say, today directly into our theme, before the introduction of SOLR's past life, today we began to play a formal play.

1. Download Solr5.3.1

Solr-5.3.1-src.tgz (source code) If you want to post a direct modification to the source code recompile release belongs to its own special version can be downloaded. NET programmer can skip

Solr-5.3.1.zip (Solr compiled version), PS: The compiled file contains documents, so it is much larger.

2. Unzip .....

3. Copy the jar from the Solr-5.3.0\server\lib\ext in the SOLR compact package to the Tomcat\ webapps\solr\web-inf\lib directory, what Tomcat is and won't forget it, We have installed the Tomcat environment in the previous article.

4. Copy solr-5.3.0/server/resources/log4j.properties from SOLR compressed package to tomcat\ Webapps\solr\web-inf\lib directory

5. Copy the SOLR-5.3.0/SERVER/SOLR directory in the SOLR compressed package to a directory on your computer, such as D:\solr_home

5. Open the Web. XML under Tomcat/webapps/solr/web-inf and find the following configuration (the content is commented out in the initial state):

    <Env-entry>    <Env-entry-name>Solr/home</Env-entry-name>    <Env-entry-value>D:\solr_home</Env-entry-value>    <Env-entry-type>Java.lang.String</Env-entry-type>    </Env-entry>

Where D:\solr_home is the path to the folder we just created 5th

6. Save off, and then start Tomcat, in the browser input HTTP://LOCALHOST:9080/SOLR can appear in the SOLR management interface, I configured the port is 9080

Back to top Solr5.3 create the first core

SOLR-5.3.1\EXAMPLE\EXAMPLE-DIH\SOLR\SOLR This directory is an example, I used to import data directly from the database into the core

1. Create a new folder under D:\solr_home , name can be your table name, I use Fixvalue

2. Copy the files under SOLR-5.3.1\EXAMPLE\EXAMPLE-DIH\SOLR\SOLR to the folder you created,D:\solr_home\FixValue

3. Start SOLR, or click Restart

analysis, where you can select a field and then enter text to test your data into the SOLR post-word case. The following article will explain how to configure your own word breaker

dataimport Data Import, later import of database data into SOLR need this function

documents, where you can add, delete, and change the index files in SOLR (I haven't used this feature yet)

query queries, which are already in the existing SOLR in the document query, this feature page is behind us to develop other query main use of the tool page

Go back to the end of the top

Next we tell you how to use SOLR to import indexes (data) from MSSQ index

Back to Top

. NET Programmer Solr-5.3 Tour (ii) SOLR installation

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.