In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
How to analyze the principle of solr? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Solr provides standard http interface to add, delete, modify and query the index of the data. In Solr, users start indexing and searching by sending HTTP requests to Solr Web applications deployed in servlet containers. The Solr accepts the request, determines the appropriate SolrRequestHandler to use, and then processes the request. The response is returned in the same way through HTTP. The default configuration returns a standard XML response for Solr, or you can configure an alternate response format for Solr.
You can pass four different index requests to the Solr index servlet:
Add/update allows you to add or update documents to Solr. These additions and updates cannot be searched until they have been submitted.
Commit tells Solr that all changes made since the last commit should be searchable.
Optimize reconstructs Lucene's files to improve search performance. It is usually better to perform an optimization after the index is complete. If updates are frequent, optimizations should be arranged when usage is low. An index can run normally without optimization. Optimization is a time-consuming process.
Delete can be specified through id or query. Delete by id will delete the document with the specified id; delete by query will delete all documents returned by the query.
A typical Add request message Xml code
1.
two。
3. TWINX2048-3200PRO
4. CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR S
DRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory-Retail
5. Corsair Microsystems Inc.
6. Electronics
7. Memory
8. CAS latency 2, 2-3-3-6 timing, 2.75v
, unbuffered, heat-spreader
9. 185
10. 5
11. True
twelve。
13.
14. VS1GB400C3
15. CORSAIR ValueSelect 1GB 184-Pin DDR SDRA
M Unbuffered DDR 400 (PC 3200) System Memory-Retail
16. Corsair Microsystems Inc.
17. Electronics
18. Memory
19. 74.99
20. 7
21. True
twenty-two。
23.
A typical search result message: Xml code
1.
two。
3. 0
4. 6
5.
6. 10
7. 0
8. *, score
9. True
10. Content: "faceted browsing"
11.
twelve。
13.
14.
15.
16. 1.058217
17.
18. Http://localhost/myBlog/solr-rocks-again.h
Tml
19. Solr is Great
20. Solr,lucene,enterprise,search,greatness
21. Solr has some really great features, like
Faceted browsing and replication
twenty-two。
23.
24. Solr has some really great features, like
Faceted browsing and replication
25.
twenty-six。 2007-01-07T05:04:00.000Z
twenty-seven。
twenty-eight。 Solr,lucene,enterprise,search,greatness
twenty-nine。
thirty。 eight
thirty-one。 Solr is Great
thirty-two。 Http://localhost/myBlog/solr-rocks-again.html
thirty-three。
thirty-four。
thirty-five。
thirty-six。
thirty-seven。
thirty-eight。
thirty-nine。 Solr has some really great features, like
Faceted
forty。 Browsing and replication
forty-one。
forty-two。
forty-three。
forty-four。
The answer to the question on how to analyze the principle of solr is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.