Skip to content

Commit 1317e2d

Browse files
docs: remove javadocs, method is self-explanatory
1 parent 85f00a4 commit 1317e2d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -449,27 +449,6 @@ && shouldUseDocValuesSparseIndex(hasDocValues.getValue(), indexSortConfig, index
449449
return new FieldType(Defaults.FIELD_TYPE);
450450
}
451451

452-
/**
453-
* Determines whether to use a sparse doc values index for the {@code host.name} field.
454-
*
455-
* <p>The sparse doc values index is used if all the following conditions are met:</p>
456-
*
457-
* <ul>
458-
* <li>Doc values are enabled for the field.</li>
459-
* <li>The index mode is {@link IndexMode#LOGSDB}.</li>
460-
* <li>The field being checked is {@code host.name}.</li>
461-
* <li>The {@code host.name} field is included in the index sort configuration.</li>
462-
* </ul>
463-
*
464-
* <p>If all conditions are met, the method returns {@code true}, indicating that the sparse
465-
* doc values index should be used. Otherwise, it returns {@code false}.</p>
466-
*
467-
* @param hasDocValues Whether doc values are enabled for the field.
468-
* @param indexSortConfig The index sort configuration, used to check if {@code host.name} is a sort field.
469-
* @param indexMode The mode of the index, which must be {@link IndexMode#LOGSDB} for sparse doc values indexing.
470-
* @param fullFieldName The name of the field being checked, which must be {@code host.name}.
471-
* @return {@code true} if the sparse doc values index should be used, otherwise {@code false}.
472-
*/
473452
private static boolean shouldUseDocValuesSparseIndex(
474453
final boolean hasDocValues,
475454
final IndexSortConfig indexSortConfig,

0 commit comments

Comments
 (0)