SOLR: Quick Start

Source: Internet
Author: User
Tags solr

Next year work mainly and search related, in their own learning process to share to let more people benefit is my usual practice, so I will take the study of SOLR here to share with you, if you are also interested in search, but also novice, then you and I start from scratch.

Today we are going to talk about the Quick start SOLR, let's play in the window environment, ready, we're about to start.

about SOLR

SOLR is a high performance, JAVA5 developed,SOLR -based full-text Search server. At the same time, it is extended to provide a richer query language than Lucene, while it can be configured, extensible and optimized for query performance, and provides a perfect function management interface, is a very good full-text search engine.

Documents are added to a search collection through HTTP using XML. SOLR Queries the collection is also implemented via HTTP to receive a Xml/json response. Its main features include: efficient, flexible caching, vertical search, highlighting search results, improving usability through index replication, providing a powerful data schema for defining fields, types and setting up text analysis, providing web-based management interfaces, and more.

Install deployment Download Java

SOLR needs to use JAVA7 (Java Version 1.7) to access http://www.java.com for download

Download SOLR

Visit SOLR website http://lucene.apache.org/solr/to download

Unzip to local directory

    • BIN:SOLR Execute Script
    • CONTRIB:SOLR Expansion Module
    • Dist: Publishing Packages
    • Docs: Documents
    • Example: Example
    • SERVER:SOLR Service
Run SOLR

The biggest difference between SOLR 5 and SOLR 4 is that SOLR can now be deployed separately, eliminating the need to deploy the war package to Tomcat or jetty, so it's easy to run SOLR.

>>CD bin>>solr start–e techproducts

Remember, enter the command line to start the server do not close the DOS window, or the equivalent of service shutdown

SOLR Admin

Visit the http://localhost:8983/to see the SOLR console

You can take a little bit of it now and look at it casually:)

Simple query

Before the command line started the SOLR service, some of the sample data has been imported and indexed, so you can now search. Let's play the simple query below.

Select Core:techproducts First

Then select query to open the Search test page

Click "Execute Query" to execute the query, you can see the results of the query

Search Browse

Web search can now be done via Http://localhost:8983/solr/techproducts/browse

SOLR: Quick Start

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.