Skip to content

Commit def667b

Browse files
committed
Upgrade to Lucene 3.0.3, closes elastic#549.
1 parent 7ec6e00 commit def667b

File tree

5 files changed

+16
-34
lines changed

5 files changed

+16
-34
lines changed

.idea/libraries/lucene.xml

Lines changed: 8 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/plugin-analysis-icu.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/elasticsearch/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ dependencies {
3737

3838
compile('net.java.dev.jna:jna:3.2.7') { transitive = false }
3939

40-
compile 'org.apache.lucene:lucene-core:3.0.2'
41-
compile 'org.apache.lucene:lucene-analyzers:3.0.2'
42-
compile 'org.apache.lucene:lucene-queries:3.0.2'
43-
compile 'org.apache.lucene:lucene-fast-vector-highlighter:3.0.2'
40+
compile 'org.apache.lucene:lucene-core:3.0.3'
41+
compile 'org.apache.lucene:lucene-analyzers:3.0.3'
42+
compile 'org.apache.lucene:lucene-queries:3.0.3'
43+
compile 'org.apache.lucene:lucene-fast-vector-highlighter:3.0.3'
4444

4545
testCompile project(':test-testng')
4646
testCompile('org.testng:testng:5.10:jdk15') { transitive = false }

modules/elasticsearch/src/main/java/org/apache/lucene/search/FieldCacheImpl.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,11 @@ public int hashCode() {
296296
}
297297

298298
// inherit javadocs
299-
300299
public byte[] getBytes(IndexReader reader, String field) throws IOException {
301300
return getBytes(reader, field, null);
302301
}
303302

304303
// inherit javadocs
305-
306304
public byte[] getBytes(IndexReader reader, String field, ByteParser parser)
307305
throws IOException {
308306
return (byte[]) caches.get(Byte.TYPE).get(reader, new Entry(field, parser));
@@ -347,13 +345,11 @@ protected Object createValue(IndexReader reader, Entry entryKey)
347345
;
348346

349347
// inherit javadocs
350-
351348
public short[] getShorts(IndexReader reader, String field) throws IOException {
352349
return getShorts(reader, field, null);
353350
}
354351

355352
// inherit javadocs
356-
357353
public short[] getShorts(IndexReader reader, String field, ShortParser parser)
358354
throws IOException {
359355
return (short[]) caches.get(Short.TYPE).get(reader, new Entry(field, parser));
@@ -398,13 +394,11 @@ protected Object createValue(IndexReader reader, Entry entryKey)
398394
;
399395

400396
// inherit javadocs
401-
402397
public int[] getInts(IndexReader reader, String field) throws IOException {
403398
return getInts(reader, field, null);
404399
}
405400

406401
// inherit javadocs
407-
408402
public int[] getInts(IndexReader reader, String field, IntParser parser)
409403
throws IOException {
410404
return (int[]) caches.get(Integer.TYPE).get(reader, new Entry(field, parser));
@@ -458,14 +452,12 @@ protected Object createValue(IndexReader reader, Entry entryKey)
458452

459453

460454
// inherit javadocs
461-
462455
public float[] getFloats(IndexReader reader, String field)
463456
throws IOException {
464457
return getFloats(reader, field, null);
465458
}
466459

467460
// inherit javadocs
468-
469461
public float[] getFloats(IndexReader reader, String field, FloatParser parser)
470462
throws IOException {
471463

@@ -524,7 +516,6 @@ public long[] getLongs(IndexReader reader, String field) throws IOException {
524516
}
525517

526518
// inherit javadocs
527-
528519
public long[] getLongs(IndexReader reader, String field, FieldCache.LongParser parser)
529520
throws IOException {
530521
return (long[]) caches.get(Long.TYPE).get(reader, new Entry(field, parser));
@@ -576,14 +567,12 @@ protected Object createValue(IndexReader reader, Entry entry)
576567
;
577568

578569
// inherit javadocs
579-
580570
public double[] getDoubles(IndexReader reader, String field)
581571
throws IOException {
582572
return getDoubles(reader, field, null);
583573
}
584574

585575
// inherit javadocs
586-
587576
public double[] getDoubles(IndexReader reader, String field, FieldCache.DoubleParser parser)
588577
throws IOException {
589578
return (double[]) caches.get(Double.TYPE).get(reader, new Entry(field, parser));
@@ -636,7 +625,6 @@ protected Object createValue(IndexReader reader, Entry entryKey)
636625
;
637626

638627
// inherit javadocs
639-
640628
public String[] getStrings(IndexReader reader, String field)
641629
throws IOException {
642630
return (String[]) caches.get(String.class).get(reader, new Entry(field, (Parser) null));
@@ -675,7 +663,6 @@ protected Object createValue(IndexReader reader, Entry entryKey)
675663
;
676664

677665
// inherit javadocs
678-
679666
public StringIndex getStringIndex(IndexReader reader, String field)
680667
throws IOException {
681668
return (StringIndex) caches.get(StringIndex.class).get(reader, new Entry(field, (Parser) null));
@@ -705,7 +692,7 @@ protected Object createValue(IndexReader reader, Entry entryKey)
705692
try {
706693
do {
707694
Term term = termEnum.term();
708-
if (term == null || term.field() != field) break;
695+
if (term == null || term.field() != field || t >= mterms.length) break;
709696

710697
// store term text
711698
mterms[t] = term.text();

plugins/analysis/icu/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ dependencies {
3434

3535
compile('com.ibm.icu:icu4j:4.4') { transitive = false }
3636
distLib('com.ibm.icu:icu4j:4.4') { transitive = false }
37-
compile('org.apache.lucene:lucene-collation:3.0.1') { transitive = false }
38-
distLib('org.apache.lucene:lucene-collation:3.0.1') { transitive = false }
37+
compile('org.apache.lucene:lucene-collation:3.0.3') { transitive = false }
38+
distLib('org.apache.lucene:lucene-collation:3.0.3') { transitive = false }
3939

4040

4141
testCompile project(':test-testng')

0 commit comments

Comments
 (0)