Commit Graph

33705 Commits

Author SHA1 Message Date
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
Noble Paul ea46596cb3
SOLR-13942: /api/cluster/zk/* to fetch raw ZK data
* SOLR-13942: /api/cluster/zk/* to fetch raw ZK data
2020-04-27 20:32:13 +10:00
Uwe Schindler 64eed9a1a6
LUCENE-9347: Add support for forbiddenapis 3.0 (#1459)
LUCENE-9347: Add support for forbiddenapis 3.0
2020-04-27 11:54:59 +02:00
Alan Woodward 5d5b7e14d4 LUCENE-9314: Use SingletonDocumentBatch in monitor when we only have a single document 2020-04-27 10:41:49 +01:00
Tomoko Uchida 13bbe60333 LUCENE-9344: update file names (MIGRATE.txt, BUILD.txt => MIGRATE.md, BUILD.md) 2020-04-27 10:23:52 +09:00
Tomoko Uchida f03e6aac59
SOLR-14429: Convert .txt files to properly formatted .md files (#1450) 2020-04-27 08:43:04 +09:00
Marcus ce18505e28
Fix Typo in `cloud-scripts` path (#1458) 2020-04-27 00:41:06 +02:00
Erick Erickson 8867f465dc LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-26 09:15:21 -04:00
Erick Erickson ecc98e8698 LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-24 13:34:03 -04:00
Simon Willnauer 8059eea160
Consolidate all IW locking inside IndexWriter (#1454)
Today we still have one class that runs some tricky logic that should
be in the IndexWriter in the first place since it requires locking on
the IndexWriter itself. This change inverts the API and now FrozendBufferedUpdates
does not get the IndexWriter passed in, instead the IndexWriter owns most of the logic
and executes on a FrozenBufferedUpdates object. This prevent locking on IndexWriter out
side of the writer itself and paves the way to simplify some concurrency down the road
2020-04-24 19:07:21 +02:00
Pierre-Luc Perron 013e98347a LUCENE-9267 Replace getQueryBuildTime time unit from ms to ns 2020-04-24 10:36:30 -05:00
Mike Drob 849fb63921
Move audit logging docs under AAA section (#1452) 2020-04-24 09:52:09 -05:00
Simon Willnauer d7e0b906ab
LUCENE-9345: Separate MergeSchedulder from IndexWriter (#1451)
This change extracts the methods that are used by MergeScheduler into
a MergeSource interface. This allows IndexWriter to better ensure
locking, hide internal methods and removes the tight coupling between the two
complex classes. This will also improve future testing.
2020-04-24 15:02:55 +02:00
Alan Woodward 5eb117f561 LUCENE-9340: Remove deprecated SimpleBindings#add(SortField) method 2020-04-24 12:22:21 +01:00
Alan Woodward f6462ee350
LUCENE-9340: Deprecate SimpleBindings#add(SortField) (#1447)
This method is trappy; it doesn't work for all SortField types, but doesn't tell
you that until runtime. This commit deprecates it, and removes all other
callsites in the codebase.
2020-04-24 12:08:16 +01:00
Alan Woodward ed3caab2d8
LUCENE-9338: Clean up type safety in SimpleBindings (#1444)
Replaces SimpleBindings' Map<String, Object> with a map of
Function<Bindings, DoubleValuesSource> to improve type safety, and
reworks cycle detection and validation to avoid catching 
StackOverflowException
2020-04-24 10:23:50 +01:00
Simon Willnauer 83018deef7 Ensure we use a sane IWC for tests adding many documents.
This test produced tons of files on nighly builds causing
TooManyOpenFilesExceptions likely due to not using CFS on flush
and/or very small maxMergeSize values.
2020-04-24 08:36:06 +02:00
Tomoko Uchida 75b648ce82 LUCENE-9344: Use https url for lucene.apache.org 2020-04-24 14:45:34 +09:00
Tomoko Uchida c7697b088c
LUCENE-9344: Convert .txt files to properly formatted .md files (#1449) 2020-04-24 14:28:12 +09:00
Tomas Fernandez Lobbe a11b78e06a
LUCENE-9342: Collector's totalHitsThreshold should not be lower than numHits (#1448)
Use the maximum of the two, this is so that relation is EQUAL_TO in the case of the number of hits in a query is less than the collector's numHits
2020-04-23 12:04:02 -07:00
Erick Erickson 4eb755db18 SOLR-12690: Regularize LoggerFactory declarations. Fixing an incorrect change 2020-04-23 07:51:42 -04:00
Andrzej Bialecki 2a7ba5a48e SOLR-12845: Properly clear default policy between tests. 2020-04-23 12:34:28 +02:00
Erick Erickson e43b17962a LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-22 22:32:49 -04:00
Mikhail Khludnev 3a743ea953 SOLR-8998,SOLR-12490: Polishing reference guide. 2020-04-22 23:19:34 +03:00
Simon Willnauer 4a98918bfa
LUCENE-9339: Only call MergeScheduler when we actually found new merges (#1445)
IW#maybeMerge calls the MergeScheduler even if it didn't find any merges we should instead only do this if there is in-fact anything there to merge and safe the call into a sync'd method.
2020-04-22 21:26:45 +02:00
Mike Drob 950a34ce13 SOLR-14412 use parameterized logging 2020-04-22 12:11:53 -05:00
Mike Drob fe05a6d380
SOLR-14420 Declare ServletRequests as HttpRequests in AuthenticationPlugin (#1442)
Declare ServletRequests as HttpRequests in AuthenticationPlugin
2020-04-22 12:06:18 -05:00
Andrzej Bialecki 5d60ff4613 SOLR-12845: Add a default autoscaling cluster policy. 2020-04-22 17:46:39 +02:00
Adrien Grand fbcb6ce64a Configure notifications.
As suggested in INFRA-20171.
2020-04-22 15:23:13 +02:00
Simon Willnauer 2b6ae53cd9
LUCENE-9337: Ensure CMS updates it's thread accounting datastructures consistently (#1443)
CMS today releases it's lock after finishing a merge before it re-acquires it to update
the thread accounting datastructures. This causes threading issues where concurrently
finishing threads fail to pick up pending merges causing potential thread starvation
on forceMerge calls.
2020-04-22 14:30:14 +02:00
Mike McCandless e0c06ee6a6 LUCENE-9191: make LineFileDocs random seeking more efficient by recording safe skip points in the concatenated gzip'd chunks 2020-04-21 12:09:17 -04:00
Jan Høydahl c9cd623a62 SOLR-14421: Fix non-working examples in solr.in.cmd 2020-04-21 15:10:13 +02:00
Simon Willnauer 56c61e698c Remove dead code 2020-04-21 13:38:19 +02:00
Erick Erickson c94770c2b9 LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-20 21:08:15 -04:00