What is Apache Solr

(*-*)浩
Release: 2019-06-18 11:13:42
Original
4401 people have browsed it

Apache Solr is an open source search server. Solr is developed using Java language and is mainly implemented based on HTTP and Apache Lucene. Resources stored in Apache Solr are stored as Document objects.

What is Apache Solr

#Each document consists of a series of Fields, each Field represents an attribute of the resource. Each Document in Solr needs to have an attribute that uniquely identifies itself. By default, the name of this attribute is id, which is described in the Schema configuration file: id.

Solr is a high-performance, full-text search server developed with Java5 and based on Lucene. Solr is an independent enterprise-level search application server. Currently, many companies use Solr as an open source service. The principle is roughly that documents are added to a search collection using XML via Http. Querying the collection is also achieved by receiving an XML/JSON response via http.

Its main features include: Efficient and flexible caching function, vertical search function, highlighted search results, improved availability through index replication, and a set of powerful Data Schema to define Field, type and setting text analysis, providing a web-based management interface, etc.

Directory structure of Solr package

build: The directory where compiled files are placed during the solr build process.

client: Contains API client programs for calling Solr in some specific languages. Currently, only Ruby is available. The Java client is called SolrJ and can be found in src/solrj.

dist: Stores the JAR files, WAR files, and Solr-dependent JAR files that have been built by Solr.

example: It is an installed Jetty middleware, including some sample data and Solr configuration information.

example/etc: Jetty configuration file.

example/multicore: used to place multiple Solr home directories when installing Slor multicore.

example/solr: The default installation is the home directory of a Solr. example/webapps: Solr's WAR file is deployed here.

src: Solr related source code.

src/java: Slor’s Java source code.

src/scripts: Some useful Unix bash shell scripts for large product releases.

src/solrj: Java client for Solr. s

rc/test: Solr’s test source code and test files.

src/webapp: Solr web management interface. The Jsp files of the management interface are placed under web/admin/, and you can modify these files according to your needs.

The source code of Solr is not placed in the same directory. src/java stores most files. src/common is the code common to the server and the client. src/test stores the test program of Solr and the code of serlvet. Place it in src/webapp/src.

For more Apache related technical articles, please visit the Apache usage tutorial column to learn!

The above is the detailed content of What is Apache Solr. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template