Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to analyze the principle of solr

Shulou Source: shulou.com Published: 2022-05-31 22:32:37 09月30日 Update

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.

Tags: Index search document query analysis question update principle code typical message more standard help solution configuration different easy appropriate frequent Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Huawei Xiaomi Microsoft