33588 Commits

Author SHA1 Message Date
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 7ea7ed72aca556f957a5de55911c852124db8715.
2020-05-07 17:49:28 -05:00
markharwood
726894f8c8
Revert "Bugfix for FuzzyQuery false negative (#1493)" (#1495)
This reverts commit 28e47549c8ba1a7c17ffe7d9e791e88983ef46c2.
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
Ignacio Vera
96c47bc850
LUCENE-9087: Build always trees with full leaves and lower the default value for maxPointsPerLeafNode to 512 2020-05-02 11:34:19 +02:00
Uwe Schindler
951efc95be
LUCENE-9278: Improved options file creation: All parameters are escaped automatically, arguments don't need to be strings (they are converted during building options file) (#1479) 2020-05-02 09:53:51 +02:00
Philippe Ouellet
7a849f6943
LUCENE-9354: Sync French stop words with latest version from Snowball. (#1474)
* Sync French stop words with latest version from Snowball.

This new version removed some French homonyms from the list

* Use latest master commit from snowball-website

* LUCENE-9354: regenerate with 'gradle snowball

* LUCENE-9354: add CHANGES.txt entry
2020-05-01 21:11:35 -04:00
Mike Drob
242f48a1ca SOLR-14440 Cert Auth plugin 2020-05-01 13:11:01 -05:00
Mike Drob
a5c73d39d3 Revert "SOLR-14440 CertAuth plugin (#1463)"
Another commit accidentally snuck in

This reverts commit 7b289d6185f30b316d07d5ae5755cfc70c97921d.
2020-05-01 13:09:28 -05:00
Mike Drob
7b289d6185
SOLR-14440 Cert Auth plugin (#1463) 2020-05-01 12:47:12 -05:00
Erick Erickson
217c2faa2c LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-05-01 13:06:57 -04:00
Uwe Schindler
26b0b54bd3
LUCENE-9278: Fix javadocs task to work on windows and with whitespace in project folder (#1476) 2020-05-01 17:49:47 +02:00
Adrien Grand
34c9fe42f8 LUCENE-9331: Make TestIndexWriterDelete#testDeletesOnDiskFull converge faster. 2020-05-01 09:47:27 +02:00
Erick Erickson
9ae05e9b4f LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-30 19:50:31 -04:00
Ishan Chattopadhyaya
9ed5b6a218 SOLR-14237: Fix HDFS nightly test failure 2020-04-30 21:04:08 +05:30
Dawid Weiss
26c9fce5db LUCENE-9278: concatenate paths for sourcepath using path separator rather than whitespace (which causes invalid option to be passed to javadoc). 2020-04-30 10:24:23 +02:00
Tomoko Uchida
5354f7e88e
LUCENE-9333: Add gradle task to compile changes.txt to a html (#1468) 2020-04-30 17:21:53 +09:00
Mike Drob
ddd8fa9284 update CHANGES for #807 2020-04-29 18:29:05 -05:00
Simon Willnauer
207d240ae2 Fix tests to survive nightly runs with many documents 2020-04-29 22:11:42 +02:00
Cassandra Targett
5e6d91eec0 SOLR-14173: Don't use JQuery-Slim as it breaks the sidebar sub-menu system. 2020-04-29 13:31:35 -05:00
Ishan Chattopadhyaya
561e36660a SOLR-14237: A new panel with security info in admin UI's dashboard 2020-04-29 22:44:19 +05:30
Ishan Chattopadhyaya
0c682d0e9a SOLR-14237: A new panel with security info in admin UI's dashboard 2020-04-29 22:34:13 +05:30
Erick Erickson
6e96d01efc LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-29 10:56:54 -04:00
Cassandra Targett
28e747950f SOLR-14173: Change left nav item highlighting to fix menu jumpiness when hovering/selecting 2020-04-29 08:53:56 -05:00
Alan Woodward
267d70b66b
LUCENE-9349: TermInSetQuery should use consumeMatchingTerms in visit() (#1465)
TermInSetQuery currently iterates through all its prefix-encoded terms
in order to build an array to pass back to its visitor when visit() is called.
This seems like a waste, particularly when the visitor is not actually
consuming the terms (for example, when doing a clause-count check
before executing a search). This commit changes TermInSetQuery to use
consumeTermsMatching(), and also changes the signature of this method so
that it takes a BytesRunAutomaton supplier to allow for lazy instantiation. In
addition, IndexSearcher's clause count check wasn't counting leaves that
called consumeTermsMatching().
2020-04-29 10:19:05 +01:00
Tomoko Uchida
59a8e83520 LUCENE-9089: update FST usage example 2020-04-29 15:41:18 +09:00
David Smiley
2dd92fc052
Solr GraphTermsQParser simplifications (#1405)
No WeightOrDocIdSet; no override of bulkScorer  (needless)
2020-04-28 17:32:27 -04:00
Cassandra Targett
f4eb586ef6 SOLR-14173: Ref Guide Redesign: upgrade bootstrap; change layout; consolidate CSS. See issue for list of changes. 2020-04-28 13:56:01 -05:00
Mike Drob
0fc5179c6a SOLR-14412 only set ssl props when ssl enabled 2020-04-28 13:26:51 -05:00
Christine Poerschke
2d074399e8 Include time unit in SolrCLI's TimeoutException wording. 2020-04-28 17:19:05 +01:00
David Smiley
daeaffa9d7
SOLR-14433: Improve SolrShardReporter default metrics list (#1453)
Now includes TLOG and UPDATE./update.
These were small bugs to begin with but from user perspective this is an incremental improvement.
2020-04-27 23:48:34 -04:00
Erick Erickson
960610a615 LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-27 20:45:57 -04:00
Simon Willnauer
bc4da80776
Fix visibility on member variables in IndexWriter and friends (#1460)
Today it looks like wild wild west inside IndexWriter and some of it's
associated classes. This change makes sure all non-final members have
private visibility, methods that are not used outside of IW today are
made private unless they have been public. This change also removes
some unused or unnecessary members where possible and deleted some dead
code from previous refactoring.
2020-04-27 17:49:20 +02:00
Erick Erickson
ff4363675e LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-27 08:34:10 -04:00
noble
b25eabe6a9 SOLR-13942: A read API at /api/cluster/zk/* to fetch raw ZK data and view contents of a ZK direcory 2020-04-27 20:36:16 +10:00