Skip to content

Commit 2ab5aec

Browse files
committed
Fix test data to fit within bounds
1 parent 8913177 commit 2ab5aec

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ protected void merge(FieldMapper mergeWith, Conflicts conflicts, MapperMergeCont
254254
inferenceFieldBuilder = c -> mergedInferenceField;
255255
}
256256

257-
@SuppressWarnings("unchecked")
258257
@Override
259258
public SemanticTextFieldMapper build(MapperBuilderContext context) {
260259
if (useLegacyFormat && copyTo.copyToFields().isEmpty() == false) {
@@ -315,7 +314,6 @@ private void validateServiceSettings(MinimalServiceSettings settings) {
315314
* @param mapper The mapper
316315
* @return A mapper with the copied settings applied
317316
*/
318-
@SuppressWarnings("unchecked")
319317
private SemanticTextFieldMapper copySettings(SemanticTextFieldMapper mapper, MapperMergeContext mapperMergeContext) {
320318
SemanticTextFieldMapper returnedMapper = mapper;
321319
if (mapper.fieldType().getModelSettings() == null) {

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public static ChunkingSettings generateRandomChunkingSettings() {
293293
return null; // Use model defaults
294294
}
295295
return randomBoolean()
296-
? new WordBoundaryChunkingSettings(randomIntBetween(20, 100), randomIntBetween(0, 50))
296+
? new WordBoundaryChunkingSettings(randomIntBetween(20, 100), randomIntBetween(0, 10))
297297
: new SentenceBoundaryChunkingSettings(randomIntBetween(20, 100), randomIntBetween(0, 1));
298298
}
299299

0 commit comments

Comments
 (0)