RETIRED, Gerrit as used by OpenStack
Go to file
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
.settings Update FindBugs configuration 2015-03-20 14:29:25 +00:00
bucklets Rename __standalone_mode__ to STANDALONE_MODE 2014-11-24 08:44:12 +00:00
contrib Fix minor python code style issues 2014-12-18 02:51:06 +00:00
Documentation Add config option to disable online reindexing 2015-03-25 10:32:34 -07:00
gerrit-acceptance-tests Make inner classes static where appropriate 2015-03-20 14:27:59 +00:00
gerrit-antlr Support change~branch~id in query syntax 2014-12-10 09:55:08 -08:00
gerrit-cache-h2 SitePaths: Convert site_path itself to Path 2015-03-03 11:48:05 +09:00
gerrit-common Merge branch 'stable-2.11' 2015-03-20 10:11:53 +09:00
gerrit-extension-api Merge branch 'stable-2.11' 2015-03-19 15:45:27 +09:00
gerrit-gwtdebug Organize imports 2014-12-18 11:16:03 +09:00
gerrit-gwtexpui Replace C-style array declarations with Java-style declarations 2015-03-19 12:15:43 +09:00
gerrit-gwtui Make inner classes static where appropriate 2015-03-20 14:27:59 +00:00
gerrit-gwtui-common Remove unused "remove reviewer" image 2015-01-08 18:39:58 +09:00
gerrit-httpd Make inner classes static where appropriate 2015-03-20 14:27:59 +00:00
gerrit-launcher Replace C-style array declarations with Java-style declarations 2015-03-19 12:15:43 +09:00
gerrit-lucene Update Lucene to 5.0.0 2015-03-25 12:21:59 -07:00
gerrit-main Replace C-style array declarations with Java-style declarations 2015-03-19 12:15:43 +09:00
gerrit-oauth Merge branch 'stable-2.10' into stable-2.11 2015-03-16 14:10:54 +09:00
gerrit-openid OpenID: Add support for Launchpad on the login form 2014-12-12 21:22:55 +01:00
gerrit-patch-commonsnet Replace 'for' loop with 'foreach' 2013-12-04 01:02:53 +04:00
gerrit-patch-jgit Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-pgm Merge "Update to Prolog Cafe 1.4.1" 2015-03-23 23:09:05 +00:00
gerrit-plugin-api Set version to 2.10.1 2015-03-13 15:35:33 +01:00
gerrit-plugin-archetype Set version to 2.10.1 2015-03-13 15:35:33 +01:00
gerrit-plugin-gwt-archetype Set version to 2.10.1 2015-03-13 15:35:33 +01:00
gerrit-plugin-gwtui Set version to 2.10.1 2015-03-13 15:35:33 +01:00
gerrit-plugin-js-archetype Set version to 2.10.1 2015-03-13 15:35:33 +01:00
gerrit-prettify Add missing braces around if- for- and while-statements 2015-03-19 12:15:42 +09:00
gerrit-reviewdb Merge branch 'stable-2.10' into stable-2.11 2015-03-16 14:10:54 +09:00
gerrit-server Update Lucene to 5.0.0 2015-03-25 12:21:59 -07:00
gerrit-solr SitePaths: Convert site_path itself to Path 2015-03-03 11:48:05 +09:00
gerrit-sshd Merge changes from topic 'checkstyle-cleanup-2' 2015-03-20 01:01:44 +00:00
gerrit-util-cli Add missing braces around if- for- and while-statements 2015-03-19 12:15:42 +09:00
gerrit-util-http Fix line length warnings 2015-03-19 18:35:04 +09:00
gerrit-util-ssl Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-war Rework intra line diff to interrupt threads instead of killing them 2015-03-23 08:58:44 -04:00
lib Update Lucene to 5.0.0 2015-03-25 12:21:59 -07:00
plugins Make inner classes static where appropriate 2015-03-20 14:27:59 +00:00
ReleaseNotes Merge branch 'stable-2.11' 2015-03-20 10:11:53 +09:00
tools Fix line length warnings 2015-03-19 18:35:04 +09:00
website/releases Releases: Update website to use Cloud Storage v1 API 2014-11-21 12:22:59 -08:00
.buckconfig Build Gerrit in headless mode 2015-03-04 10:59:02 +09:00
.buckversion Update Buck to newest version 2015-03-07 23:03:15 +01:00
.editorconfig Add basic EditorConfig 2015-03-03 07:12:16 +00:00
.gitignore Add buck build soyc to output GWT split point report 2015-01-15 04:40:28 +00:00
.gitmodules Add singleusergroup plugin 2013-11-09 07:45:00 +01:00
.mailmap Update mailmap 2015-01-23 17:56:02 +09:00
.pydevproject Update PyDev project to use Python 2.7 2014-10-02 15:16:44 +09:00
.watchmanconfig Watchman: Add buck-out dir to ignored directories 2014-08-21 07:32:37 +02:00
BUCK Build Gerrit in headless mode 2015-03-04 10:59:02 +09:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
VERSION Set version to 2.10.1 2015-03-13 15:35:33 +01:00