This article has been moved to  http://www.zhoujingen.cn/blog/8535.html

Next year's work is mainly about search , It's my consistent practice to share and benefit more people in my own learning process , So I'll put the right Solr I'm here to share with you , If you're also interested in search , It's also a rookie , So start from scratch with me .

Today we're going to talk about a quick start Solr, We first in Window Environment play , Are you ready , We're about to start .

Solr brief introduction

Solr It's an open source 、 It's a high performance , use Java5 Development , be based on Lucene Full text search server for . At the same time, it is extended , Provides a ratio Lucene Richer query language , At the same time, configurable 、 Scalable and optimized query performance , And provide a perfect function management interface , Is a very good full-text search engine .

Document through Http utilize XML Add to a search set .Solr Querying the collection is also done through http Receive a XML/JSON Respond to . Its main features include : Efficient 、 Flexible caching , Vertical search function , Highlight search results , Improve availability through index replication , Provide a set of powerful Data Schema To define fields , Type and set text analysis , Offer based on Web Management interface, etc .

Typical components

For search programs , The most important thing is to understand his overall structure .Solr Is based on Lucene Full text search server for , At the same time, it is extended , Provides a ratio Lucene Richer query language , At the same time, configurable 、 Scalable and optimized query performance , And provide a perfect function management interface . But his execution process is no different from lucene

Typical components of a search program , The shaded part is made up of lucene complete

Installation and deployment

download Java

Solr Need to use Java7(Java Version 1.7), Accessible  http://www.java.com  Download

download Solr

visit Solr Official website  http://lucene.apache.org/solr/  Conduct download

Unzip to a local directory

  • bin:solr Execute the script
  • contrib:Solr Extension module
  • dist: Release package
  • docs: file
  • example: Example
  • server:Solr service

function Solr

Solr 5 and Solr 4 The biggest difference is now Solr It can be deployed separately , There's no need to put war Package is deployed to the Tomcat or Jetty Yes , So run Solr It's very simple .

>>cd bin
>>solr start -e techproducts

remember , Enter the command line to start the server and do not shut it down Dos window , Otherwise, the service is shut down

Solr admin

visit  http://localhost:8983/ , You can see Solr Console

You can order as you like now 、 Just look around :)

Simple query

Previously, the command line started Solr The service , Some data from the example has been imported , And built an index , So you can search now . Now let's play a simple query .

Select first Core:techproducts

Then choose Query, Open the query test page

Click on 【Execute Query】 Execute the query , You can see the query results

Search and browse

Now you can go through  http://localhost:8983/solr/techproducts/browse  Do a web search

solr: More related articles for a quick start

  1. 【solr Special topic 1 】Solr Quick start

    One .Solr Learn the relevant materials 1. Official material (1) Quick start :http://lucene.apache.org/solr/4_9_0/tutorial.html, With example Quick introduction of the project Solr ...

  2. Solr Quick start

    1. What is? Solr Solr Is based on lucene Full text retrieval server . differ lucene tool kit ,solr It's a web application , Running on the servlet Containers , Shielding the underlying details , And provide services to the outside world . Am I lucene Fast in ...

  3. Solr Quick start ( One )

    summary This document describes how to get and run Solr, Gather various data sources into multiple collections , And understand Solr Management and search interface . First unzip Solr Version and change the working directory to install Solr A subdirectory . Please note that , The base directory name may change with Sol ...

  4. 【solr Special topic 1 】Solr Quick start classification : H4_SOLR/LUCENCE 2014-07-02 14:59 2403 Human reading Comment on (0) Collection

    One .Solr Learn the relevant materials 1. Official material (1) Quick start :http://lucene.apache.org/solr/4_9_0/tutorial.html, With example Quick introduction of the project Solr ...

  5. Spring Data Solr —— Quick start

    Solr Is based on Lucene( Full text search engine ) Development , It's a stand-alone system , Running on the Tomcat or Jetty(solr6 The above integrates jetty, There is no need to deploy to servlet On the container ), But its original Chinese word segmentation function is not good , need ...

  6. Solr Search Basics

    In this example, we use class libraries and code from : http://www.cnblogs.com/TerryLiang/archive/2011/04/17/2018962.html Use C# To simulate search . Index building . Delete . ...

  7. HanLP Chinese word segmentation Lucene plug-in unit

    be based on HanLP, Support includes Solr(7.x) Anything within is based on Lucene(7.x) The system of . Maven <dependency> <groupId>com.hankcs.nlp&l ...

  8. jar package Usefulness ,dozer、poi、itext 、jxl 、jbarcode 、itextrenderer jquery effect

    1.dozer Do type conversion , newly build xml file Describe the correspondence between two entities ,DozerBeanMapper mapper =new DozerBeanMapper().addMappingFiles ...

  9. Solr Basic theory and maintenance management quickly start ( Including query parameter description )

    1. solr Basics because Solr Packaging and expanding Lucene, So they use a lot of the same terms . what's more ,Solr Index created with Lucene Search engine libraries are fully compatible . Through to Solr Configure it properly , some ...

Random recommendation

  1. MySQL Common commands and FAQs

    MySQL Common commands and FAQs -- Create the database and set the character set create database wip default character set utf8 collate utf8_general_ci; ...

  2. linux0.11 File analysis

    stay kernel There are several important folders and files in the package , They each perform their duties , Dealing with some functions of the kernel . There are three of them :blk_drv( Block device driver ),chr_drv( Character device driver ),math( Math coprocessor )  file ...

  3. java Next udp Of DatagramSocket send and receive

    send out package cn.stat.p4.ipdemo; import java.io.BufferedReader; import java.io.IOException; import java ...

  4. LinearLayout Some do's and don 'ts

    1.orientation The default value is horizontal, From left to right . Because they are generally arranged from top to bottom , So you have to specify orientation attribute . 2.layout_gravity And gravity The difference between : (1 ...

  5. win8 System intellij Input Chinese question

    Use the new intellij, However, when inputting Chinese characters, the following ones will be deleted , I found it on the Internet , No solution was found , We have to solve it ourselves , It feels like if it is intellij Are not compatible win8, Then you can't use intellij, That's good for getting used to intell ...

  6. #include &lt;mutex&gt;

    Multithreading Elementary #include <iostream> #include <thread> #include <windows.h> #include <mute ...

  7. java Summary of the second chapter of the fourth edition of programming thought

    1. Basic types Basic types Binary digits Wrappers boolean - Boolean byte 8 Byte char 16 Character short 16 Short int 32 Intege ...

  8. Wannafly Exchange competition 1( In construction )

    A. Rational number Sign in problem : Direct use floor Functions , Look at the code in detail #define debug #include<stdio.h> #include<math.h> #include& ...

  9. Kinect Depth image format

    Kinect The depth images are 16bit,2byte, Pictured : The first 15 position : Sign a , There's no need to do depth calculations The first 14~3 position : Depth image data , Distance , In millimeters The first 0~2 position : The human in the depth map ID(PlayerID) The depth map has two ...

  10. cmd The command is redirected to the clipboard

    Windows Next Use the system's own  clip  command . # be located C:\Windows\system32\clip.exe. Example : # The string Hello Put in Windows clipboard echo He ...