SOLR is based on SOLR to achieve a better site search scalability and reduce the workload of programmers, because SOLR provides a more comprehensive search engine solutions, so in portals, forums and other systems commonly used in this scenario. Provides a complete cluster scenario, and an index library optimization scheme.
Implemented using a Third-party search engine. Use Baidu to achieve site search. Free of charge. The index library cannot be maintained. Suitable for some small websites. Not recommended for use.
Lucene can achieve site search. Requires a lot of development work. The maintenance and optimization of the index library. Query optimization, and so on, we need to solve the problem. Not recommended for use.
Why should we use SOLR?
1, SOLR has already encapsulated the entire index operation function of the search engine system (Enterprise-class search engine products)
2, SOLR can be deployed to a separate server (Web services), it can provide services, our business system as long as the request to send a response, reduce the load of the business system
3, SOLR deployed on a dedicated server, its index library will not be limited by the business System server storage space
4. SOLR supports distributed clustering, and the capacity and capabilities of indexing services can linearly extend the working mechanism of SOLR.
1. SOLR is encapsulated on the basis of the Lucene Toolkit and provides indexing functionality in the form of Web services
2, the business system needs to use the function of the index (index, check index), as long as the HTTP request, and the return data will be parsed
SOLR is a top-level open source project under Apache, using Java development, which is a full-text search server based on Lucene. SOLR provides a richer query language than Lucene, while implementing configurable, scalable, and optimized indexing and search performance.
SOLR can run independently, running in these servlet containers such as jetty, Tomcat, and so on,solr indexes are easy to implement, sending a description to Solr server using the POST method XML documentation for Field and its contents, SOLR adds, deletes, and updates indexes according to XML documents. solr search only needs to send HTTP GET request, and then to Solr return XML, JSON and other formats of the query results to resolve, organize the page layout. SOLR does not provide the ability to build the UI, and SOLR provides a management interface that allows you to query for SOLR configuration and performance through a management interface.