Upgrade Lucene to version 5.2.1

Versions 5.2.0 [1] and 5.2.1 [2] contain several bugfixes and
optimizations since version 5.1.0.

[1] https://lucene.apache.org/core/5_2_0/changes/Changes.html#v5.2.0.bug_fixes
[2] https://lucene.apache.org/core/5_2_1/changes/Changes.html#v5.2.1.bug_fixes

Change-Id: I1a530ed92c5a3e7845c7aa61f54a26b0ace65e88
This commit is contained in:
David Pursehouse 2015-06-23 14:03:38 +09:00
parent 84dd8e468b
commit 875f46955a
3 changed files with 9 additions and 8 deletions

View File

@ -279,7 +279,8 @@ public class LuceneChangeIndex implements ChangeIndex {
ChangeField.UPDATED.getName(), UninvertingReader.Type.LONG);
return new SearcherFactory() {
@Override
public IndexSearcher newSearcher(IndexReader reader) throws IOException {
public IndexSearcher newSearcher(IndexReader reader, IndexReader previousReader)
throws IOException {
checkState(reader instanceof DirectoryReader,
"expected DirectoryReader, found %s", reader.getClass().getName());
return new IndexSearcher(

View File

@ -187,7 +187,7 @@ final class WrappableSearcherManager extends ReferenceManager<IndexSearcher> {
boolean success = false;
final IndexSearcher searcher;
try {
searcher = searcherFactory.newSearcher(reader);
searcher = searcherFactory.newSearcher(reader, null);
// Modification for Gerrit: Allow searcherFactory to transitively wrap the
// provided reader.
IndexReader unwrapped = searcher.getIndexReader();

View File

@ -1,11 +1,11 @@
include_defs('//lib/maven.defs')
VERSION = '5.1.0'
VERSION = '5.2.1'
maven_jar(
name = 'core',
id = 'org.apache.lucene:lucene-core:' + VERSION,
sha1 = '93e64c67106f9a50e6ea01cfcfd6ac692ab3a41a',
sha1 = 'a175590aa8b04e079eb1a136fd159f9163482ba4',
license = 'Apache2.0',
exclude = [
'META-INF/LICENSE.txt',
@ -16,7 +16,7 @@ maven_jar(
maven_jar(
name = 'analyzers-common',
id = 'org.apache.lucene:lucene-analyzers-common:' + VERSION,
sha1 = '54770d9b792536dff25ae1d70cd8af822c0079a3',
sha1 = '33b7cc17d5a7c939af6fe3f67563f4709926d7f5',
license = 'Apache2.0',
deps = [':core'],
exclude = [
@ -28,7 +28,7 @@ maven_jar(
maven_jar(
name = 'backward-codecs',
id = 'org.apache.lucene:lucene-backward-codecs:' + VERSION,
sha1 = '5f0c5bb10ac3facace6b314bb02a6b572795b3c9',
sha1 = '603d1f06b133449272799d698e5118db65e523ba',
license = 'Apache2.0',
deps = [':core'],
exclude = [
@ -40,7 +40,7 @@ maven_jar(
maven_jar(
name = 'misc',
id = 'org.apache.lucene:lucene-misc:' + VERSION,
sha1 = '3b700fa57f5d444da0e58cc1855042e6c5a18640',
sha1 = 'be0a4f0ac06f0a2fa3689b4bf6cd1fe6847f9969',
license = 'Apache2.0',
deps = [':core'],
exclude = [
@ -52,7 +52,7 @@ maven_jar(
maven_jar(
name = 'queryparser',
id = 'org.apache.lucene:lucene-queryparser:' + VERSION,
sha1 = '53f0b3f0e700a8ec484195d3370688171e830634',
sha1 = '73be0a2d4ab3e6b574be1938bfb27f7f730f0ad9',
license = 'Apache2.0',
deps = [':core'],
exclude = [