02 Apache Solr: Overview of the location of Solr in the information system architecture, apachesolr

Source: Internet
Author: User

02 Apache Solr: Overview of the location of Solr in the information system architecture, apachesolr
Overview:Apache Solr is an open-source enterprise-level search platform built on the Apache Lucene project in JAVA. Main features include full-text search, Hit Highlighting, segment-based search, real-time indexing, dynamic clusters, database integration, NoSQL features, and rich text processing. Distributed search and index replication are provided, so the scalability and fault tolerance capabilities are fully taken into account during design. Solr is currently the second most popular enterprise-level search engine, and the first is ElasticSearch. Solr runs as an independent full text search server. Complete full text indexing and query using Lucene developed by JAVA internally, and provide RESTful APIs to support most programming languages. Flexible external configuration allows you to complete the work without writing any JAVA code. It also provides a plug-in architecture to support more advanced user customization. Since it is so powerful, what is its position in our overall platform?Positioning:An example from the official manual. , Solr runs outside of other server applications. Taking the warehouse platform system as an example, we need to provide some user interfaces: for example, the warehouse receiving interface can be initiated, the inventory interface can be viewed, and the warehouse receiving interface can be initiated as the Warehouse Management Interface, you may also need to adjust incorrect material information. Regardless of the functions such as warehouse receiving, warehouse picking, and inventory checking, these functions focus on materials. This information will be stored in the database of the platform system and in the Solr system at the same time, but it may be because it is stored in different systems for different purposes and uses, the format and completeness of the information are also (or are not) Different. With Solr, it is easier to improve the search experience on the warehouse platform. Follow these steps: 1. Define the Schema. Schema tells Solr about the file content to be indexed. Taking the warehousing platform as an example, the Schema may need to define fields such as material name, encoding, inventory, and manufacturer. The Schema of Solr is powerful and flexible, and allows you to define a unique Solr behavior for your application system. 2. Release Solr. 3. Provide Solr files for the search to be performed. 4. Implement the search function in the application. Solr is highly scalable because it is built on development standards. Solr queries are based on RESTful. That is to say, a query is essentially a simple HTTP request URL and a structured response document. The structure of the Response document mainly includes XML, JSON, CSV, and other formats. This also means that a large number of customer applications can use Solr, such as WEB applications, rich client applications, and mobile devices. Any platform that supports HTTP can interact with Solr. Based on the Apache Lucene project, Solr is a high-performance, full-featured search engine. Solr supports simple keyword queries, complex multi-field queries, and split results into segments.Scalability:If a single Solr is insufficient, the ability to process a large number of applications will achieve the desired results. A common scenario is that you have a large amount of data or a large number of queries, and a single Solr server cannot handle all the workload. In this case, SolrCloud can be used to expand Solr capabilities so that it can better distribute data and process requests among multiple servers. Based on the scalability you need, a large number of different configuration options need to be combined. For example, a shard is an extension method. It divides a large set into multiple logical blocks called "Shards, this increases the number of documents in a set and exceeds the physical limit allowed by a single Solr server. The query that enters the system is distributed to every shard in the set, and then the merged result is returned. Another available technology is to improve the "replication factor" of the Set, which allows you to add additional servers using the copy of the set, the task is completed by spreading highly concurrent query commands between multiple machines. Partitioning and replication are not incompatible. Combined use can make Solr a more robust and scalable platform.

 

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.