gerrit/lib
Dave Borowitz 70aaf7eaa7 Update Lucene to 5.0.0
Use this version starting at the existing schema version 15 (which has
been in master for only a week or so).

Notable changes:

 - Can use the new IndexWriter#setCommitOnClose(boolean) method to
   simplify closing an index.

 - This means we no longer need to pass Version into the
   IndexWriterConstructor. According to [1], this was _only_ used to
   determine whether or not the index should be committed on close, as
   this behavior differed between versions. No more mapping schema
   versions to Lucene versions!

 - IndexWriters are now forced to use their configured Analyzer,
   removing the methods taking an Analyzer (which we weren't using
   anyway). This saves some code in AutoCommitWriter.

 - Lucene 5 cannot read indexes created by older versions without an
   additional jar in the classpath, so we need to add that.

The most annoying change is that sorting cannot be done on normal
numeric fields by default anymore[2]. This was inefficient anyway, as
Lucene had to seek and read all index field values before doing the
sorting. Switch to the newer DocValues API for strongly-typed sortable
fields. This introduces some medium-term ugliness as the sort spec
changes depending on the schema version.

Unfortunately we can only use DocValues on new index versions; older
versions need to use the new UninvertingReader API, which provides
FieldCache based sorting without a reindex. An overzealous check in a
static method in Lucene[3] means we need to temporarily fork
SearcherManager.java from Lucene in order to get this to work with the
NRT machinery.

Since we have to jump through significant hoops to get older index
versions readable by this version of Lucene, add a test specifically
for schema v14.

[1] https://issues.apache.org/jira/browse/LUCENE-5871
[2] https://issues.apache.org/jira/browse/LUCENE-5666
[3] https://issues.apache.org/jira/browse/LUCENE-6370

Change-Id: I843be2fb697779fc741e25459a2716280b2bd0b6
2015-03-25 12:21:59 -07:00
..
antlr Bump antlr to version 3.5.2 2015-01-07 00:46:18 +00:00
asciidoctor Update Lucene to 5.0.0 2015-03-25 12:21:59 -07:00
auto Update AutoValue to 1.0 2015-01-22 12:15:18 -08:00
bouncycastle Downgrade SSHD to 0.9.0-4-g5967cfd 2014-12-04 13:51:59 +01:00
codemirror Update CodeMirror to 5.0 and consume from Maven Central 2015-03-19 18:46:01 +09:00
commons Move httpcomponents libraries out of lib/commons to lib/httpcomponents 2014-09-17 17:55:17 +09:00
easymock Move powermock and easymock library definitions to separate BUCK files 2014-06-30 15:35:13 +00:00
guice Update Guice version to 4.0-beta5 2014-10-21 11:04:49 +09:00
gwt Update GWT to 2.7 2014-12-04 11:23:01 +09:00
httpcomponents Move httpcomponents libraries out of lib/commons to lib/httpcomponents 2014-09-17 17:55:17 +09:00
jetty Upgrade Jetty to fix JetLeak security vulnerability 2015-02-27 16:16:49 +01:00
jgit Update JGit to 3.7.0.201502260915-r.58-g65c379e 2015-03-18 14:37:31 -07:00
joda Use DateTimeUtils.currentTimeMillis() to get current time 2013-10-16 10:10:55 -07:00
log Update httpclient and dependencies 2014-06-23 07:02:31 +00:00
lucene Update Lucene to 5.0.0 2015-03-25 12:21:59 -07:00
mina Update sha1 for sshd-core 0.9.0-4-g5967cfd 2014-12-05 16:12:55 +00:00
openid Move httpcomponents libraries out of lib/commons to lib/httpcomponents 2014-09-17 17:55:17 +09:00
ow2 Bump asm version to 5.0.3 2014-12-04 11:21:32 +09:00
powermock Move powermock and easymock library definitions to separate BUCK files 2014-06-30 15:35:13 +00:00
prolog Merge "Update to Prolog Cafe 1.4.1" 2015-03-23 23:09:05 +00:00
solr Move httpcomponents libraries out of lib/commons to lib/httpcomponents 2014-09-17 17:55:17 +09:00
BUCK Update Google gson library to 2.3.1 2015-03-03 21:45:23 +01:00
LICENSE-antlr Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-Apache1.1 Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-Apache2.0 Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-args4j Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-automaton Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-bouncycastle Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-CC-BY3.0 Document diffy logo is CC-BY 3.0 2013-08-21 08:57:42 -07:00
LICENSE-clippy Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-codemirror Async load popular modes into CodeMirror 2013-05-21 11:01:26 -07:00
LICENSE-diffy Document diffy logo is CC-BY 3.0 2013-08-21 08:57:42 -07:00
LICENSE-DO_NOT_DISTRIBUTE Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-freebie_application_icon_set Show link on hover for headings and anchors in documentation 2014-12-09 01:14:32 +00:00
LICENSE-h2 Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-jgit Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-jsch Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-MPL1.1 Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-ow2 Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-postgresql Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-prologcafe Update license text for PrologCafe 2013-05-13 09:44:25 -07:00
LICENSE-protobuf Add dependency on the Google protocol buffer library 2013-09-10 15:59:25 -07:00
LICENSE-PublicDomain Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-slf4j Build with Buck 2013-05-09 13:40:36 +00:00
LICENSE-xz Download commands: Add JGit archive 2014-03-03 23:34:46 +00:00
local.defs Buck: Align gerrit build interface to bucklets 2014-09-09 13:20:47 +00:00
maven.defs Buck: Support download of artifacts with classifier 2015-03-06 10:43:16 +09:00