Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Solr interview questions?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what are the Solr interview questions". The explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the Solr interview questions"?

First, why use Solr (combined with my project answer)?

When we visit the popular route search of the cruise travel module of the project, we can enter keywords to find out the relevant content according to what we think at will. How is this done? These random data can not be queried according to the fields of the database, so how is it queried, and why all kinds of strange keywords can be queried? The answer is the implementation of the full-text retrieval tool. It is well known that Solr uses Lucene search engine, and lucene uses morpheme matching and word segmentation. For example: Xiamen-Japan-lucene participle: Xiamen, Japan, Xiamen, Japan, and so on. So we can retrieve it when we search. There is a kind of word splitter called IKanalyzer Chinese word Segmentation, which has fine-grained segmentation and intelligent segmentation, that is, according to some intelligent algorithm. This makes use of the biggest benefit of Solr: the implementation of the retrieval function.

Second, the difference between Solr and Elasticsearch?

Common ground Solr and Elasticsearch are based on Lucene!

Differences

Solr uses zookeeper for distributed management, while Elasticsearch itself has distributed coordination management function.

Solr is more comprehensive than elasticsearch, and solr officially provides more functions, while Elasticsearch itself pays more attention to core functions, and advanced functions are mostly provided by third-party plug-ins.

Solr performs better than Elasticsearch in traditional search applications, while Elasticsearch performs better than solr in real-time search applications!

Solr supports data in more formats, such as JSON, XML, CSV, while Elasticsearch only supports json file format

Ps: it is necessary to explain traditional search and real-time search. Traditional search is to filter out the qualified results from the static database, which is often immutable and static. On the other hand, real-time search means that users change the search results in real time. Traditional search, such as e-commerce, real-time search refers to Google, Baidu, this kind of real-time search.

Third, several key categories

Mainly solrServer completes the document operation and searches the solrServer,SolrInputDocument,SolrQuery,SearchResult.

Thank you for your reading, the above is the content of "what are the Solr interview questions?" after the study of this article, I believe you have a deeper understanding of what the Solr interview questions have, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report