Skip to content

Commit 2b9d384

Browse files
committed
leaving a note for future investigation
1 parent 43b1075 commit 2b9d384

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ public Builder(String name, IndexVersion indexCreatedVersion, IndexAnalyzers ind
300300
// storing the field without requiring users to explicitly set 'store'.
301301
//
302302
// If 'store' parameter was explicitly provided we'll reject the request.
303+
304+
/* NOTE: I am fairly sure the above is strictly not true. Testing seems
305+
show that we do not reject the mapping, even when there is no compatible keyword
306+
field and the mapping sets store to false. --MT 2025-06-11
307+
*/
308+
303309
this.store = Parameter.storeParam(
304310
m -> ((TextFieldMapper) m).store,
305311
() -> isSyntheticSourceEnabled && multiFieldsBuilder.hasSyntheticSourceCompatibleKeywordField() == false

0 commit comments

Comments
 (0)