Skip to content

Commit

Permalink
Update to Apache Lucene 9.11.0-snapshot-4be6531 (opensearch-project#1…
Browse files Browse the repository at this point in the history
…3850)

Signed-off-by: Navneet Verma <[email protected]>
  • Loading branch information
navneet1v authored May 28, 2024
1 parent 994bfae commit 45360db
Show file tree
Hide file tree
Showing 50 changed files with 40 additions and 27 deletions.
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opensearch = 3.0.0
lucene = 9.11.0-snapshot-fb97840
lucene = 9.11.0-snapshot-4be6531

bundled_jdk_vendor = adoptium
bundled_jdk = 21.0.3+9
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3c2361bd633374ae3814b175cc25ccf773f67026

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8752daf173a642ae02e081cc0398f2ce59278200

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12630ff9c56e2a372ba57f519c579ff9e728208a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
752bfc61c7829be6c27d9c1764250196e2c6b06b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5ca56d42b24498a226cf91f48b94e010b6af5fe2

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8eb59a89aa8984457798ccffb8e97e5351bebc1f

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
851c1bd99eaef368e84335853dd448e4f56cdbc8

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
63647085d41ae231733580c20a498ce7c9134ce5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a3ba7dd03b1df9efed08eb544689d51d2be22aa5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9cc4e600289bf1171b47de74536bd34c476f85a8

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8babfe85be7e36c893741e08072c11e71db09715

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3c2361bd633374ae3814b175cc25ccf773f67026

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d9f29b49cd1e0a061ff7fa4a53e8605bd49bd3d0

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
33bc26d46d62bb1cf3bf725db637226a43db7625

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
82966698abdb8f0367a162f642560566a6085dc8

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
746f392e7ec27a7cd6ca2add7dd8441d2a6085da

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0eb06ecc39c0ec0db380a6e5aad1b16907e0bfd9

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0e56eb18cceffcd5ce2e47b679e873420254df74

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dee3997a72eeae905e92930f53e724b6bef279da

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
946bc45b87b3d770ab6828b0d0a5f8684f2c3624

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d73667f61fb5e7fde4cec52fcfbbfd9847068aec

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a8e8ab80bfb6abd70932e50fe31e13ecf2e00987

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
45d6f0facd45d4e49585f0dabfa62ed5a1883033

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
class CustomFieldHighlighter extends FieldHighlighter {
private static final Passage[] EMPTY_PASSAGE = new Passage[0];

private static final Comparator<Passage> DEFAULT_PASSAGE_SORT_COMPARATOR = Comparator.comparingInt(Passage::getStartOffset);

private final Locale breakIteratorLocale;
private final int noMatchSize;
private String fieldValue;
Expand All @@ -66,7 +68,16 @@ class CustomFieldHighlighter extends FieldHighlighter {
PassageFormatter passageFormatter,
int noMatchSize
) {
super(field, fieldOffsetStrategy, breakIterator, passageScorer, maxPassages, maxNoHighlightPassages, passageFormatter);
super(
field,
fieldOffsetStrategy,
breakIterator,
passageScorer,
maxPassages,
maxNoHighlightPassages,
passageFormatter,
DEFAULT_PASSAGE_SORT_COMPARATOR
);
this.breakIteratorLocale = breakIteratorLocale;
this.noMatchSize = noMatchSize;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private static BoundaryScanner getBoundaryScanner(Field field) {
return DEFAULT_WORD_BOUNDARY_SCANNER;
case CHARS:
if (fieldOptions.boundaryMaxScan() != SimpleBoundaryScanner.DEFAULT_MAX_SCAN
|| fieldOptions.boundaryChars() != SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS) {
|| fieldOptions.boundaryChars() != HighlightBuilder.DEFAULT_BOUNDARY_CHARS) {
return new SimpleBoundaryScanner(fieldOptions.boundaryMaxScan(), fieldOptions.boundaryChars());
}
return DEFAULT_SIMPLE_BOUNDARY_SCANNER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public class HighlightBuilder extends AbstractHighlighterBuilder<HighlightBuilde
/** the default closing tags when {@code tag_schema = "styled"} */
public static final String[] DEFAULT_STYLED_POST_TAGS = { "</em>" };

static final Character[] DEFAULT_BOUNDARY_CHARS = HighlightBuilder.convertCharArray(SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS);

/**
* a {@link FieldOptions} with default settings
*/
Expand All @@ -124,7 +126,7 @@ public class HighlightBuilder extends AbstractHighlighterBuilder<HighlightBuilde
.numberOfFragments(DEFAULT_NUMBER_OF_FRAGMENTS)
.encoder(DEFAULT_ENCODER)
.boundaryMaxScan(SimpleBoundaryScanner.DEFAULT_MAX_SCAN)
.boundaryChars(SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS)
.boundaryChars(DEFAULT_BOUNDARY_CHARS)
.boundaryScannerLocale(Locale.ROOT)
.noMatchSize(DEFAULT_NO_MATCH_SIZE)
.phraseLimit(DEFAULT_PHRASE_LIMIT)
Expand Down

0 comments on commit 45360db

Please sign in to comment.