Topics discussed in this section:
Highlights of New Features in Solr 5
Some of the major improvements in Solr 5 include:
Ease Of Use
- New, and restructured, example Config Sets available by default
- SolrJ now has first class support for the Collections API
- Implicit registration of
- Scripts to support installing and running Solr as a service on Linux
- Logging improvements:
- Transaction log replay status is now logged
- Optional logging of slow requests.
solrconfig.xmloptions. that supports paramsets for easily configuring Solr parameters for request handlers and editing common
- New Blob Store API with support for uploading and distributing plugin jars.
SolrCloud & Distributed Requests
- Splitting of clusterstate to per-collection enables scalability improvement in SolrCloud
- Distributed IDF Support
- Option to configure max bandwidth usage by
New Search Functionality
results can now include nested
stats.fieldresults constrained by those pivots
stats.fieldcan be used to generate statistics over the results of arbitrary numeric functions
- A new
DateRangeFieldhas been added for indexing date ranges, especially multi-valued ones
- Spatial fields that used to require
MoreLikeThisquery parser allows requesting for documents similar to an existing document
timeAllowedis now used to prematurely terminate requests during query expansion and SolrClient request retry
Solr is Now a Standalone Server
Beginning with Solr 5.0, Solr is no longer distributed as a "war" (Web Application Archive) suitable for deployment in any Servlet Container. Solr is now distributed as a stand alone java server application, including start and stop scripts for use on Unix and MS-Windows platforms, as well as an installation script for setting up a "production" installation of Solr on *nix platforms managed via
The Upgrading a Solr Cluster section of this guide provides detailed steps for existing users to upgrade their clusters regardless of what servlet container they were using with Solr 4.
Solr 5 has no support for reading Lucene/Solr 3.x and earlier indexes. Be sure to run the Lucene
IndexUpgrader included with Solr 4.10 if you might still have old 3x formatted segments in your index. Alternatively: fully optimize your index with Solr 4.10 to make sure it consists only of one up-to-date index segment.
Solr 4.4 introduced a new format for the
solr.xml file, eliminating the need for each
<core> to be explicitly listed. Instead a process known as "Core Discovery" was introduced relying on
core.properties files in each SolrCore instance directory.
Solr 5.0 has eliminated all support for the older
solr.xml format, and moved entirely to core discovery. See the Moving to the New solr.xml Format section for more details.
Solr 5.0 only supports creating and removing SolrCloud collections through the Collections API, unlike previous versions. While not using the collections API may still work in 5.0, it is unsupported, not recommended, and the behavior will change in a 5.x release.