Skip to content

Commit 3b530c9

Browse files
authored
Merge pull request #4171 from gchq/gh-4169-idx-term-positions
PR for #4169 - 7.3 Corrupting Index Shards
2 parents def50f8 + 1f696e7 commit 3b530c9

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Diff for: stroom-core-shared/src/main/java/stroom/index/shared/LuceneIndexField.java

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public static LuceneIndexField fromIndexField(final IndexField indexField) {
101101
.indexed(indexField.isIndexed())
102102
.stored(indexField.isStored())
103103
.caseSensitive(indexField.isCaseSensitive())
104+
.termPositions(indexField.isTermPositions())
104105
.build();
105106
}
106107

Diff for: unreleased_changes/20240320_121301_971__4169.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
* Issue **#4169** : Fix index field `Positions` setting not being passed through to Lucene resulting in corrupt shards.
2+
3+
4+
```sh
5+
# ********************************************************************************
6+
# Issue title: 7.3 Corrupting Index Shards
7+
# Issue link: https://github.com/gchq/stroom/issues/4169
8+
# ********************************************************************************
9+
10+
# ONLY the top line will be included as a change entry in the CHANGELOG.
11+
# The entry should be in GitHub flavour markdown and should be written on a SINGLE
12+
# line with no hard breaks. You can have multiple change files for a single GitHub issue.
13+
# The entry should be written in the imperative mood, i.e. 'Fix nasty bug' rather than
14+
# 'Fixed nasty bug'.
15+
#
16+
# Examples of acceptable entries are:
17+
#
18+
#
19+
# * Issue **123** : Fix bug with an associated GitHub issue in this repository
20+
#
21+
# * Issue **namespace/other-repo#456** : Fix bug with an associated GitHub issue in another repository
22+
#
23+
# * Fix bug with no associated GitHub issue.
24+
```

0 commit comments

Comments
 (0)