You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2015/02/09 00:53:25 UTC
svn commit: r1658277 [14/38] - in /lucene/dev/branches/lucene6005: ./
dev-tools/ dev-tools/idea/solr/contrib/dataimporthandler/
dev-tools/idea/solr/contrib/velocity/ dev-tools/maven/lucene/replicator/
dev-tools/maven/solr/ dev-tools/maven/solr/contrib/...
Modified: lucene/dev/branches/lucene6005/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6005/solr/CHANGES.txt?rev=1658277&r1=1658276&r2=1658277&view=diff
==============================================================================
--- lucene/dev/branches/lucene6005/solr/CHANGES.txt (original)
+++ lucene/dev/branches/lucene6005/solr/CHANGES.txt Sun Feb 8 23:53:14 2015
@@ -15,7 +15,7 @@ Getting Started
You need a Java 1.8 VM or later installed.
In this release, there is an example Solr server including a bundled
servlet container in the directory named "example".
-See the tutorial at http://lucene.apache.org/solr/tutorial.html
+See the Quick Start guide at http://lucene.apache.org/solr/quickstart.html
================== 6.0.0 ==================
@@ -23,7 +23,7 @@ Consult the LUCENE_CHANGES.txt file for
Versions of Major Components
---------------------
-Apache Tika 1.6
+Apache Tika 1.7
Carrot2 3.9.0
Velocity 1.7 and Velocity Tools 2.0
Apache UIMA 2.3.1
@@ -40,6 +40,11 @@ Upgrading from Solr 5.x
* The deprecated SolrServer and subclasses have been removed, use SolrClient
instead.
+* The deprecated <nrtMode> configuration in solrconfig.xml has been removed.
+ Please remove it from solrconfig.xml.
+
+* SolrClient.shutdown() has been removed, use SolrClient.close() instead.
+
Detailed Change List
----------------------
@@ -51,21 +56,78 @@ Other Changes
* SOLR-6895: Deprecated SolrServer classes have been removed (Alan Woodward,
Erik Hatcher)
-================== 5.0.0 ==================
+* SOLR-6902: Use JUnit rules instead of inheritance with distributed Solr
+ tests to allow for multiple tests without the same class.
+ (Ramkumar Aiyengar, Erick Erickson, Mike McCandless)
+
+* SOLR-6954: Deprecated SolrClient.shutdown() method removed (Alan Woodward)
+
+================== 5.1.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release
Versions of Major Components
---------------------
-Apache Tika 1.6
+Apache Tika 1.7
+Carrot2 3.9.0
+Velocity 1.7 and Velocity Tools 2.0
+Apache UIMA 2.3.1
+Apache ZooKeeper 3.4.6
+Jetty 9.2.6.v20141205
+
+Detailed Change List
+----------------------
+
+New Features
+----------------------
+
+* SOLR-6909: Extract atomic update handling logic into AtomicUpdateDocumentMerger class
+ and enable subclassing. (Steve Davids, yonik)
+
+* SOLR-6845: Add a âbuildOnStartupâ option for suggesters. (Tomás Fernández Löbbe)
+
+* SOLR-6449: Add first class support for Real Time Get in Solrj.
+ (Anurag Sharma, Steve Davids via shalin)
+
+* SOLR-6954: SolrClient now implements Closeable, and shutdown() has been
+ deprecated in favour of close(). (Mark Miller, Tomás Fernández Löbbe, Alan
+ Woodward)
+
+Bug Fixes
+----------------------
+
+* SOLR-7046: NullPointerException when group.function uses query() function.
+ (Jim Musil via Erick Erickson)
+
+Other Changes
+----------------------
+
+* SOLR-7014: Collapse identical catch branches in try-catch statements. (shalin)
+
+* SOLR-6500: Refactor FileFetcher in SnapPuller, add debug logging.
+ (Ramkumar Aiyengar via Mark Miller)
+
+================== 5.0.0 ==================
+
+Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
+
+Versions of Major Components
+---------------------
+Apache Tika 1.7
Carrot2 3.9.0
Velocity 1.7 and Velocity Tools 2.0
Apache UIMA 2.3.1
Apache ZooKeeper 3.4.6
+Jetty 9.2.6.v20141205
Upgrading from Solr 4.x
----------------------
+* Apache Solr has no support for Lucene/Solr 3.x and earlier indexes anymore.
+ Be sure to run Lucene's IndexUpgrader on the previous 4.10 version if you might
+ still have old 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.
+
* The "file" attribute of infoStream in solrconfig.xml is removed. Control this
via your logging configuration (org.apache.solr.update.LoggingInfoStream) instead.
@@ -109,8 +171,8 @@ Upgrading from Solr 4.x
in the "def()" function. Example: changing "fl=sum(fieldA,fieldB)" to
"fl=sum(def(fieldA,0.0),def(fieldB,0.0))". See LUCENE-5961 for more details.
-* AdminHandlers is deprecated , /admin/* are implicitly defined, /get ,/replacation and
- handlers are also implicitly registered (refer to SOLR-6792)
+* AdminHandlers is deprecated, /admin/* are implicitly defined, /get, /replication and
+ handlers are also implicitly registered (refer to SOLR-6792)
* SolrCore.reload(ConfigSet coreConfig, SolrCore prev) was deprecated in 4.10.3 and
removed in 5.0. use SolrCore.reload(ConfigSet coreConfig). See SOLR-5864.
@@ -138,22 +200,65 @@ Upgrading from Solr 4.x
* SolrServer and associated classes have been deprecated. Applications using
SolrJ should use the equivalent SolrClient classes instead.
+* Spatial fields originating from Solr 4 (e.g. SpatialRecursivePrefixTreeFieldType, BBoxField)
+ have the 'units' attribute deprecated, now replaced with 'distanceUnits'. If you change it to
+ a unit other than 'degrees' (or if you don't specify it, which will default to kilometers if
+ geo=true), then be sure to update maxDistErr as it's in those units. If you keep units=degrees
+ then it should be backwards compatible but you'll get a deprecation warning on startup. See
+ SOLR-6797.
+
+* The <nrtMode> configuration in solrconfig.xml has been discontinued and should be removed from
+ solrconfig.xml. Solr defaults to using NRT searchers regardless of the value in configuration
+ and a warning is logged on startup if the solrconfig.xml has <nrtMode> specified.
+
+* There was an old spatial syntax to specify a circle using Circle(x,y d=...) which should be
+ replaced with simply using {!geofilt} (if you can) or BUFFER(POINT(x y),d). Likewise a rect syntax
+ comprised of minX minY maxX maxY that should now be replaced with
+ ENVELOPE(minX, maxX, maxY, minY).
+
+* Due to changes in the underlying commons-codec package, users of the BeiderMorseFilterFactory
+ will need to rebuild their indexes after upgrading. See LUCENE-6058 for more details.
+
+* CachedSqlEntityProcessor has been removed, use SqlEntityProcessor with the
+ cacheImpl parameter.
+
+* HttpDataSource has been removed, use URLDataSource instead.
+
+* LegacyHTMLStripCharFilter has been removed
+
+* CoreAdminRequest.persist() call has been removed. All changes made via
+ CoreAdmin are persistent.
+
+* SpellCheckResponse.getSuggestions() and getSuggestionFrequencies() have been
+ removed, use getAlternatives() and getAlternativeFrequencies() instead.
+
+* SolrQuery deprecated methods have been removed:
+ - setMissing() is now setFacetMissing()
+ - getFacetSort() is now getFacetSortString()
+ - setFacetSort(boolean) should instead use setFacetSort(String) with
+ FacetParams.FACET_SORT_COUNT or FacetParams.FACET_SORT_INDEX
+ - setSortField(String, ORDER) should use setSort(SortClause)
+ - addSortField(String, ORDER) should use addSort(SortClause)
+ - removeSortField(String, ORDER) should use removeSort(SortClause)
+ - getSortFields() should use getSorts()
+ - set/getQueryType() should use set/getRequestHandler()
+
+* ClientUtil deprecated date methods have been removed, use DateUtil instead
+
+* FacetParams.FacetDateOther has been removed, use FacetRangeOther
+
+* ShardParams.SHARD_KEYS has been removed, use ShardParams._ROUTE_
+
+* The 'old-style' solr.xml format is no longer supported, and cores must be
+ defined using core.properties files. See
+ https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml
+
Detailed Change List
----------------------
New Features
----------------------
-* SOLR-5287: You can edit files in the conf directory from the admin UI.
- (Erick Erickson, Stefan Matheis)
- Additional work:
- - SOLR-5446: Admin UI - Allow changing Schema and Config (steffkes)
- - SOLR-5458: Admin UI - Remove separated Pages for Config & Schema (steffkes)
- - SOLR-5456: Admin UI - Allow creating new Files (steffkes)
- - SOLR-5518: Added EditFileRequestHandler to deal with security issues around
- modifying solr configuration files. (Erick Erickson)
- - SOLR-5539: Admin UI - Remove ability to create/modify files (steffkes)
-
* SOLR-6103: Added DateRangeField for indexing date ranges, especially multi-valued ones.
Supports facet.range, DateMath, and is mostly interoperable with TrieDateField.
Based on LUCENE-5648. (David Smiley)
@@ -186,7 +291,7 @@ New Features
(hossman)
* SOLR-6485: ReplicationHandler should have an option to throttle the speed of
- replication (Varun Thacker, NOble Paul)
+ replication (Varun Thacker, Noble Paul)
* SOLR-6543: Give HttpSolrClient the ability to send PUT requests (Gregory Chanan)
@@ -209,7 +314,7 @@ New Features
* SOLR-6605: Make ShardHandlerFactory maxConnections configurable.
(Christine Poerschke via shalin)
-* SOLR-6585: RequestHandlers can optionaly handle sub paths as well (Noble Paul)
+* SOLR-6585: RequestHandlers can optionally handle sub paths as well (Noble Paul)
* SOLR-6617: /update/json/docs path will use fully qualified node names by default
(Noble Paul)
@@ -243,7 +348,7 @@ New Features
* SOLR-6533: Support editing common solrconfig.xml values (Noble Paul)
-* SOLR-6607: Managing requesthandlers throuh API (Noble Paul)
+* SOLR-6607: Managing requesthandlers through API (Noble Paul)
* SOLR-4799: faster join using join="zipper" aka merge join for nested DIH EntityProcessors
(Mikhail Khludnev via Noble Paul)
@@ -266,11 +371,34 @@ New Features
* SOLR-6879: Have an option to disable autoAddReplicas temporarily for all collections.
(Varun Thacker via Steve Rowe)
-* SOLR-6435: Add bin/post script to simplify posting content to Solr (ehatcher)
+* SOLR-6435: Add bin/post script to simplify posting content to Solr (Erik Hatcher)
* SOLR-6761: Ability to ignore commit and/or optimize requests from clients when running in
SolrCloud mode using the IgnoreCommitOptimizeUpdateProcessorFactory. (Timothy Potter)
+* SOLR-6797: Spatial fields that used to require units=degrees like
+ SpatialRecursivePrefixTreeFieldType (RPT) now take distanceUnits=degrees|kilometers|miles
+ instead. It is applied to nearly all distance measurements involving the field: maxDistErr,
+ distErr, d, geodist, score=distance|area|area2d. score now accepts these units as well. It does
+ NOT affect distances embedded in WKT strings like BUFFER(POINT(200 10),0.2)).
+ (Ishan Chattopadhyaya, David Smiley)
+
+* SOLR-6766: Expose HdfsDirectoryFactory Block Cache statistics via JMX.
+ (Mike Drob, Mark Miller)
+
+* SOLR-2035: Add a VelocityResponseWriter $resource tool for locale-specific string lookups.
+ (Erik Hatcher)
+
+* SOLR-6916: Toggle payload support for the default highlighter via hl.payloads. It's auto
+ enabled when the index has payloads. (David Smiley)
+
+* SOLR-6581: Efficient DocValues support and numeric collapse field implementations
+ for Collapse and Expand (Joel Bernstein)
+
+* SOLR-6937: In schemaless mode ,replace spaces and special characters with underscore (Noble Paul)
+
+* SOLR-5147: Support child documents in DIH
+ (Vadim Kirilchuk, Shawn Heisey, Thomas Champagne, Mikhail Khludnev via Noble Paul)
Bug Fixes
----------------------
@@ -336,7 +464,7 @@ Bug Fixes
in local map before writing to ZK. (shalin)
* SOLR-6679: Disabled suggester component from techproduct solrconfig.xml since
- it caused long startup times on lage indexes even when it wasn't used.
+ it caused long startup times on large indexes even when it wasn't used.
(yonik, hossman)
* SOLR-6738: Admin UI - Escape Data on Plugins-View (steffkes)
@@ -384,6 +512,74 @@ Bug Fixes
* SOLR-6874: There is a race around SocketProxy binding to it's port the way we setup
JettySolrRunner and SocketProxy. (Mark Miller, Timothy Potter)
+* SOLR-6735: Make CloneFieldUpdateProcessorFactory null safe (Steve Davids via ehatcher)
+
+* SOLR-6907: URLEncode documents directory in MorphlineMapperTest to handle spaces etc.
+ in file name. (Ramkumar Aiyengar via Erick Erickson)
+
+* SOLR-6880: Harden ZkStateReader to expect that getCollectionLive may return null
+ as it's contract states. (Mark Miller, shalin)
+
+* SOLR-6643: Fix error reporting & logging of low level JVM Errors that occur when
+ loading/reloading a SolrCore (hossman)
+
+* SOLR-6839: Direct routing with CloudSolrServer will ignore the Overwrite document option.
+ (Mark Miller)
+
+* SOLR-6793: ReplicationHandler does not destroy all of it's created SnapPullers.
+ (Mark Miller)
+
+* SOLR-6946: Document -p port option for the create_core and create_collection actions in
+ bin/solr (Timothy Potter)
+
+* SOLR-6923: AutoAddReplicas also consults live_nodes to see if a state change has happened.
+ (Varun Thacker via Anshum Gupta)
+
+* SOLR-6941: DistributedQueue#containsTaskWithRequestId can fail with NPE. (Mark Miller)
+
+* SOLR-6764: Field types need to be re-informed after reloading a managed schema from ZK
+ (Timothy Potter)
+
+* SOLR-6931: We should do a limited retry when using HttpClient.
+ (Mark Miller, Hrishikesh Gadre, Gregory Chanan)
+
+* SOLR-7004: Add a missing constructor for CollectionAdminRequest.BalanceShardUnique that
+ sets the collection action. (Anshum Gupta)
+
+* SOLR-6993: install_solr_service.sh won't install on RHEL / CentOS
+ (David Anderson via Timothy Potter)
+
+* SOLR-6928: solr.cmd stop works only in english (john.work, Jan Høydahl, Timothy Potter)
+
+* SOLR-7011: Delete collection returns before collection is actually removed.
+ (Christine Poerschke via shalin)
+
+* SOLR-6640: Close searchers before rollback and recovery to avoid index corruption.
+ (Robert Muir, Varun Thacker, shalin)
+
+* SOLR-6847: LeaderInitiatedRecoveryThread compares wrong replica's state with lirState.
+ (shalin)
+
+* SOLR-6856: Restore ExtractingRequestHandler's ability to capture all HTML tags when
+ parsing (X)HTML. (hossman, Uwe Schindler, ehatcher, Steve Rowe)
+
+* SOLR-7024: Improved error messages when java is not found by the bin/solr
+ shell script, particularly when JAVA_HOME has an invalid location.
+ (Shawn Heisey)
+
+* SOLR-7038: Validate the presence of configset before trying to create a collection.
+ (Anshum Gupta, Mark Miller)
+
+* SOLR-7037: bin/solr start -e techproducts -c fails to start Solr in cloud mode
+ (Timothy Potter)
+
+* SOLR-7016: Fix bin\solr.cmd to work in a directory with spaces in the name.
+ (Timothy Potter, Uwe Schindler)
+
+* SOLR-6969: When opening an HDFSTransactionLog for append we must first attempt to recover
+ it's lease to prevent data loss. (Mark Miller, Praneeth Varma, Colin McCabe)
+
+* SOLR-7067: bin/solr won't run under bash 4.2+. (Steve Rowe)
Optimizations
----------------------
@@ -400,6 +596,10 @@ Optimizations
hl.usePhraseHighlighter, and can be more efficient handling data from term vectors.
(David Smiley)
+* SOLR-6666: Dynamic copy fields are considering all dynamic fields, causing
+ a significant performance impact on indexing documents. (Liram Vardi via Erick
+ Erickson, Steve Rowe)
+
Other Changes
----------------------
@@ -436,10 +636,10 @@ Other Changes
constructors, improve javadocs for CloudSolrClient constructors.
(Steve Davids via Shawn Heisey)
-* LUCENE-5901: Replaced all occurences of LUCENE_CURRENT with LATEST for luceneMatchVersion.
+* LUCENE-5901: Replaced all occurrences of LUCENE_CURRENT with LATEST for luceneMatchVersion.
(Ryan Ernst)
-* SOLR-6445: Upgrade Noggit to verion 0.6 to support more flexible JSON input (Noble Paul , Yonik Seeley)
+* SOLR-6445: Upgrade Noggit to version 0.6 to support more flexible JSON input (Noble Paul, Yonik Seeley)
* SOLR-6073: Remove helper methods from CollectionsRequest (SolrJ) for CollectionsAPI
calls and move to a builder design for the same. (Varun Thacker, Anshum Gupta)
@@ -447,10 +647,10 @@ Other Changes
* SOLR-5322: core discovery can fail w/NPE and no explanation if a non-readable directory exists
(Said Chavkin, Erick Erickson)
-* SOLR-6488: Update to Apache Tika 1.6. This adds support for parsing Outlook PST and Matlab
- MAT files. Parsing for NetCDF files was removed because of license issues; if you need support
- for this format, download the parser JAR yourself and add it to contrib/extraction/lib folder:
- http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/
+* SOLR-6488, SOLR-6991: Update to Apache Tika 1.7. This adds support for parsing Outlook PST and
+ Matlab MAT files. Parsing for NetCDF files was removed because of license issues; if you need
+ support for this format, download the parser JAR yourself and add it to contrib/extraction/lib
+ folder: http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/
(Uwe Schindler)
* SOLR-6115: Cleanup enum/string action types in Overseer, OverseerCollectionProcessor and
@@ -511,9 +711,6 @@ Other Changes
* SOLR-6754: ZkController.publish doesn't use the updateLastState parameter.
(shalin)
-* SOLR-6715: ZkSolrResourceLoader constructors accept a parameter called 'collection'
- but it should be 'configName'. (shalin)
-
* SOLR-6751: Exceptions thrown in the analysis chain in DirectUpdateHandler2
should return a BAD_REQUEST status (Alan Woodward)
@@ -603,11 +800,66 @@ Other Changes
Erick Erickson)
* SOLR-6906: Fix typo bug in DistributedDebugComponentTest.testCompareWithNonDistributedRequest
- (Ramkumar Aiyenga via Erick Erickson)
+ (Ramkumar Aiyengar via Erick Erickson)
* SOLR-6905: Test pseudo-field retrieval in distributed search.
(Ramkumar Aiyengar via shalin)
+* SOLR-4839: Upgrade Jetty to 9.2.6.v20141205 and restlet-jee to 2.3.0
+ (Bill Bell, Timothy Potter, Uwe Schindler, Mark Miller, shalin)
+
+* SOLR-6897: Nuke non-NRT mode from code and configuration. (Hossman, shalin)
+
+* SOLR-6830: Update Woodstox to 4.4.1 and StAX to 3.1.4. (ab)
+
+* SOLR-6918: No need to log exceptions (as warn) generated when creating MBean stats if
+ the core is shutting down (Timothy Potter)
+
+* SOLR-6932: All HttpClient ConnectionManagers and SolrJ clients should always be shutdown
+ in tests and regular code. (Mark Miller)
+
+* SOLR-1723: VelocityResponseWriter improvements (Erik Hatcher)
+
+* SOLR-6324: Set finite default timeouts for select and update. (Ramkumar Aiyengar via Mark Miller)
+
+* SOLR-6952: bin/solr create action should copy configset directory instead of reusing
+ an existing configset in ZooKeeper by default (Timothy Potter)
+
+* SOLR-6933: bin/solr should provide a single "create" action that creates a core
+ or collection depending on whether Solr is running in standalone or cloud mode
+ (Timothy Potter)
+
+* SOLR-6496: LBHttpSolrClient stops server retries after the timeAllowed threshold is met.
+ (Steve Davids, Anshum Gupta)
+
+* SOLR-6904: Removed deprecated Circle & rect syntax. See upgrading notes. (David Smiley)
+
+* SOLR-6943: HdfsDirectoryFactory should fall back to system props for most of it's config
+ if it is not found in solrconfig.xml. (Mark Miller, Mike Drob)
+
+* SOLR-6926: "ant example" makes no sense anymore - should be "ant server"
+ (Ramkumar Aiyengar, Timothy Potter)
+
+* SOLR-6982: bin/solr and SolrCLI should support SSL-related Java System Properties
+ (Timothy Potter)
+
+* SOLR-6981: Add a delete action to the bin/solr script to allow deleting of cores /
+ collections (with delete collection config directory from ZK) (Timothy Potter)
+
+* SOLR-6840: Remove support for old-style solr.xml (Erick Erickson, Alan Woodward)
+
+* SOLR-6976: Remove classes and methods deprecated in 4.x (Alan Woodward, Noble
+ Paul, Chris Hostetter)
+
+* SOLR-6521: CloudSolrClient should synchronize cache cluster state loading
+ ( Noble Paul, Jessica Cheng Mallet)
+
+* SOLR-7018: bin/solr stop should stop if there is only one node running or generate
+ an error message prompting the user to be explicit about which of multiple nodes
+ to stop using the -p or -all options (Timothy Potter)
+
+* SOLR-5918: ant clean does not remove ZooKeeper data (Varun Thacker, Steve Rowe)
+
================== 4.10.3 ==================
Bug Fixes
@@ -633,7 +885,7 @@ Bug Fixes
* SOLR-6780: Fixed a bug in how default/appends/invariants params were affecting the set
of all "keys" found in the request parameters, resulting in some key=value param pairs
- being duplicated. This was noticably affecting some areas of the code where iteration
+ being duplicated. This was noticeably affecting some areas of the code where iteration
was done over the set of all params:
* literal.* in ExtractingRequestHandler
* facet.* in FacetComponent
@@ -1139,7 +1391,7 @@ New Features
(Joel Bernstein)
* SOLR-5285: Added a new [child ...] DocTransformer for optionally including
- Block-Join decendent documents inline in the results of a search. This works
+ Block-Join descendant documents inline in the results of a search. This works
independent of whether the search itself is a block-join related query and is
supported by he xml, json, and javabin response formats.
(Varun Thacker via hossman)
@@ -1342,7 +1594,7 @@ Upgrading from Solr 4.7
----------------------
* In previous versions of Solr, Terms that exceeded Lucene's MAX_TERM_LENGTH were
- silently ignored when indexing documents. Begining with Solr 4.8, a document
+ silently ignored when indexing documents. Beginning with Solr 4.8, a document
an error will be generated when attempting to index a document with a term
that is too large. If you wish to continue to have large terms ignored,
use "solr.LengthFilterFactory" in all of your Analyzers. See LUCENE-5472 for
@@ -1721,9 +1973,8 @@ New Features
* SOLR-5320: Added support for tri-level compositeId routing.
(Anshum Gupta via shalin)
-* SOLR-5287,SOLR-5522,SOLR-5446,SOLR-5456,SOLR-5539,SOLR-5458:
- Admin UI - Added a new "Files" conf directory browser/file viewer.
- (steffkes, Erick Erickson)
+* SOLR-5458: Admin UI - Added a new "Files" conf directory browser/file viewer.
+ (steffkes)
* SOLR-5447, SOLR-5490: Add a QParserPlugin for Lucene's SimpleQueryParser.
(Jack Conradson via shalin)
@@ -1903,7 +2154,7 @@ Bug Fixes
* SOLR-5667: Performance problem when not using hdfs block cache. (Mark Miller)
-* SOLR-5526: Fixed NPE that could arrise when explicitly configuring some built
+* SOLR-5526: Fixed NPE that could arise when explicitly configuring some built
in QParserPlugins (Nikolay Khitrin, Vitaliy Zhovtyuk, hossman)
* SOLR-5598: LanguageIdentifierUpdateProcessor ignores all but the first value
@@ -2454,11 +2705,11 @@ Upgrading from Solr 4.4.0
SOLR-5108 for more details.
* In the past, schema.xml parsing would silently ignore "default" or "required"
- options specified on <dynamicField/> declarations. Begining with 4.5, attempting
+ options specified on <dynamicField/> declarations. Beginning with 4.5, attempting
to do configured these on a dynamic field will cause an init error. If you
encounter one of these errors when upgrading an existing schema.xml, you can
safely remove these attributes, regardless of their value, from your config and
- Solr will continue to bahave exactly as it did in previous versions. See
+ Solr will continue to behave exactly as it did in previous versions. See
SOLR-5227 for more details.
* The UniqFieldsUpdateProcessorFactory has been improved to support all of the
@@ -2692,7 +2943,7 @@ Upgrading from Solr 4.3.0
* TieredMergePolicy and the various subtypes of LogMergePolicy no longer have
an explicit "setUseCompoundFile" method. Instead the behavior of new
segments is determined by the IndexWriter configuration, and the MergePolicy
- is only consulted to determine if merge segements should use the compound
+ is only consulted to determine if merge segments should use the compound
file format (based on the value of "setNoCFSRatio"). If you have explicitly
configured one of these classes using <mergePolicy> and include an init arg
like this...
@@ -2834,7 +3085,7 @@ Bug Fixes
* SOLR-4891: JsonLoader should preserve field value types from the JSON content stream.
(Steve Rowe)
-* SOLR-4805: SolreCore#reload should not call preRegister and publish a DOWN state to
+* SOLR-4805: SolrCore#reload should not call preRegister and publish a DOWN state to
ZooKeeper. (Mark Miller, Jared Rodriguez)
* SOLR-4899: When reconnecting after ZooKeeper expiration, we need to be willing to wait
@@ -2994,7 +3245,7 @@ Other Changes
* SOLR-4931: SolrDeletionPolicy onInit and onCommit methods changed to override
exact signatures (with generics) from IndexDeletionPolicy (shalin)
-* SOLR-4942: test improvements to randomize use of compound files (hosman)
+* SOLR-4942: test improvements to randomize use of compound files (hossman)
* SOLR-4966: CSS, JS and other files in webapp without license (uschindler,
steffkes)
@@ -3122,7 +3373,7 @@ Upgrading from Solr 4.2.0
you would like. If you are using another webapp container, these jars will
need to go in the corresponding location for that container.
In conjunction, the dist-excl-slf4j and dist-war-excl-slf4 build targets
- have been removed since they are redundent. See the Slf4j documentation,
+ have been removed since they are redundant. See the Slf4j documentation,
SOLR-3706, and SOLR-4651 for more details.
* The hardcoded SolrCloud defaults for 'hostContext="solr"' and
@@ -3339,7 +3590,7 @@ Bug Fixes
fullpath not path. (Mark Miller)
* SOLR-4555: When forceNew is used with CachingDirectoryFactory#get, the old
- CachValue should give up its path as it will be used by a new Directory
+ CacheValue should give up its path as it will be used by a new Directory
instance. (Mark Miller)
* SOLR-4578: CoreAdminHandler#handleCreateAction gets a SolrCore and does not
@@ -3553,7 +3804,7 @@ Bug Fixes
when more unused nodes are available.
(Eric Falcao, Brett Hoerner, Mark Miller)
-* SOLR-4345 : Solr Admin UI dosent work in IE 10 (steffkes)
+* SOLR-4345 : Solr Admin UI doesn't work in IE 10 (steffkes)
* SOLR-4349 : Admin UI - Query Interface does not work in IE
(steffkes)
@@ -3716,7 +3967,7 @@ Other Changes
(Shawn Heisey via hossman)
* SOLR-2996: A bare * without a field specification is treated as *:*
- by the lucene and edismax query paesers.
+ by the lucene and edismax query parsers.
(hossman, Jan Høydahl, Alan Woodward, yonik)
* SOLR-4416: Upgrade to Tika 1.3. (Markus Jelsma via Mark Miller)
Modified: lucene/dev/branches/lucene6005/solr/README.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6005/solr/README.txt?rev=1658277&r1=1658276&r2=1658277&view=diff
==============================================================================
--- lucene/dev/branches/lucene6005/solr/README.txt (original)
+++ lucene/dev/branches/lucene6005/solr/README.txt Sun Feb 8 23:53:14 2015
@@ -32,31 +32,27 @@ To start Solr for the first time after i
bin/solr start
-This will launch a Solr server in the background of your shell, bound
-to port 8983. After starting Solr, you can create a new core for indexing
-your data by doing:
+This will launch a standalone Solr server in the background of your shell,
+listening on port 8983. Alternatively, you can launch Solr in "cloud" mode,
+which allows you to scale out using sharding and replication. To launch Solr
+in cloud mode, do:
- bin/solr create_core -n <name>
-
-This will create a core that uses a data-driven schema which tries to guess
-the correct field type when you add documents to the index. To see all available
-options for creating a new core, execute:
-
- bin/solr create_core -help
+ bin/solr start -cloud
-Alternatively, you can launch Solr in "cloud" mode, which allows you to scale
-out using sharding and replication. To launch Solr in cloud mode, do:
+To see all available options for starting Solr, please do:
- bin/solr start -cloud
+ bin/solr start -help
-After starting Solr in cloud mode, you can create a new collection for indexing
-your data by doing:
+After starting Solr, create either a core or collection depending on whether
+Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
- bin/solr create_collection -n <name>
+ bin/solr create -c <name>
-To see all available options for starting Solr, please do:
+This will create a collection that uses a data-driven schema which tries to guess
+the correct field type when you add documents to the index. To see all available
+options for creating a new collection, execute:
- bin/solr start -help
+ bin/solr create -help
After starting Solr, direct your Web browser to the Solr Admin Console at:
@@ -83,38 +79,19 @@ For instance, if you want to run the Sol
Indexing Documents
---------------
-To add documents to the index, use the post.jar (or post.sh script) in
-the example/exampledocs subdirectory (while Solr is running), for example:
+To add documents to the index, use bin/post. For example:
- cd example/exampledocs
- java -jar -Dc=<collection_name> post.jar *.xml
-Or: sh post.sh *.xml
+ bin/post -c <collection_name> example/exampledocs/*.xml
For more information about Solr examples please read...
* example/solr/README.txt
For more information about the "Solr Home" and Solr specific configuration
- * http://lucene.apache.org/solr/tutorial.html
- For a Tutorial using this example configuration
- * http://wiki.apache.org/solr/SolrResources
+ * http://lucene.apache.org/solr/quickstart.html
+ For a Quick Start guide
+ * http://lucene.apache.org/solr/resources.html
For a list of other tutorials and introductory articles.
-
-In addition, Solr ships with several example configurations that
-help you learn about Solr. To run one of the examples, you would do:
-
- bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
-
- cloud : SolrCloud example
- dih : Data Import Handler (rdbms, mail, rss, tika)
- schemaless : Schema-less example (schema is inferred from data during indexing)
- techproducts : Kitchen sink example providing comprehensive examples of Solr features
-
-
-A tutorial is available at:
-
- http://lucene.apache.org/solr/tutorial.html
-
or linked from "docs/index.html" in a binary distribution.
Also, there are Solr clients for many programming languages, see
@@ -173,7 +150,7 @@ Instructions for Building Apache Solr fr
for building, testing, and packaging Solr.
NOTE:
- To see Solr in action, you may want to use the "ant example" command to build
+ To see Solr in action, you may want to use the "ant server" command to build
and package Solr into the server/webapps directory. See also server/README.txt.
Modified: lucene/dev/branches/lucene6005/solr/bin/install_solr_service.sh
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6005/solr/bin/install_solr_service.sh?rev=1658277&r1=1658276&r2=1658277&view=diff
==============================================================================
--- lucene/dev/branches/lucene6005/solr/bin/install_solr_service.sh (original)
+++ lucene/dev/branches/lucene6005/solr/bin/install_solr_service.sh Sun Feb 8 23:53:14 2015
@@ -84,9 +84,9 @@ fi
SOLR_INSTALL_FILE=${SOLR_ARCHIVE##*/}
is_tar=true
if [ ${SOLR_INSTALL_FILE: -4} == ".tgz" ]; then
- SOLR_DIR=${SOLR_INSTALL_FILE:0:-4}
+ SOLR_DIR=${SOLR_INSTALL_FILE%.tgz}
elif [ ${SOLR_INSTALL_FILE: -4} == ".zip" ]; then
- SOLR_DIR=${SOLR_INSTALL_FILE:0:-4}
+ SOLR_DIR=${SOLR_INSTALL_FILE%.zip}
is_tar=false
else
print_usage "Solr installation archive $SOLR_ARCHIVE is invalid, expected a .tgz or .zip file!"
@@ -166,24 +166,24 @@ if [ ! -d "$SOLR_EXTRACT_DIR" ]; then
exit 1
fi
+if [ -z "$SOLR_SERVICE" ]; then
+ SOLR_SERVICE=solr
+fi
+
if [ -z "$SOLR_VAR_DIR" ]; then
- SOLR_VAR_DIR=/var/solr
+ SOLR_VAR_DIR=/var/$SOLR_SERVICE
fi
if [ -z "$SOLR_USER" ]; then
SOLR_USER=solr
fi
-if [ -z "$SOLR_SERVICE" ]; then
- SOLR_SERVICE=solr
-fi
-
if [ -z "$SOLR_PORT" ]; then
SOLR_PORT=8983
fi
if [ -f "/etc/init.d/$SOLR_SERVICE" ]; then
- echo -e "\nERROR: /etc/init.d/$SOLR_SERVICE already exists! Perhaps solr is already setup as a service on this host?\n" 1>&2
+ echo -e "\nERROR: /etc/init.d/$SOLR_SERVICE already exists! Perhaps Solr is already setup as a service on this host?\n" 1>&2
exit 1
fi
Modified: lucene/dev/branches/lucene6005/solr/bin/post
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6005/solr/bin/post?rev=1658277&r1=1658276&r2=1658277&view=diff
==============================================================================
--- lucene/dev/branches/lucene6005/solr/bin/post (original)
+++ lucene/dev/branches/lucene6005/solr/bin/post Sun Feb 8 23:53:14 2015
@@ -14,15 +14,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Usage:
-# bin/post <collection> <file(s)|url> [<params to SimplePostTool>]
-# bin/post gettingstarted http://lucidworks.com [recursive=1] [delay=1]
-# bin/post tehfiles ~/Documents
-# bin/post signals LATEST-signals.csv
-# bin/post records article*.xml
-# bin/post wizbang events.json
+# ====== Common code copied/adapted from bin/solr (TODO: centralize/share this kind of thing across bin/solr, etc)
+
+THIS_SCRIPT="$0"
+
+# Resolve symlinks to this script
+while [ -h "$THIS_SCRIPT" ] ; do
+ ls=`ls -ld "$THIS_SCRIPT"`
+ # Drop everything prior to ->
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ THIS_SCRIPT="$link"
+ else
+ THIS_SCRIPT=`dirname "$THIS_SCRIPT"`/"$link"
+ fi
+done
+
+SOLR_TIP=`dirname "$THIS_SCRIPT"`/..
+SOLR_TIP=`cd "$SOLR_TIP"; pwd`
-# ====== Common code copied from bin/solr (TODO: centralize/share this kind of thing)
if [ -n "$SOLR_JAVA_HOME" ]; then
JAVA=$SOLR_JAVA_HOME/bin/java
elif [ -n "$JAVA_HOME" ]; then
@@ -41,56 +51,168 @@ $JAVA -version >/dev/null 2>&1 || { echo
# ===== post specific code
-SPT_JAR=dist/solr-core-*.jar
-COLLECTION=$1; shift
+TOOL_JAR=$SOLR_TIP/dist/solr-core-*.jar
-echo "Collection:" $COLLECTION
+function print_usage() {
+ echo ""
+ echo 'Usage: post -c <collection> [OPTIONS] <files|directories|urls|-d ["...",...]>'
+ echo " or post -help"
+ echo ""
+ echo " collection name defaults to DEFAULT_SOLR_COLLECTION if not specified"
+ echo ""
+ echo "OPTIONS"
+ echo "======="
+ echo " Solr options:"
+ echo " -url <base Solr update URL> (overrides collection, host, and port)"
+ echo " -host <host> (default: localhost)"
+ echo " -port <port> (default: 8983)"
+ echo " -commit yes|no (default: yes)"
+ # optimize intentionally omitted, but can be used as '-optimize yes' (default: no)
+ echo ""
+ echo " Web crawl options:"
+ echo " -recursive <depth> (default: 1)"
+ echo " -delay <seconds> (default: 10)"
+ echo ""
+ echo " Directory crawl options:"
+ echo " -delay <seconds> (default: 0)"
+ echo ""
+ echo " stdin/args options:"
+ echo " -type <content/type> (default: application/xml)"
+ echo ""
+ echo " Other options:"
+ echo " -filetypes <type>[,<type>,...] (default: xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log)"
+ echo " -params \"<key>=<value>[&<key>=<value>...]\" (values must be URL-encoded; these pass through to Solr update request)"
+ echo " -out yes|no (default: no; yes outputs Solr response to console)"
+ echo ""
+ echo ""
+ echo "Examples:"
+ echo ""
+ echo "* JSON file: $THIS_SCRIPT -c wizbang events.json"
+ echo "* XML files: $THIS_SCRIPT -c records article*.xml"
+ echo "* CSV file: $THIS_SCRIPT -c signals LATEST-signals.csv"
+ echo "* Directory of files: $THIS_SCRIPT -c myfiles ~/Documents"
+ echo "* Web crawl: $THIS_SCRIPT -c gettingstarted http://lucidworks.com -recursive 1 -delay 1"
+ echo "* Standard input (stdin): echo '{"commit": {}}' | $THIS_SCRIPT -c my_collection -type application/json -out yes -d"
+ echo "* Data as string: $THIS_SCRIPT -c signals -type text/csv -out yes -d $'id,value\n1,0.47'"
+ echo ""
+} # end print_usage
+
+if [[ $# -eq 1 && ("$1" == "-help" || "$1" == "-h" || "$1" == "-usage") ]]; then
+ print_usage
+ exit
+fi
-PROPS="-Dc=$COLLECTION"
-PARAMS=""
-# TODO: Check that $COLLECTION actually exists? How to determine if user omitted collection name as first param?
+COLLECTION=$DEFAULT_SOLR_COLLECTION
+PROPS="-Dauto=yes"
+RECURSIVE=""
+FILES=()
+URLS=()
+ARGS=()
-echo -n "Data mode: "
-if [[ $1 == http* ]]; then
- echo "WEB"
- PROPS="$PROPS -Ddata=web"
- PARAMS=$1; shift
-else
- if [[ -d $1 ]]; then
+while [ $# -gt 0 ]; do
+ # TODO: natively handle the optional parameters to SPT
+ # but for now they can be specified as bin/post -c collection-name delay=5 http://lucidworks.com
+
+ if [[ -d "$1" ]]; then
# Directory
- echo "DIRECTORY"
- PROPS="$PROPS -Ddata=files -Dauto -Drecursive"
- PARAMS=$1; shift
+# echo "$1: DIRECTORY"
+ RECURSIVE="-Drecursive=yes"
+ FILES+=("$1")
+ elif [[ -f "$1" ]]; then
+ # File
+# echo "$1: FILE"
+ FILES+=("$1")
+ elif [[ "$1" == http* ]]; then
+ # URL
+# echo "$1: URL"
+ URLS+=("$1")
else
- # Not a URL or existing directory, assume file(s)
- echo "FILE"
- FILE=$1; shift
- EXTENSION="${FILE##*.}"
-
- PARAMS=$FILE
-
- if [[ $EXTENSION == xml || $EXTENSION == csv || $EXTENSION == json ]]; then
- # Solr /update supported type (default being application/xml).
- if [[ $EXTENSION == csv ]]; then
- PROPS="$PROPS -Dtype=text/csv"
- fi
- if [[ $EXTENSION == json ]]; then
- PROPS="$PROPS -Dtype=application/json"
+ if [[ $1 == -* ]]; then
+ if [[ $1 == "-c" ]]; then
+ # Special case, pull out collection name
+ shift
+ COLLECTION=$1
+ elif [[ ($1 == "-d" || $1 == "--data" || $1 == "-") ]]; then
+ if [[ -s /dev/stdin ]]; then
+ MODE="stdin"
+ else
+ # when no stdin exists and -d specified, the rest of the arguments
+ # are assumed to be strings to post as-is
+ MODE="args"
+ shift
+ if [[ $# -gt 0 ]]; then
+ ARGS=("$@")
+ shift $#
+ fi
+ fi
+ else
+ key=${1:1}
+ shift
+# echo "$1: PROP"
+ PROPS="$PROPS -D$key=$1"
fi
else
- PROPS="$PROPS -Dauto=yes"
+ echo -e "\nUnrecognized argument: $1\n"
+ echo -e "If this was intended to be a data file, it does not exist relative to $PWD\n"
+ exit 1
fi
+ fi
+ shift
+done
+# Check for errors
+if [[ $COLLECTION == "" ]]; then
+ echo -e "\nCollection must be specified. Use -c <collection name> or set DEFAULT_SOLR_COLLECTION in your environment.\n"
+ echo -e "See '$THIS_SCRIPT -h' for usage instructions.\n"
+ exit 1
+fi
+
+# Unsupported: bin/post -c foo
+if [[ ${#FILES[@]} == 0 && ${#URLS[@]} == 0 && $MODE != "stdin" && $MODE != "args" ]]; then
+ echo -e "\nNo files, directories, URLs, -d strings, or stdin were specified.\n"
+ echo -e "See '$THIS_SCRIPT -h' for usage instructions.\n"
+ exit 1
+fi
+
+# SPT does not support mixing different data mode types, just files, just URLs, just stdin, or just argument strings.
+# The following are unsupported constructs:
+# bin/post -c foo existing_file.csv http://example.com
+# echo '<xml.../>' | bin/post -c foo existing_file.csv
+# bin/post -c foo existing_file.csv -d 'anything'
+if [[ (${#FILES[@]} != 0 && ${#URLS[@]} != 0 && $MODE != "stdin" && $MODE != "args")
+ || ((${#FILES[@]} != 0 || ${#URLS[@]} != 0) && ($MODE == "stdin" || $MODE == "args")) ]]; then
+ echo -e "\nCombining files/directories, URLs, stdin, or args is not supported. Post them separately.\n"
+ exit 1
+fi
+
+PARAMS=""
+
+# TODO: let's simplify this
+if [[ $MODE != "stdin" && $MODE != "args" ]]; then
+ if [[ $FILES != "" ]]; then
+ MODE="files"
+ PARAMS=("${FILES[@]}")
fi
+
+ if [[ $URLS != "" ]]; then
+ MODE="web"
+ PARAMS=("${URLS[@]}")
+ fi
+else
+ if [[ ${#ARGS[@]} == 0 ]]; then
+ # SPT needs a valid (to post to Solr) args string, useful for 'bin/post -c foo -d' to force a commit
+ ARGS+=("<add/>")
+ fi
+ PARAMS=("${ARGS[@]}")
fi
-# Add all additonal trailing script parameters as system properties to SPT (eg. bin/post core_name ~/Documents depth=1)
-while [ $# -gt 0 ]; do
- PROPS="$PROPS -D$1"
- shift
-done
+PROPS="$PROPS -Dc=$COLLECTION -Ddata=$MODE $RECURSIVE"
+
+echo "$JAVA" -classpath $TOOL_JAR $PROPS org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
+"$JAVA" -classpath $TOOL_JAR $PROPS org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
-echo $JAVA -classpath $SPT_JAR $PROPS org.apache.solr.util.SimplePostTool $PARAMS
-$JAVA -classpath $SPT_JAR $PROPS org.apache.solr.util.SimplePostTool $PARAMS
+# post smoker:
+# bin/post -c signals -out yes -type application/json -d '[{"id": 2, "val": 0.47}]'
+# bin/post -c signals -out yes -params "wt=json" -d '<add><doc><field name="id">1</field></doc></add>'
Modified: lucene/dev/branches/lucene6005/solr/bin/solr
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6005/solr/bin/solr?rev=1658277&r1=1658276&r2=1658277&view=diff
==============================================================================
--- lucene/dev/branches/lucene6005/solr/bin/solr (original)
+++ lucene/dev/branches/lucene6005/solr/bin/solr Sun Feb 8 23:53:14 2015
@@ -48,7 +48,16 @@
SOLR_SCRIPT="$0"
verbose=false
THIS_OS=`uname -s`
-hasLsof=$(which lsof)
+
+if hash jar 2>/dev/null ; then # hash returns true if jar is on the path
+ UNPACK_WAR_CMD="$(command -v jar) xf"
+elif hash unzip 2>/dev/null ; then # hash returns true if unzip is on the path
+ UNPACK_WAR_CMD="$(command -v unzip) -q"
+else
+ echo -e "This script requires extracting a WAR file with either the jar or unzip utility, please install these utilities or contact your administrator for assistance."
+ exit 1
+fi
+
stop_all=false
# for now, we don't support running this script from cygwin due to problems
@@ -105,12 +114,33 @@ elif [ -n "$JAVA_HOME" ]; then
break
fi
done
+ if [ -z "$JAVA" ]; then
+ echo >&2 "The currently defined JAVA_HOME ($JAVA_HOME) refers"
+ echo >&2 "to a location where Java could not be found. Aborting."
+ echo >&2 "Either fix the JAVA_HOME variable or remove it from the"
+ echo >&2 "environment so that the system PATH will be searched."
+ exit 1
+ fi
else
JAVA=java
fi
# test that Java exists and is executable on this server
-$JAVA -version >/dev/null 2>&1 || { echo >&2 "Java is required to run Solr! Please install Java 7 or 8 before running this script."; exit 1; }
+$JAVA -version >/dev/null 2>&1 || {
+ echo >&2 "Java not found, or an error was encountered when running java."
+ echo >&2 "A working Java 8 is required to run Solr!"
+ echo >&2 "Please install Java 8 or fix JAVA_HOME before running this script."
+ echo >&2 "Command that we tried: '${JAVA} -version'"
+ echo >&2 "Active Path:"
+ echo >&2 "${PATH}"
+ exit 1
+}
+
+# URL scheme for contacting Solr
+SOLR_URL_SCHEME=http
+if [ -n "$SOLR_SSL_OPTS" ]; then
+ SOLR_URL_SCHEME=https
+fi
function print_usage() {
CMD="$1"
@@ -123,7 +153,7 @@ function print_usage() {
if [ -z "$CMD" ]; then
echo ""
echo "Usage: solr COMMAND OPTIONS"
- echo " where COMMAND is one of: start, stop, restart, status, healthcheck, create_core, create_collection"
+ echo " where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete"
echo ""
echo " Standalone server example (start Solr running in the background on port 8984):"
echo ""
@@ -209,42 +239,93 @@ function print_usage() {
echo ""
echo " NOTE: This command will show the status of all running Solr servers"
echo ""
+ elif [ "$CMD" == "create" ]; then
+ echo ""
+ echo "Usage: solr create [-c name] [-d confdir] [-n configName] [-shards #] [-replicationFactor #] [-p port]"
+ echo ""
+ echo " Create a core or collection depending on whether Solr is running in standalone (core) or SolrCloud"
+ echo " mode (collection). In other words, this action detects which mode Solr is running in, and then takes"
+ echo " the appropriate action (either create_core or create_collection). For detailed usage instructions, do:"
+ echo ""
+ echo " bin/solr create_core -help"
+ echo ""
+ echo " or"
+ echo ""
+ echo " bin/solr create_collection -help"
+ echo ""
+ elif [ "$CMD" == "delete" ]; then
+ echo ""
+ echo "Usage: solr delete [-c name] [-deleteConfig true|false] [-p port]"
+ echo ""
+ echo " Deletes a core or collection depending on whether Solr is running in standalone (core) or SolrCloud"
+ echo " mode (collection). If you're deleting a collection in SolrCloud mode, the default behavior is to also"
+ echo " delete the configuration directory from ZooKeeper so long as it is not being used by another collection."
+ echo " You can override this behavior by passing -deleteConfig false when running this command."
+ echo ""
+ echo " -c <name> Name of the core / collection to delete"
+ echo ""
+ echo " -deleteConfig <boolean> Delete the configuration directory from ZooKeeper; default is true"
+ echo ""
+ echo " -p <port> Port of a local Solr instance where you want to delete the core/collection"
+ echo " If not specified, the script will search the local system for a running"
+ echo " Solr instance and will use the port of the first server it finds."
+ echo ""
elif [ "$CMD" == "create_core" ]; then
echo ""
- echo "Usage: solr create_core [-n name] [-c configset]"
+ echo "Usage: solr create_core [-c core] [-d confdir] [-p port]"
echo ""
- echo " -n <name> Name of core to create"
+ echo " -c <core> Name of core to create"
+ echo ""
+ echo " -d <confdir> Configuration directory to copy when creating the new core, built-in options are:"
echo ""
- echo " -c <configset> Name of configuration directory to use, built-in options are:"
echo " basic_configs: Minimal Solr configuration"
echo " data_driven_schema_configs: Managed schema with field-guessing support enabled"
echo " sample_techproducts_configs: Example configuration with many optional features enabled to"
echo " demonstrate the full power of Solr"
+ echo ""
echo " If not specified, default is: data_driven_schema_configs"
echo ""
echo " Alternatively, you can pass the path to your own configuration directory instead of using"
- echo " one of the built-in configurations, such as: bin/solr create_core -n mycore -c /tmp/myconfig"
+ echo " one of the built-in configurations, such as: bin/solr create_core -c mycore -d /tmp/myconfig"
+ echo ""
+ echo " -p <port> Port of a local Solr instance where you want to create the new core"
+ echo " If not specified, the script will search the local system for a running"
+ echo " Solr instance and will use the port of the first server it finds."
echo ""
elif [ "$CMD" == "create_collection" ]; then
echo ""
- echo "Usage: solr create_collection [-n name] [-c configset] [-shards #] [-replicationFactor #]"
+ echo "Usage: solr create_collection [-c collection] [-d confdir] [-n configName] [-shards #] [-replicationFactor #] [-p port]"
+ echo ""
+ echo " -c <collection> Name of collection to create"
echo ""
- echo " -n <name> Name of collection to create"
+ echo " -d <confdir> Configuration directory to copy when creating the new collection, built-in options are:"
echo ""
- echo " -c <configset> Name of configuration directory to use, built-in options are:"
echo " basic_configs: Minimal Solr configuration"
echo " data_driven_schema_configs: Managed schema with field-guessing support enabled"
echo " sample_techproducts_configs: Example configuration with many optional features enabled to"
echo " demonstrate the full power of Solr"
+ echo ""
echo " If not specified, default is: data_driven_schema_configs"
echo ""
echo " Alternatively, you can pass the path to your own configuration directory instead of using"
- echo " one of the built-in configurations, such as: bin/solr create_collection -n mycoll -c /tmp/myconfig"
+ echo " one of the built-in configurations, such as: bin/solr create_collection -c mycoll -d /tmp/myconfig"
+ echo ""
+ echo " By default the script will upload the specified confdir directory into ZooKeeper using the same"
+ echo " name as the collection (-c) option. Alternatively, if you want to reuse an existing directory"
+ echo " or create a confdir in ZooKeeper that can be shared by multiple collections, use the -n option"
+ echo ""
+ echo " -n <configName> Name the configuration directory in ZooKeeper; by default, the configuration"
+ echo " will be uploaded to ZooKeeper using the collection name (-c), but if you want"
+ echo " to use an existing directory or override the name of the configuration in"
+ echo " ZooKeeper, then use the -c option."
echo ""
echo " -shards <#> Number of shards to split the collection into; default is 1"
echo ""
echo " -replicationFactor <#> Number of copies of each document in the collection, default is 1 (no replication)"
echo ""
+ echo " -p <port> Port of a local Solr instance where you want to create the new collection"
+ echo " If not specified, the script will search the local system for a running"
+ echo " Solr instance and will use the port of the first server it finds."
echo ""
fi
} # end print_usage
@@ -299,10 +380,10 @@ function run_tool() {
# Extract the solr.war if it hasn't been done already (so we can access the SolrCLI class)
if [[ -e $DEFAULT_SERVER_DIR/webapps/solr.war && ! -d "$DEFAULT_SERVER_DIR/solr-webapp/webapp" ]]; then
- (mkdir -p $DEFAULT_SERVER_DIR/solr-webapp/webapp && cd $DEFAULT_SERVER_DIR/solr-webapp/webapp && jar xf $DEFAULT_SERVER_DIR/webapps/solr.war)
+ (mkdir -p $DEFAULT_SERVER_DIR/solr-webapp/webapp && cd $DEFAULT_SERVER_DIR/solr-webapp/webapp && $UNPACK_WAR_CMD $DEFAULT_SERVER_DIR/webapps/solr.war)
fi
- "$JAVA" -Dlog4j.configuration=file:$DEFAULT_SERVER_DIR/scripts/cloud-scripts/log4j.properties \
+ "$JAVA" $SOLR_SSL_OPTS -Dsolr.install.dir=$SOLR_TIP -Dlog4j.configuration=file:$DEFAULT_SERVER_DIR/scripts/cloud-scripts/log4j.properties \
-classpath "$DEFAULT_SERVER_DIR/solr-webapp/webapp/WEB-INF/lib/*:$DEFAULT_SERVER_DIR/lib/ext/*" \
org.apache.solr.util.SolrCLI $*
@@ -321,7 +402,7 @@ function get_info() {
port=`jetty_port "$ID"`
if [ "$port" != "" ]; then
echo -e "\nSolr process $ID running on port $port"
- run_tool status -solr http://localhost:$port/solr
+ run_tool status -solr $SOLR_URL_SCHEME://localhost:$port/solr
echo ""
else
echo -e "\nSolr process $ID from $PIDF not found."
@@ -338,7 +419,7 @@ function get_info() {
if [ "$port" != "" ]; then
echo ""
echo "Solr process $ID running on port $port"
- run_tool status -solr http://localhost:$port/solr
+ run_tool status -solr $SOLR_URL_SCHEME://localhost:$port/solr
echo ""
fi
done
@@ -361,7 +442,7 @@ function stop_solr() {
if [ "$SOLR_PID" != "" ]; then
echo -e "Sending stop command to Solr running on port $SOLR_PORT ... waiting 5 seconds to allow Jetty process $SOLR_PID to stop gracefully."
- $JAVA -jar $DIR/start.jar STOP.PORT=$STOP_PORT STOP.KEY=$STOP_KEY --stop || true
+ $JAVA $SOLR_SSL_OPTS -jar $DIR/start.jar STOP.PORT=$STOP_PORT STOP.KEY=$STOP_KEY --stop || true
(sleep 5) &
spinner $!
rm -f $SOLR_PID_DIR/solr-$SOLR_PORT.pid
@@ -479,32 +560,36 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; t
fi
# create a core or collection
-if [[ "$SCRIPT_CMD" == "create_core" || "$SCRIPT_CMD" == "create_collection" ]]; then
+if [[ "$SCRIPT_CMD" == "create" || "$SCRIPT_CMD" == "create_core" || "$SCRIPT_CMD" == "create_collection" ]]; then
- CREATE_TYPE=collection
CREATE_NUM_SHARDS=1
CREATE_REPFACT=1
- if [ "$SCRIPT_CMD" == "create_core" ]; then
- CREATE_TYPE=core
- fi
if [ $# -gt 0 ]; then
while true; do
case $1 in
- -n|-name)
+ -c|-core|-collection)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
- print_usage "$SCRIPT_CMD" "$CREATE_TYPE name is required when using the $1 option!"
+ print_usage "$SCRIPT_CMD" "name is required when using the $1 option!"
exit 1
fi
CREATE_NAME=$2
shift 2
;;
- -c|-configset)
+ -n|-confname)
+ if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
+ print_usage "$SCRIPT_CMD" "Configuration name is required when using the $1 option!"
+ exit 1
+ fi
+ CREATE_CONFNAME="$2"
+ shift 2
+ ;;
+ -d|-confdir)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
- print_usage "$SCRIPT_CMD" "Configset name is required when using the $1 option!"
+ print_usage "$SCRIPT_CMD" "Configuration directory is required when using the $1 option!"
exit 1
fi
- CREATE_CONFIGSET="$2"
+ CREATE_CONFDIR="$2"
shift 2
;;
-s|-shards)
@@ -551,22 +636,27 @@ if [[ "$SCRIPT_CMD" == "create_core" ||
done
fi
- if [ -z "$CREATE_CONFIGSET" ]; then
- CREATE_CONFIGSET=data_driven_schema_configs
+ if [ -z "$CREATE_CONFDIR" ]; then
+ CREATE_CONFDIR=data_driven_schema_configs
fi
- # validate the configset arg
- if [[ ! -d "$SOLR_TIP/server/solr/configsets/$CREATE_CONFIGSET" && ! -d "$CREATE_CONFIGSET" ]]; then
- echo -e "\nSpecified configset $CREATE_CONFIGSET not found!\n"
+ # validate the confdir arg
+ if [[ ! -d "$SOLR_TIP/server/solr/configsets/$CREATE_CONFDIR" && ! -d "$CREATE_CONFDIR" ]]; then
+ echo -e "\nSpecified configuration directory $CREATE_CONFDIR not found!\n"
exit 1
fi
if [ -z "$CREATE_NAME" ]; then
- echo "$CREATE_TYPE name is required!"
+ echo "Name (-c) argument is required!"
print_usage "$SCRIPT_CMD"
exit 1
fi
+ # If not defined, use the collection name for the name of the configuration in ZooKeeper
+ if [ -z "$CREATE_CONFNAME" ]; then
+ CREATE_CONFNAME=$CREATE_NAME
+ fi
+
if [ -z "$CREATE_PORT" ]; then
for ID in `ps auxww | grep java | grep start.jar | awk '{print $2}' | sort -r`
do
@@ -579,21 +669,104 @@ if [[ "$SCRIPT_CMD" == "create_core" ||
fi
if [ -z "$CREATE_PORT" ]; then
- echo "Failed to determine the port of a local Solr instance, cannot create $CREATE_TYPE $CREATE_NAME"
+ echo "Failed to determine the port of a local Solr instance, cannot create $CREATE_NAME!"
exit 1
fi
- if [ "$SCRIPT_CMD" == "create_collection" ]; then
- run_tool create_collection -name $CREATE_NAME -shards $CREATE_NUM_SHARDS -replicationFactor $CREATE_REPFACT \
- -config $CREATE_CONFIGSET -configsetsDir $SOLR_TIP/server/solr/configsets -solrUrl http://localhost:$CREATE_PORT/solr
+ if [ "$SCRIPT_CMD" == "create_core" ]; then
+ run_tool create_core -name $CREATE_NAME -solrUrl $SOLR_URL_SCHEME://localhost:$CREATE_PORT/solr \
+ -confdir $CREATE_CONFDIR -configsetsDir $SOLR_TIP/server/solr/configsets
exit $?
else
- run_tool create_core -name $CREATE_NAME -solrUrl http://localhost:$CREATE_PORT/solr \
- -config $CREATE_CONFIGSET -configsetsDir $SOLR_TIP/server/solr/configsets
+ run_tool $SCRIPT_CMD -name $CREATE_NAME -shards $CREATE_NUM_SHARDS -replicationFactor $CREATE_REPFACT \
+ -confname $CREATE_CONFNAME -confdir $CREATE_CONFDIR \
+ -configsetsDir $SOLR_TIP/server/solr/configsets \
+ -solrUrl $SOLR_URL_SCHEME://localhost:$CREATE_PORT/solr
exit $?
fi
fi
+# delete a core or collection
+if [[ "$SCRIPT_CMD" == "delete" ]]; then
+
+ if [ $# -gt 0 ]; then
+ while true; do
+ case $1 in
+ -c|-core|-collection)
+ if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
+ print_usage "$SCRIPT_CMD" "name is required when using the $1 option!"
+ exit 1
+ fi
+ DELETE_NAME=$2
+ shift 2
+ ;;
+ -p|-port)
+ if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
+ print_usage "$SCRIPT_CMD" "Solr port is required when using the $1 option!"
+ exit 1
+ fi
+ DELETE_PORT="$2"
+ shift 2
+ ;;
+ -deleteConfig)
+ if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
+ print_usage "$SCRIPT_CMD" "true|false is required when using the $1 option!"
+ exit 1
+ fi
+ DELETE_CONFIG="$2"
+ shift 2
+ ;;
+ -help|-usage)
+ print_usage "$SCRIPT_CMD"
+ exit 0
+ ;;
+ --)
+ shift
+ break
+ ;;
+ *)
+ if [ "$1" != "" ]; then
+ print_usage "$SCRIPT_CMD" "Unrecognized or misplaced argument: $1!"
+ exit 1
+ else
+ break # out-of-args, stop looping
+ fi
+ ;;
+ esac
+ done
+ fi
+
+ if [ -z "$DELETE_NAME" ]; then
+ echo "Name (-c) argument is required!"
+ print_usage "$SCRIPT_CMD"
+ exit 1
+ fi
+
+ # If not defined, use the collection name for the name of the configuration in ZooKeeper
+ if [ -z "$DELETE_CONFIG" ]; then
+ DELETE_CONFIG=true
+ fi
+
+ if [ -z "$DELETE_PORT" ]; then
+ for ID in `ps auxww | grep java | grep start.jar | awk '{print $2}' | sort -r`
+ do
+ port=`jetty_port "$ID"`
+ if [ "$port" != "" ]; then
+ DELETE_PORT=$port
+ break
+ fi
+ done
+ fi
+
+ if [ -z "$DELETE_PORT" ]; then
+ echo "Failed to determine the port of a local Solr instance, cannot delete $DELETE_NAME!"
+ exit 1
+ fi
+
+ run_tool delete -name $DELETE_NAME -deleteConfig $DELETE_CONFIG \
+ -solrUrl $SOLR_URL_SCHEME://localhost:$DELETE_PORT/solr
+ exit $?
+fi
# verify the command given is supported
if [ "$SCRIPT_CMD" != "stop" ] && [ "$SCRIPT_CMD" != "start" ] && [ "$SCRIPT_CMD" != "restart" ] && [ "$SCRIPT_CMD" != "status" ]; then
@@ -798,7 +971,7 @@ if [ "$EXAMPLE" != "" ]; then
fi
# check to see if something is already bound to that port
- if [ "$hasLsof" != "" ]; then
+ if hash lsof 2>/dev/null ; then # hash returns true if lsof is on the path
PORT_IN_USE=`lsof -Pni:$CLOUD_PORT`
if [ "$PORT_IN_USE" != "" ]; then
read -e -p "Oops! Looks like port $CLOUD_PORT is already being used by another process. Please choose a different port. " USER_INPUT
@@ -844,6 +1017,7 @@ if [ "$EXAMPLE" != "" ]; then
mkdir -p $SOLR_HOME
if [ ! -f "$SOLR_HOME/solr.xml" ]; then
cp $DEFAULT_SERVER_DIR/solr/solr.xml $SOLR_HOME/solr.xml
+ cp $DEFAULT_SERVER_DIR/solr/zoo.cfg $SOLR_HOME/zoo.cfg
fi
EXAMPLE_CONFIGSET=sample_techproducts_configs
shift
@@ -857,6 +1031,7 @@ if [ "$EXAMPLE" != "" ]; then
mkdir -p $SOLR_HOME
if [ ! -f "$SOLR_HOME/solr.xml" ]; then
cp $DEFAULT_SERVER_DIR/solr/solr.xml $SOLR_HOME/solr.xml
+ cp $DEFAULT_SERVER_DIR/solr/zoo.cfg $SOLR_HOME/zoo.cfg
fi
EXAMPLE_CONFIGSET=data_driven_schema_configs
shift
@@ -897,8 +1072,10 @@ if [[ "$SCRIPT_CMD" == "stop" && -z "$SO
else
# not stopping all and don't have a port, but if we can find the pid file for the default port 8983, then use that
none_stopped=true
- if [ -e "$SOLR_PID_DIR/solr-8983.pid" ]; then
- PID=`cat $SOLR_PID_DIR/solr-8983.pid`
+ numSolrs=`find $SOLR_PID_DIR -name "solr-*.pid" -type f | wc -l | tr -d ' '`
+ if [ $numSolrs -eq 1 ]; then
+ # only do this if there is only 1 node running, otherwise they must provide the -p or -all
+ PID=`find $SOLR_PID_DIR -name "solr-*.pid" -type f -exec cat {} \;`
CHECK_PID=`ps auxww | awk '{print $2}' | grep $PID | sort -r | tr -d ' '`
if [ "$CHECK_PID" != "" ]; then
port=`jetty_port "$CHECK_PID"`
@@ -906,11 +1083,15 @@ if [[ "$SCRIPT_CMD" == "stop" && -z "$SO
stop_solr "$SOLR_SERVER_DIR" "$port" "$STOP_KEY" "$CHECK_PID"
none_stopped=false
fi
- rm -f $SOLR_PID_DIR/solr-8983.pid
fi
fi
+
if $none_stopped; then
- echo -e "\nMust either specify a port using -p or -all to stop all Solr nodes on this host.\nUse the status command to see if any Solr nodes are running."
+ if [ $numSolrs -gt 0 ]; then
+ echo -e "\nFound $numSolrs Solr nodes running! Must either specify a port using -p or -all to stop all Solr nodes on this host.\n"
+ else
+ echo -e "\nNo Solr nodes found to stop.\n"
+ fi
exit 1
fi
fi
@@ -1042,7 +1223,7 @@ if [ "$SOLR_MODE" == "solrcloud" ]; then
fi
-# These are useful for attaching remove profilers like VisualVM/JConsole
+# These are useful for attaching remote profilers like VisualVM/JConsole
if [ "$ENABLE_REMOTE_JMX_OPTS" == "true" ]; then
if [ -z "$RMI_PORT" ]; then
@@ -1096,6 +1277,16 @@ function launch_solr() {
fi
fi
+ # If SSL-related system props are set, add them to SOLR_OPTS
+ if [ -n "$SOLR_SSL_OPTS" ]; then
+ # If using SSL and jetty.ssl.port not set explicitly, use the jetty.port
+ SSL_PORT_PROP="-Djetty.ssl.port=$SOLR_PORT"
+ if [ -n "$SOLR_SSL_PORT" ]; then
+ SSL_PORT_PROP="-Djetty.ssl.port=$SOLR_SSL_PORT"
+ fi
+ SOLR_OPTS="$SOLR_OPTS $SOLR_SSL_OPTS $SSL_PORT_PROP"
+ fi
+
if $verbose ; then
echo -e "\nStarting Solr using the following settings:"
echo -e " JAVA = $JAVA"
@@ -1138,6 +1329,7 @@ function launch_solr() {
SOLR_START_OPTS="-server -Xss256k $SOLR_JAVA_MEM $GC_TUNE $GC_LOG_OPTS $REMOTE_JMX_OPTS \
$CLOUD_MODE_OPTS \
+-Djetty.home=$SOLR_SERVER_DIR
-DSTOP.PORT=$stop_port -DSTOP.KEY=$STOP_KEY \
$SOLR_HOST_ARG -Djetty.port=$SOLR_PORT \
-Dsolr.solr.home=$SOLR_HOME \
@@ -1160,7 +1352,7 @@ $SOLR_OPTS"
nohup $JAVA $SOLR_START_OPTS $SOLR_ADDL_ARGS -XX:OnOutOfMemoryError="$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT $SOLR_LOGS_DIR" -jar start.jar 1>$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log 2>&1 & echo $! > $SOLR_PID_DIR/solr-$SOLR_PORT.pid
# no lsof on cygwin though
- if [ "$hasLsof" != "" ]; then
+ if hash lsof 2>/dev/null ; then # hash returns true if lsof is on the path
echo -n "Waiting to see Solr listening on port $SOLR_PORT"
# Launch in a subshell to show the spinner
(loops=0
@@ -1203,26 +1395,19 @@ if [ "$EXAMPLE" != "cloud" ]; then
EXAMPLE_NAME=$EXAMPLE
fi
- if [ "$SOLR_MODE" == "solrcloud" ]; then
- run_tool create_collection -name $EXAMPLE_NAME -shards 1 -replicationFactor 1 \
- -config $EXAMPLE_CONFIGSET -configsetsDir $SOLR_TIP/server/solr/configsets -solrUrl http://localhost:$SOLR_PORT/solr
- if [ $? -ne 0 ]; then
- exit 1
- fi
- else
- run_tool create_core -name $EXAMPLE_NAME -solrUrl http://localhost:$SOLR_PORT/solr \
- -config $EXAMPLE_CONFIGSET -configsetsDir $SOLR_TIP/server/solr/configsets
- if [ $? -ne 0 ]; then
- exit 1
- fi
+ run_tool create -name $EXAMPLE_NAME -shards 1 -replicationFactor 1 \
+ -confname $EXAMPLE_NAME -confdir $EXAMPLE_CONFIGSET \
+ -configsetsDir $SOLR_TIP/server/solr/configsets -solrUrl $SOLR_URL_SCHEME://localhost:$SOLR_PORT/solr
+ if [ $? -ne 0 ]; then
+ exit 1
fi
if [ "$EXAMPLE" == "techproducts" ]; then
echo "Indexing tech product example docs from $SOLR_TIP/example/exampledocs"
- "$JAVA" -Durl=http://localhost:$SOLR_PORT/solr/$EXAMPLE/update -jar $SOLR_TIP/example/exampledocs/post.jar $SOLR_TIP/example/exampledocs/*.xml
+ "$JAVA" $SOLR_SSL_OPTS -Durl=$SOLR_URL_SCHEME://localhost:$SOLR_PORT/solr/$EXAMPLE/update -jar $SOLR_TIP/example/exampledocs/post.jar $SOLR_TIP/example/exampledocs/*.xml
fi
- echo -e "\nSolr $EXAMPLE example launched successfully. Direct your Web browser to http://localhost:$SOLR_PORT/solr to visit the Solr Admin UI\n"
+ echo -e "\nSolr $EXAMPLE example launched successfully. Direct your Web browser to $SOLR_URL_SCHEME://localhost:$SOLR_PORT/solr to visit the Solr Admin UI\n"
fi
else
#
@@ -1245,7 +1430,7 @@ else
fi
echo -e "\nStarting up SolrCloud node1 on port ${CLOUD_PORTS[0]} using command:\n"
- echo -e "solr start -cloud -s $SOLR_HOME -p $SOLR_PORT $DASHZ $DASHM $DASHA\n\n"
+ echo -e "solr start -cloud -s example/cloud/node1/solr -p $SOLR_PORT $DASHZ $DASHM $DASHA\n\n"
# can't launch this node in the foreground else we can't run anymore commands
launch_solr "false" "$ADDITIONAL_CMD_OPTS"
@@ -1262,7 +1447,7 @@ else
ndx=$[$s+1]
next_port=${CLOUD_PORTS[$s]}
echo -e "\n\nStarting node$ndx on port $next_port using command:\n"
- echo -e "solr start -cloud -s $SOLR_TIP/example/cloud/node$ndx/solr -p $next_port -z $zk_host $DASHM $DASHA \n\n"
+ echo -e "solr start -cloud -s example/cloud/node$ndx/solr -p $next_port -z $zk_host $DASHM $DASHA \n\n"
# call this script again with correct args for next node
$SOLR_TIP/bin/solr start -cloud -s $SOLR_TIP/example/cloud/node$ndx/solr -p $next_port -z $zk_host $DASHM $DASHA
done
@@ -1321,7 +1506,7 @@ else
CLOUD_CONFIG=data_driven_schema_configs
fi
- # validate the configset arg
+ # validate the confdir arg
if [[ ! -d "$SOLR_TIP/server/solr/configsets/$CLOUD_CONFIG" && ! -d "$CLOUD_CONFIG" ]]; then
echo -e "\nOops! Specified configuration $CLOUD_CONFIG not found!"
read -e -p "Choose one of: basic_configs, data_driven_schema_configs, or sample_techproducts_configs [data_driven_schema_configs] " USER_INPUT
@@ -1334,8 +1519,10 @@ else
fi
run_tool create_collection -name $CLOUD_COLLECTION -shards $CLOUD_NUM_SHARDS -replicationFactor $CLOUD_REPFACT \
- -config $CLOUD_CONFIG -configsetsDir $SOLR_TIP/server/solr/configsets -solrUrl http://localhost:$SOLR_PORT/solr
- echo -e "\n\nSolrCloud example running, please visit http://localhost:$SOLR_PORT/solr \n\n"
+ -confname $CLOUD_COLLECTION -confdir $CLOUD_CONFIG \
+ -configsetsDir $SOLR_TIP/server/solr/configsets -solrUrl $SOLR_URL_SCHEME://localhost:$SOLR_PORT/solr
+
+ echo -e "\n\nSolrCloud example running, please visit $SOLR_URL_SCHEME://localhost:$SOLR_PORT/solr \n\n"
fi
exit $?