| When generating the index mapping, the Field.Index is only used to determine the index type:
private String getIndexValue(Field.Index index) {
switch ( index ) {
case ANALYZED:
case ANALYZED_NO_NORMS:
return ANALYZED;
case NOT_ANALYZED:
case NOT_ANALYZED_NO_NORMS:
return NOT_ANALYZED;
case NO:
return "no";
default:
throw new AssertionFailure( "Unexpected index type: " + index );
}
}
But as we can see, the "norms" aspect is being ignored, and ES norm attribute is never populated. The bug is not feature-breaking, but may impact performance. |