Commit Graph

33619 Commits

Author SHA1 Message Date
erick 34e5e6c127 SOLR-14485: Fix or suppress 11 resource leak warnings in apache/solr/cloud 2020-05-15 13:39:51 -04:00
Ignacio Vera 98ef96ccbb
LUCENE-9288: poll_mirrors.py release script can handle HTTPS mirrors (#1520) 2020-05-15 16:33:23 +02:00
markharwood 819e668ce2
Lucene 9370: Remove any leniency around use of backslashes in expressions as per the Java Pattern policy. (#1516)
Also fixes a bug introduced in Lucene-9336 where searches for \\ would crash.
2020-05-15 11:45:18 +01:00
Tomas Fernandez Lobbe 4e564079fb SOLR-14471: Add CHANGES entry 2020-05-14 21:35:21 -07:00
Michael Gibney 54dca800a9
SOLR-14471: Fix last-place replica after shards.preference rules (#1507)
Properly apply base replica ordering to last-place shards.preference matches
2020-05-14 21:31:35 -07:00
Jan Høydahl 5eea9758c9 RefGuide typo 2020-05-15 00:48:16 +02:00
Joel Bernstein 08360a2997 SOLR-14407, SOLR-14478: Update CHANGES.txt 2020-05-14 10:52:55 -04:00
Joel Bernstein f1db56afaf SOLR-14478: Allow the diff Stream Evaluator to operate on the rows of a matrix 2020-05-14 09:52:05 -04:00
Joel Bernstein fe2135963c SOLR-14407: Handle shards.purpose in the postlogs tool 2020-05-14 09:52:04 -04:00
Uwe Schindler 010168c57b
LUCENE-9321, LUCENE-9278: Refactor renderJavadoc to allow relative links with multiple Gradle tasks (#1488)
This also automatically collects linked projects by its dependencies, so we don't need to maintain all inter-project javadocs links.

Co-authored-by: Dawid Weiss <dweiss@apache.org>
2020-05-14 13:16:16 +02:00
markharwood 18bd29715a
Lucene-9336: Changes.txt and migrate.md addition for RegExp enhancements (#1515)
Added notes for new \w \s etc support
2020-05-14 11:51:59 +01:00
markharwood 1efce5444d
RegEx querying - add support for Java’s predefined character classes like \d for digits (#1489)
Supports the same \w \W \s \S \d and \D character classes as Java's Pattern matcher.
2020-05-14 10:04:25 +01:00
David Smiley 4b9808a03d
SOLR-14351: commitScheduler was missing MDC logging (#1498) 2020-05-13 20:58:07 -04:00
Erick Erickson 08841b634f Mistakenly checked in gradle/defaults-java.gradle with warning limit of 10000 2020-05-13 19:39:05 -04:00
Erick Erickson 687dd42f57 SOLR-14475: Fix deprecation warnings resulting from upgrading commons cli to 1.4 2020-05-13 19:30:57 -04:00
Jan Høydahl 329e7c7bd5
LUCENE-9033 Update ReleaseWizard for new website instructions (#1324) 2020-05-13 23:52:40 +02:00
Jan Høydahl 1e449e3d04
SOLR-12131: ExternalRoleRuleBasedAuthorizationPlugin (#341) 2020-05-13 23:29:33 +02:00
Andrzej Bialecki dd4fa8f2f8 SOLR-14423: Additional fixes for object caching and incorrect test assumptions. 2020-05-13 19:37:12 +02:00
Erick Erickson e4dc9e9401 SOLR-11934: Visit Solr logging, it's too noisy. (added collection to log messages 'Registered new searcher...' 2020-05-13 12:34:45 -04:00
Samuel García Martínez adddab9d14
SOLR-14456: Fix Content-Type header forwarding on compressed requests (#1480)
Co-authored-by: Samuel García Martínez <samuelgma@inditex.com>
2020-05-12 17:50:07 -04:00
Andrzej Bialecki 4680e9245f SOLR-14423: Move static SolrClientCache from StreamHandler to CoreContainer for wider reuse and better life-cycle management. 2020-05-12 21:44:00 +02:00
Jan Høydahl 6971244134
SOLR-14463: Solr Admin ZkStatus page now works with ZK 3.6 (#1499) 2020-05-12 10:57:33 +02:00
Erick Erickson a0e158c3d0 SOLR-14266: Fix or suppress 14 resource leak warnings in apache/solr/core 2020-05-11 21:55:29 -04:00
Ignacio Vera 0d20c7b32a
LUCENE-9358: remove unnecessary tree rotation for the one dimensional case (#1481)
Change the way the multi-dimensional BKD tree builder generates the intermediate tree representation to be equal to the one dimensional case to avoid unnecessary tree and leaves rotation
2020-05-11 18:39:15 +02:00
Alan Woodward 7c350d22c7
LUCENE-7889: Allow grouping on Double/LongValuesSource (#1484)
The grouping module currently allows grouping on a SortedDocValues field, or on
a ValueSource. The latter groups only on exact values, and so will not perform well
on numeric-valued fields. This commit adds the ability to group by defined ranges
from a Long or DoubleValuesSource.
2020-05-11 17:34:01 +01:00
Simon Willnauer bd004d2c57 Fix test to check for close / closing and wait for merge threads to close the writer if concurrency strikes 2020-05-11 17:47:27 +02:00
Erick Erickson aeb9f6ce5b SOLR-7880: Update commons-cli to 1.4 2020-05-10 19:04:30 -04:00
Erick Erickson 15be0db586 SOLR-11934: Visit Solr logging, it's too noisy. 2020-05-09 12:49:59 -04:00
Tomas Fernandez Lobbe d9f9d6dd47
SOLR-13289: Add Support for BlockMax WAND (#1456)
Add support for BlockMax WAND via a minExactHits parameter. Hits will be counted accurately at least until this value, and above that, the count will be an approximation. In distributed search requests, the count will be per shard, so potentially the count will be accurately counted until numShards * minExactHits. The response will include the value numFoundExact which can be true (The value in numFound is exact) or false (the value in numFound is an approximation).
2020-05-08 14:25:47 -07:00
Erick Erickson 4a76a59d69 SOLR-14466: Upgrade log4j2 to latest release (2.13.2) 2020-05-08 13:28:19 -04:00
Simon Willnauer caa2042ff2 Ensure nightly doesn't cause timeouts
TestIndexWriterReader#testDuringAddDelete times out
if nightly hits a configuration that causes tons of flushes
with combination of SMS. This change disables auto-flush for this
test on nightly since it already produces lots of segments by definion.
2020-05-08 07:18:36 +02:00
Simon Willnauer 30ba8de40a LUCENE-9363: Only assert for no merging segments we merges are disabled 2020-05-08 07:02:54 +02:00
Mike Drob 03a60231e8 SOLR-14465: Solr query handling code catches FuzzyTermsException
This reverts commit 7ea7ed72ac.
2020-05-07 17:49:28 -05:00
markharwood 726894f8c8
Revert "Bugfix for FuzzyQuery false negative (#1493)" (#1495)
This reverts commit 28e47549c8.
The use of RegExpQuery as a fallback has to consider that the search string may contain characters which are illegal regex syntax and need escaping.

Will rethink the approach.
2020-05-07 16:28:19 +01:00
Dmitry Emets 4c408a5820
LUCENE-9362: Fix rewriting check in ExpressionValueSource (#1485) 2020-05-07 16:18:10 +01:00
Mike Drob 31b350e804
SOLR-14426 Move auxiliary classes to nested classes (#1487) 2020-05-07 10:04:06 -05:00
markharwood 28e47549c8
Bugfix for FuzzyQuery false negative (#1493)
Fix for Jira issue 9365 where search for `abc` doesn't match doc `abcd` if prefixlength = 3 and edit distance =1.
The fix is to rewrite the FuzzyQuery as a regex if prefix length == search string length.
2020-05-07 15:10:00 +01:00
Alan Woodward d06294e6ab
LUCENE-9366: Remove unused maxDoc parameter from DocValues.emptySortedNumeric() (#1491) 2020-05-07 14:28:01 +01:00
Adrien Grand 583499243a
LUCENE-7822: CodecUtil#checkFooter should throw a CorruptIndexException as the main exception. (#1482) 2020-05-07 13:04:20 +02:00
Alan Woodward e28663893e LUCENE-9350: Add changes entry 2020-05-07 11:33:17 +01:00
Alan Woodward c6d4aeab3f
LUCENE-9350: Don't hold references to large automata on FuzzyQuery (#1467)
LUCENE-9068 moved fuzzy automata construction into FuzzyQuery itself. However,
this has the nasty side-effect of blowing up query caches that expect queries to be
fairly small. This commit restores the previous behaviour of caching the large automata
on an AttributeSource shared between segments, while making the construction a
bit clearer by factoring it out into a package-private FuzzyAutomatonBuilder.
2020-05-07 11:28:54 +01:00
Cassandra Targett d4dbd0b9e7 SOLR-14173: Add entry in CHANGES.txt 2020-05-05 15:40:47 -05:00
Uwe Schindler 9ee8aa61de LUCENE-9278: Fix passing of Java properties for locale: The arguments must be separated. 2020-05-05 12:10:38 +02:00
Marcus 6f775bfa69
SOLR-14014 Allow disabling AdminUI at launch (#1471) 2020-05-04 16:51:31 -05:00
Mike McCandless 1783c4ad47 LUCENE-9191: ensure LineFileDocs random seeking effort does not seek into the middle of a multi-byte UTF-8 encoded Unicode character 2020-05-04 13:29:00 -04:00
Christine Poerschke b81083142c SOLR-14400: SuggestComponent can use parent class' SolrMetricsContext 2020-05-04 16:45:43 +01:00
Christine Poerschke 9c3b2b6654 SOLR-14400: DirectUpdateHandler2 no longer needs to override getSolrMetricsContext 2020-05-04 16:45:28 +01:00
Andrzej Bialecki 5eea489e44 SOLR-14431: SegmentsInfoRequestHandler does not release IndexWriter. 2020-05-04 14:44:01 +02:00
Alan Woodward 0c58687a97
LUCENE-9348: Add a base grouping test for use with different GroupSelector implementations (#1461)
The grouping module tests currently all try and test both grouping by term and
grouping by ValueSource. They are quite difficult to follow, however, and it is not
at all easy to add tests for a new grouping type. This commit adds a new
BaseGroupSelectorTestCase class which can be extended to test particular
GroupSelector implementations, and adds tests for TermGroupSelector and
ValueSourceGroupSelector.  It also adds a separate test for Block grouping,
so that the distinct grouping types are tested separately.
2020-05-04 12:55:00 +01:00
David Smiley e7c7a62a84
SOLR-14351: Oops; add back null check for ZkController 2020-05-03 10:23:16 -04:00