Commit Graph

1201 Commits

Author SHA1 Message Date
Ishan Chattopadhyaya 50e8cea918 SOLR-13971: Removing velocity from _default and disabling custom template support by default 2019-11-28 07:52:43 +05:30
Dawid Weiss 063c82ebd6 SOLR-13952: reverting Erick's commit (with permission). 2019-11-25 17:56:20 +01:00
Erick Erickson 4b34d726ab SOLR-13952: Separate out Gradle-specific code from other (mostly test) changes and commit separately 2019-11-24 13:24:40 -05:00
Andrzej Bialecki b4fe911cc8 SOLR-13817: Remove legacy SolrCache implementations. 2019-11-14 21:21:44 +01:00
Andrzej Bialecki e58a90f18d SOLR-13858: Clean up SolrInfoBean / SolrMetricProducer API. 2019-11-04 15:31:43 +01:00
Mikhail Khludnev afdb80069c SOLR-13824: reject prematurely closed curly bracket in JSON. 2019-10-21 23:25:06 +03:00
Andrzej Bialecki f07998fc23 SOLR-13677: All Metrics Gauges should be unregistered by components that registered them. 2019-10-18 17:15:04 +02:00
Koen De Groote e7e6cfaecf LUCENE-8994: Code Cleanup - Pass values to list constructor instead of empty constructor followed by addAll(). (#919) 2019-10-14 18:45:47 +02:00
Koen De Groote 04786244d0 LUCENE-8979: Code Cleanup: Use entryset for map iteration wherever possible. - part 2 2019-10-14 18:36:19 +02:00
Chris Hostetter 4ec4061cbc SOLR-13786: AwaitsFix SolrExporterIntegrationTest 2019-09-23 10:33:08 -07:00
Dawid Weiss 2a1d5eea42 SOLR-13779: Use the safe fork of simple-xml for clustering contrib 2019-09-19 12:24:26 +02:00
Houston Putman c7f8487328 SOLR-13773: Prometheus Exporter GC and Heap options (#887)
* SOLR-13773: Prometheus Exporter GC and Heap options

* Adding info to the ref-guide.
2019-09-18 13:31:53 -07:00
Koen De Groote ec78ef7852 Changing keyset() to entryset() and sometines values(). (#868) 2019-09-13 14:42:38 +02:00
Chris Hostetter 3ed96026d3 LTR Test Hardening:
1) use per-method state isolation in several tests...

This helps prevent failures in one test to allow persisted date to leak into other test methods,
as well as ensuring that these tests play nicely with -Dtests.iters > 1

2) TestRerankBase cleanup to eliminate unnecessary extra SolrCore (that was being leaked)
2019-09-12 18:11:24 -07:00
Noble Paul 042478cfa7 SOLR-13677: reverting the last commit 2019-09-08 14:57:47 +10:00
Atri Sharma 19aecb0f7d SOLR-13655:Upgrade Collections.unModifiableSet to Set.of and Set.copyOf (#817) 2019-08-23 14:31:28 -07:00
Noble Paul 7415fe4539
SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them (#836)
* SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them
2019-08-19 19:48:06 +10:00
Tomoko Uchida 9b986d268f SOLR-13593: Allow to look up analyzer components by their SPI names in field type configuration. 2019-08-11 16:35:25 +09:00
Munendra S N 8c4fde94fe SOLR-12555: use expectThrows() to verify the ex thrown in tests 2019-08-03 13:00:49 +05:30
Chris Hostetter ab470a6564 SOLR-13664: Fixed SolrTestCaseJ4.deleteCore() to properly reset the dataDir used by initCore() 2019-08-01 09:15:18 -07:00
Munendra S N 1d303cee7f SOLR-13657: fix unsupported xpath test in TestXPathRecordReader
* use expectThrows to verify the exception and the message
* fix NPE in the test
2019-07-29 22:17:40 +05:30
Munendra S N 9f74cb10d3 SOLR-13643:add Getter/Setter in ResponseBuilder to handle analytic res 2019-07-29 09:48:31 +05:30
Jason Gerlowski cab83772c9 SOLR-13629: Cleanup whitespace in analytics contrib 2019-07-28 15:36:21 -04:00
Andrzej Bialecki 66812b2a67 SOLR-13003: Fix WrapperModel method delegation. 2019-07-03 20:17:46 +02:00
Andrzej Bialecki 5897787291 SOLR-13003: Query Result Cache does not honour maxRamBytes parameter. 2019-07-03 17:03:43 +02:00
David Smiley 325824cd39 SOLR-13158: DIH: Add System property toggle for use of dataConfig param 2019-07-02 23:59:39 -04:00
Chris Hostetter 7e57d3a9d9 SOLR-13574: Fix many test and test-framework classes to not fail on After/AfterClass cleanup if assumptions fail in Before/BeforeClass setup 2019-06-27 10:28:06 -07:00
Koen De Groote 67104dd615 LUCENE-8847: Code Cleanup: Rewrite StringBuilder.append with concatted strings (#707)
This specific commit affects all points in the casebase where the argument of a StringBuilder.append() call is itself a regular String concatenation.
This defeats the purpose of using StringBuilder and also introduces an extra alloction.
These changes should avoid that.

ant tests have run, succeeded on local machine.

Removing test files from the changes.

Another suggested rework.
2019-06-10 18:07:43 +02:00
Cao Manh Dat da832d4f3a SOLR-13434: Fixes problem on Java 8 build 2019-06-05 15:35:05 +01:00
Cao Manh Dat 301ea0e462
SOLR-13434: OpenTracing support for Solr (#685) 2019-06-04 20:04:11 +01:00
Erick Erickson 7ebeab71f4 SOLR-8346: Upgrade Zookeeper to version 3.5.5 2019-06-03 17:50:35 -07:00
Chris Hostetter 61279a2e79 Fix SolrExporterIntegrationTest to not make assumptions about the JVM that are not true on windows 2019-05-30 11:59:26 -07:00
Chris Hostetter c2b92f3015 Fix all solr tests to pass w/ -Dtests.dups=2 -Dtests.jvms=1 2019-05-29 10:27:15 -07:00
Uwe Schindler c756b50ae4 LUCENE-8807: Change all download URLs in build files to HTTPS 2019-05-21 17:06:00 +02:00
Dawid Weiss 3764c727e5 SOLR-13462: Update dependency definitions to include Ukrainian dictionary. 2019-05-14 21:29:52 +02:00
Christine Poerschke 3857388136 SOLR-13049: Make contrib/ltr Feature.defaultValue configurable. (Stanislav Livotov, Christine Poerschke) 2019-05-09 17:19:46 +01:00
noble 8908205b42 SOLR-13441: Refactor code to minimize direct use of noggit 2019-05-03 07:20:05 +10:00
Shalin Shekhar Mangar 4571a2d666 SOLR-13392: Add all solr dependencies to prometheus exporter classpath to make sure that it can start.
SOLR-13234 broke prometheus exporter startup from the startup scripts because there was a mismatch between the dependency list in ant/ivy and those actually added to the classpath by the script. This commit changes the script to add all solr dependencies to the classpath.
2019-04-22 12:18:56 +05:30
Uwe Schindler faaee86efb LUCENE-8738: Move to Java 11 as minimum Java version (merged branch: jira/LUCENE-8738)
Co-authored-by: Adrien Grand <jpountz@apache.org>
2019-04-16 14:00:09 +02:00
Kevin Risden 90d983cf7c
SOLR-13351: Workaround for VELOCITY-908
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-27 17:42:55 -04:00
Ishan Chattopadhyaya e7939d5907 SOLR-7414: CSVResponseWriter & XLSXResponseWriter return empty field when fl alias is combined with * selector 2019-03-27 14:38:36 +05:30
Kevin Risden 4e230388ba
SOLR-13335: Upgrade to velocity 2.0 and velocity-tools 3.0
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 09:58:44 -04:00
Kevin Risden 0231c1ecb6
SOLR-13342: Remove dom4j from Solr
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 08:15:01 -04:00
Kevin Risden 6222abf448
SOLR-9079: Remove commons-lang as a dependency
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-20 19:37:19 -04:00
Alan Woodward fbd05167f4
LUCENE-3041: QueryVisitor (#581)
This commit adds an introspection API to Query, allowing users to traverse
the nested structure of a query and examine its leaves.  It replaces the existing
`extractTerms` method on Weight, and alters some highlighting code to use
the new API
2019-03-14 15:04:33 +00:00
Shalin Shekhar Mangar 6d0386c901 SOLR-13234: Fix for turkish locales
WhenSolrExporterIntegrationTest.jvmMetrics ran on a JVM with the Turkish locale, (test seed: 62880F3B9F140C89). The JVM metric for terminated thread-count has a dotless-i e.g. termınated.
This causes the check for matching metrics to fail.

We could normalize the text in this case, however I think it's better to ensure we have the correct total number of JVM thread metrics rather than looking at Prometheus labels which maybe localized.

This closes #605.
2019-03-14 11:10:49 +05:30
erick 9272c29539 SOLR-13268: Clean up any test failures resulting from defaulting to async logging 2019-03-10 11:05:00 -07:00
Shalin Shekhar Mangar 1f9c767aac SOLR-13234: Prometheus Metric Exporter not threadsafe.
This changes the prometheus exporter to collect metrics from Solr on a fixed interval controlled by this tool and prevents concurrent collections. This change also improves performance slightly by using the cluster state instead of sending multiple HTTP requests to each node to lookup all the cores.

This closes #571.
2019-03-04 11:02:47 +05:30
Noble Paul a89b065c1f SOLR-13255 : ClasscastException when URPs try to read a String field which returns a ByteArrayUTF8CHarSequence . This is a regression in release 7.7 2019-02-20 22:19:18 +11:00
Bruno P. Kinoshita 5310152450 Fix some spell check issues 2019-02-12 21:35:30 -08:00
Shalin Shekhar Mangar 46592e981f SOLR-12365: Fix compilation failure in prometheus-exporter 2019-01-06 09:34:22 +05:30
Jan Høydahl 00f8f3a13a SOLR-11774: langid.map.individual now works together with langid.map.keepOrig 2019-01-03 18:27:24 +01:00
Jason Gerlowski c34f29a4b4 SOLR-13090: Add sysprop override for maxBooleanClauses 2019-01-02 10:58:32 -05:00
Erick Erickson 24ae0d16cd SOLR-12028: Catching up with annotations after recent Solr test work 2018-12-27 18:03:50 -08:00
Dawid Weiss e916f1fb86 LUCENE-8611: Update randomizedtesting to 2.7.2, JUnit to 4.12, add hamcrest-core dependency. 2018-12-15 09:49:36 +01:00
Jan Høydahl 5affe7421f SOLR-13025: SchemaSimilarityFactory fallback to LegacyBM25Similarity for luceneMatchVersion < 8.0 2018-12-12 10:33:50 +01:00
markrmiller 05d728f57a SOLR-12801: Add @AwaitsFix to TestHierarchicalDocBuilder#testThreeLevelHierarchy. 2018-12-11 06:05:26 -06:00
Jason Gerlowski f7faae075b SOLR-13019: Fix typo in MailEntityProcessor
Path provided by Tommy Marshment-Howell.

Closes #509
2018-12-04 08:49:58 -05:00
markrmiller 75b1831967 SOLR-12801: Make massive improvements to the tests.
SOLR-12804: Remove static modifier from Overseer queue access.

SOLR-12896: Introduce more checks for shutdown and closed to improve clean close and shutdown. (Partial)

SOLR-12897: Introduce AlreadyClosedException to clean up silly close / shutdown logging. (Partial)

SOLR-12898: Replace cluster state polling with ZkStateReader#waitFor. (Partial)

SOLR-12923: The new AutoScaling tests are way too flaky and need special attention. (Partial)

SOLR-12932: ant test (without badapples=false) should pass easily for developers. (Partial)

SOLR-12933: Fix SolrCloud distributed commit.
2018-11-29 11:58:51 -06:00
Erick Erickson 763e64260f SOLR-12881: Remove unneeded import statements 2018-11-14 17:48:15 -08:00
David Smiley 0330372f04 SOLR-12759: fix regexp (case insensitive) 2018-11-09 15:58:40 -05:00
Alexandre Rafalovitch 0ddbc4bf95 SOLR-12966: Add Javadoc @since tag to URP classes 2018-11-06 08:05:07 -05:00
Christine Poerschke be65b95e80 SOLR-12699: Make contrib/ltr LTRScoringModel immutable and cache its hashCode.
(Stanislav Livotov, Edward Ribeiro, Christine Poerschke)
2018-11-05 18:56:40 +00:00
Erick Erickson fc886497de SOLR-12423: Upgrade to Tika 1.19.1 when available. Fixes #468 2018-10-17 13:06:09 -04:00
Erick Erickson 6c5df58b5a SOLR-12028: BadApple and AwaitsFix annotations usage 2018-10-14 21:13:33 -04:00
Christine Poerschke 9c8ffabfe3 SOLR-12780: Add support for Leaky ReLU and TanH activations in contrib/ltr NeuralNetworkModel class.
(Kamuela Lau, Christine Poerschke)
2018-10-12 17:08:35 +01:00
David Smiley 964cc88cee SOLR-12593: remove date parsing from extract contrib
* added "ignored_*" to the default configSet
* Updated Ref Guide info on Solr Cell to demonstrate usage without using the techproducts configSet

Closes #438
2018-09-28 16:50:11 -04:00
David Smiley 9bc4b8d4fe SOLR-12759: fix regexp 2018-09-24 15:21:59 -04:00
Alan Woodward c0d2975970 LUCENE-8498: Remove LowerCaseTokenizer 2018-09-20 11:57:05 +01:00
David Smiley c06a7ab0c7 SOLR-12759: fix regexp 2018-09-18 20:21:44 -04:00
David Smiley 5abee478b6 SOLR-12759: detect actual problem and only then "assumeTrue" to bail 2018-09-18 13:43:41 -04:00
David Smiley dea3d69f95 SOLR-12759: assertFalse -> assumeFalse 2018-09-13 09:43:25 -04:00
David Smiley 623cdf29ad SOLR-12759: Disable ExtractingRequestHandlerTest on JDK 11 due to
JDK bug with timezone locale and Date.toString
2018-09-10 11:45:44 -04:00
David Smiley a537aa20c1 SOLR-6387: Remove/revert dated assertFalse in ExtractingRequestHandlerTest
Since this problem does not appear anymore in the latest JVMs.
2018-09-10 11:33:15 -04:00
Erick Erickson 0dc66c236d SOLR-12028: BadApple and AwaitsFix annotations usage 2018-09-06 20:43:51 -07:00
Andrzej Bialecki e0eb7bac02 SOLR-12723: Reduce object creation in HashBasedRouter. 2018-09-04 18:16:00 +02:00
Alan Woodward 910a0231f6 LUCENE-6228: Add Scorable class and make LeafCollector.setScorer() take Scorable 2018-09-04 11:01:44 +01:00
David Smiley 18874a6e36 SOLR-12591: Expand default configSet's date patterns to subsume those of extract contrib 2018-08-29 14:17:44 -04:00
Erick Erickson aa10cb7802 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-08-23 16:59:58 -07:00
Erick Erickson 8cde1277ec SOLR-12690: Regularize LoggerFactory declarations 2018-08-22 15:26:37 -07:00
David Smiley c3887b351e SOLR-12586: Change ParseDateFieldUpdateProcessorFactory to use java.time.DateTimeFormatter, not Joda Time.
Note: slightly different pattern language!
Remove Joda Time.
Closes #428
2018-08-07 11:51:16 -04:00
Varun Thacker e3cdb395a4 SOLR-12617: Remove Commons BeanUtils as a dependency 2018-08-03 09:46:54 -07:00
Erick 6afd3d1192 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-08-02 17:40:59 -07:00
Adrien Grand 9ca053712a LUCENE-8430: TopDocs.totalHits may now be a lower bound of the hit count. 2018-07-30 16:38:05 +02:00
David Smiley 528e8bceac SOLR-10243: Apply @AwaitsFix on TestExtractionDateUtil.testParseDate to be fixed by SOLR-12593 2018-07-25 11:10:32 -04:00
koji 995a902d1a SOLR-12570: OpenNLPExtractNamedEntitiesUpdateProcessor cannot support multi fields because pattern replacement doesn't work correctly 2018-07-23 16:58:46 +09:00
koji 34686c00dd LUCENE-8420: Upgrade OpenNLP to 1.9.0 2018-07-23 13:55:22 +09:00
Erick Erickson 1bea1da5dc SOLR-12028: BadApple and AwaitsFix annotations usage 2018-07-20 13:37:05 -07:00
Adrien Grand 331ccf3910 LUCENE-8405: Remove TopDocs.maxScore. 2018-07-18 08:38:57 +02:00
Uwe Schindler c97f27b06c Merge branch 'remove-constructor-wrapper-classes' of https://github.com/michaelbraun/lucene-solr:
LUCENE-8345, GitHub PR #392: Remove instantiation of redundant wrapper classes for primitives; add wrapper class constructors to forbiddenapis.
This closes #392
2018-07-16 12:24:45 +02:00
Erick Erickson db8db0d2b6 SOLR-12551: Upgrade to Tika 1.18 2018-07-14 15:45:33 -07:00
Michael Braun f0e1864ceb Merge remote-tracking branch 'source/master' into remove-constructor-wrapper-classes 2018-07-14 13:39:37 -04:00
Erick Erickson 93ae3669b5 SOLR-12008: Settle a location for the log4j2.xml file 2018-07-11 20:57:38 -07:00
Alexandre Rafalovitch b7d14c50fb SOLR-11694: Remove outdated UIMA module 2018-07-07 09:58:57 -04:00
Christine Poerschke f459bf4397 SOLR-12418: contrib/prometheus-exporter (private) logger rename 2018-06-28 14:44:18 +01:00
Alan Woodward 0fbe3d257e LUCENE-8356: Remove StandardFilter from Solr schemas 2018-06-27 12:05:23 +01:00
Uwe Schindler e21d4937e0 SOLR-12450: Don't allow referal to external resources in various config files 2018-06-17 13:15:29 +02:00
Jan Høydahl 30bf6b657f SOLR-12350: Do not use docValues as stored for _str (copy)fields in _default configset 2018-06-08 15:12:48 +02:00
Michael Braun fb6574100e LUCENE-8345 - add wrapper class constructors to forbiddenapis 2018-06-03 15:40:50 -04:00
David Smiley 4888adf08a SOLR-12337: Remove the obsolete QueryWrapperFilter 2018-06-01 17:12:21 -04:00