explain the custom score . whenever overriding #customscore int , float , float , this method should also be overridden to provide the correct explanation for the part of the custom scoring . concode_field_sep LeafReaderContext context concode_field_sep float customScore concode_elem_sep float customScore
Explanation function ( int arg0 , Explanation arg1 , Explanation arg2 ) { float loc0 = 1 ; if ( arg2 != null ) { loc0 *= arg2 . getValue ( ) ; } return Explanation . match ( loc0 * arg1 . getValue ( ) , "srini_string" , arg1 , arg2 ) ; }