5204 Commits

Author SHA1 Message Date
Jan Høydahl
9dd1b4accc SOLR-13977: Move changes entry to 8.4
(cherry picked from commit 0d78535dcfeab88edfd97b8d892b2e783aaf5504)
2019-12-09 10:28:38 +01:00
Michael Gibney
65a1804aeb SOLR-7798: robust support for expand when used w/o collapsing (#325)
There are applications of ExpandComponent that intentionally do not
involve prior collapsing of results on the expand field, which can lead
to an NPE in expand component when expand.field (for matched docs) has
fewer unique values than the number of matched docs.

This commit refines the approach taken in SOLR-13877, which addressed
the same underlying issue.
2019-12-08 10:11:18 +05:30
Kevin Risden
7ad7bbe05c
SOLR-13987: Admin UI should not rely on javascript eval()
* Removes `'unsafe-eval'` from CSP `script-src`
* Enables Angular CSP mode
* Removes `eval()` JSON parsing in `cloud.js`
* Removes `jstree` themes error

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-07 16:52:19 -05:00
Jason Gerlowski
e44bcc05c4 SOLR-13087: Remove 'whoami' usage in bin/solr
whoami displays a warning if the effective-uid is not in /etc/password.
This can happen in certain situations when running in a docker
container.  This replaces the 'whoami' usage with a safer check.
2019-12-06 15:32:38 -05:00
Jan Høydahl
912789bb93 SOLR-13954: Embedded ZooKeeper in Solr now does not try to load JettyAdminServer (#1059)
(cherry picked from commit 7417fa1cf3a7875b76419793a38080059f52b1fc)
2019-12-06 11:05:11 +01:00
Munendra S N
2d2f4b9521 SOLR-11706: add support for aggregation on multivalued fields
* min, max, sum, sumsq, avg, stddev, variance, percentile aggregations
  in JSON facets now supports multivalued fields
2019-12-05 11:01:50 +05:30
Anshum Gupta
b4375cc235
SOLR-13998: Add thread safety annotations to classes (#1053) (#1057) 2019-12-04 12:09:22 +05:30
Robert Muir
55b77358cf SOLR-13982: set security-related http response headers by default
Unfortunately, as a first start this is very weak protection against
e.g. XSS.  This is because some 'unsafe-xxx' rules must be present due
to the insecurity of angular JS: Until SOLR-13987 is fixed, XSS & co are
still easy.
2019-12-03 06:18:11 -05:00
Noble Paul
80abab2935 SOLR-13992: Refactor code to have collection, shard name in Replica,Slice (#1051)
* SOLR-13992: Refactor code to have collection name shard name in Replica,Slice
2019-12-03 13:12:23 +11:00
Cassandra Targett
0ebb62a9f2 SOLR-13885: various Ref Guide typos. This closes #990 2019-12-02 13:38:06 -06:00
Shalin Shekhar Mangar
ba95111d71 SOLR-13805: NPE when calling /solr/admin/info/health on standalone solr
(cherry picked from commit 5a697344ed1be537ef2acdd18aab653283593370)
2019-11-30 10:04:44 +05:30
Jan Høydahl
325e72c45f SOLR-13977: solr create -c not working under Windows 10
(cherry picked from commit 936f4b6ee9cd8c7f9a17800aadc8c5a91bdf74f6)
2019-11-29 13:07:50 +01:00
Bruno Roustant
1927e850c8
SOLR-13968: Support postingsFormat and docValuesFormat in schema fields.
Closes #1039
2019-11-28 17:17:23 +01:00
David Smiley
8b2d8d0947 SOLR-13971: Revert changes to the default configset. * clarified these are Java system properties * trivial dead code change; Boolean.getBoolean returns a primitive 2019-11-28 11:07:51 -05:00
Ishan Chattopadhyaya
26b5506290 8.3.1 release: CHANGES got misaligned 2019-11-28 19:41:07 +05:30
Ishan Chattopadhyaya
bf2899fb00 SOLR-13971: Renamed the velocity template parameter names 2019-11-28 15:44:19 +05:30
Jan Høydahl
ee39b15b86 SOLR-13969: Clean up and document AuditEvent API (#1041)
(cherry picked from commit 9f78482295819ba10a383d3027c1d6313c6e2e7d)
2019-11-28 09:57:01 +01:00
Ishan Chattopadhyaya
05c5bcc8b3 SOLR-13971: Removing velocity from _default and disabling custom template support by default 2019-11-28 07:54:37 +05:30
noble
4ad3902137 SOLR-13963: JavaBinCodec has concurrent modification of CharArr resulting in corrupt internode updates 2019-11-26 08:22:48 +11:00
Thomas Wöckinger
5e24a010e0 SOLR-13961: Allow null/empty for removal of child doc in atomic update
Cherry pick: b5fd6d7b22002a06bdc626999a6a527ff6f46488
2019-11-25 10:46:48 -05:00
Jan Høydahl
5f11efb2d5 SOLR-12193: Move some log messages to TRACE level, remove some dead code
(cherry picked from commit d809bc27f1b5cd6d97e0bfe688c99d481bc42d39)
2019-11-24 00:03:36 +01:00
Jan Høydahl
3adb0903bf SOLR-13465 CoreContainer.auditloggerPlugin should be volatile (#672)
(cherry picked from commit 312431b1821a67c9ddb7e219b9203d6fd7bdd5df)
2019-11-23 01:29:31 +01:00
Jan Høydahl
29e172f6e2 SOLR-13905 Make findRequestType in AuditEvent more robust (#1014)
(cherry picked from commit e45c5ce9b9e70650f119976b8b2d91b3c760cb48)
2019-11-22 23:35:44 +01:00
Tomas Fernandez Lobbe
65888d0542 SOLR-13950: Add attribution 2019-11-22 11:07:30 -08:00
Andy Vuong
a25ecd7f30 SOLR-13950: Fix getLeaderRetry swallowing interrupt in ZkStateReader (#1023)
Let InterruptedException bubble up
2019-11-22 11:07:25 -08:00
Munendra S N
2ba55b7e3c SOLR-13912: add support for countvals aggregation in JSON facet module
* This aggregation is equivalent to StatsComponent's count
2019-11-22 18:38:49 +05:30
Tomas Fernandez Lobbe
4a3c15f118 SOLR-13907: Cloud view tree - fixed placement 2019-11-20 10:57:00 -08:00
Jan Høydahl
58d5680a90 SOLR-13941: Configure JettySolrRunner same as in web.xml (#1018)
(cherry picked from commit f00bcd560901ebed420c51e52fda788ae8654103)
2019-11-20 10:31:23 +01:00
Cassandra Targett
cebd6eddd2 SOLR-13782: add CHANGES entry 2019-11-19 15:57:38 -06:00
Munendra S N
5cce058631 SOLR-13911: add support for missing aggregation in JSON facet module
* This missing aggregation is equivalent to StatsComponent's missing
2019-11-16 12:13:16 +05:30
Andrzej Bialecki
6e655a99ce SOLR-13817: Deprecate legacy SolrCache implementations. 2019-11-14 21:22:18 +01:00
Ishan Chattopadhyaya
6edbda7429 SOLR-13662: Package manager (CLI) 2019-11-14 19:19:58 +05:30
Istvan Farkas
a1777b540b
SOLR-13921: Processing UpdateRequest with delegation token throws NullPointerException
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-11-13 13:03:41 -05:00
Andrzej Bialecki
3c06fbcad2 SOLR-13898: Non-atomic use of SolrCache get / put. 2019-11-13 18:10:12 +01:00
Chris Hostetter
8c12979fdd SOLR-13872: Fixed Backup failures due to race conditions in saving/reserving commit points
(cherry picked from commit 30e55e2b6efc55c04761b80c22a106f4a1115722)
2019-11-13 08:59:22 -07:00
Chris Hostetter
700aeeb58f Fix SOLR-13869 typo in CHANGES.txt
(cherry picked from commit 5df9a51cbfb51bcd1f2a723cef9f6d22accd72f1)
2019-11-12 14:04:53 -07:00
Chris Hostetter
b872863da9 SOLR-13864: SolrTestCaseJ4.getNextAvailablePort() has been deprecated
(cherry picked from commit 603be023feaf3f8e3e739e532b488068710d9097)
2019-11-12 13:42:14 -07:00
Noble Paul
37059eb594
SOLR-13822: Isolated Classloading from packages (#997)
* SOLR-13821: A Package store to store and load package artifacts 

* SOLR-13822: A Package management system with the following features. A packages.json in ZK to store
  the configuration, APIs to read/edit them and isolated classloaders to load the classes from
  those packages if the 'class' attribute is prefixed with `<package-name>:` 

*  SOLR-13841: Provide mappings for jackson annotation @JsonProperty to use Jackson deserializer
2019-11-06 19:45:14 +11:00
Joel Bernstein
3d69d112bc Fix CHANGES.txt 2019-11-05 09:20:34 -05:00
Joel Bernstein
70f5533045 SOLR-10786: Update CHANGES.txt 2019-11-05 09:18:41 -05:00
Andrzej Bialecki
848529128f SOLR-13882: Collections API COLSTATUS does not check live_nodes when reporting replica's status. 2019-11-05 14:07:24 +01:00
Jason Gerlowski
a98198cc04 SOLR-13762: Allow BinaryField use with non-binary wt's.
Closes #883
2019-11-04 08:44:33 -05:00
Houston Putman
2f8b3ea634 SOLR-13844: Remove replica recovery terms with the replica term (#951) 2019-11-04 09:41:40 +00:00
Chris Hennick
543d0b79aa SOLR-13207: Handle query errors in calculateMinShouldMatch (#978)
Traps error that arises when the < operator is used at the end of a query field.
Also handles NumberFormatException when the operand isn't a number.
2019-11-01 10:43:34 -07:00
Munendra S N
0e3a66be43 SOLR-13823: fix ClassCastEx in group.query when score is requested
* This makes sures score computed for standalone and distributed
  is same for group.query. This is done by using mainQuery to compute
  scores
2019-10-29 14:07:20 +05:30
Munendra S N
2055983d80 SOLR-13877: fix NPE in expand component
* This could happen when expand component is not used with collapse
  and matched docs have fewer unique values
2019-10-29 14:07:20 +05:30
Houston Putman
bf26279699 SOLR-13865: Migrate replica routing code to SolrJ (#974)
* [SOLR-13865] Migrate replica routing code to  solrJ

* Added a CommonTestInjection class.

* Fixing imports.

* Reverted extraneous streaming changes.

* Fix precommit errors.

* Changing name of the RLTManager.

* Splitting up existing tests.

* Updated documentation.

* Added solr/CHANGES.txt entry
2019-10-28 15:51:04 -07:00
Munendra S N
21e58bc128 SOLR-12393:fix score not returned if expanded docs sorted by non-score 2019-10-24 20:02:32 +05:30
David Smiley
9a108996bb SOLR-13855: DistributedZkUpdateProcessor needs to propagate URP.finish()
Important since Run URP finish() propagates to updateLog to fsync()!
Closes #969

(cherry picked from commit 3ae820424809baa4e5a85d8bbdb0294cf6fe5b9b)
2019-10-23 17:51:27 -04:00
Andrzej Bialecki
6e6b36cbcd SOLR-13831: Support defining arbitrary autoscaling simulation scenarios. 2019-10-23 21:14:05 +02:00