@Test void getMatchedWord() { assertEquals( "blood", explainServiceHelper.getMatchedWord( "weight(label:blood in 20697) [PerFieldSimilarity], result of:")); assertEquals( "blood", explainServiceHelper.getMatchedWord( "weight(label:blood^0.5 in 20697) [PerFieldSimilarity], result of:")); }
String getMatchedWord(String description) { Matcher matcher = REGEXR_PATTERN.matcher(description); if (matcher.find()) { return matcher.group(1); } throw new MolgenisDataAccessException("Failed to find matched word in : " + description); }
ExplainServiceHelper { String getMatchedWord(String description) { Matcher matcher = REGEXR_PATTERN.matcher(description); if (matcher.find()) { return matcher.group(1); } throw new MolgenisDataAccessException("Failed to find matched word in : " + description); } }
ExplainServiceHelper { String getMatchedWord(String description) { Matcher matcher = REGEXR_PATTERN.matcher(description); if (matcher.find()) { return matcher.group(1); } throw new MolgenisDataAccessException("Failed to find matched word in : " + description); }  }
ExplainServiceHelper { String getMatchedWord(String description) { Matcher matcher = REGEXR_PATTERN.matcher(description); if (matcher.find()) { return matcher.group(1); } throw new MolgenisDataAccessException("Failed to find matched word in : " + description); }   }
ExplainServiceHelper { String getMatchedWord(String description) { Matcher matcher = REGEXR_PATTERN.matcher(description); if (matcher.find()) { return matcher.group(1); } throw new MolgenisDataAccessException("Failed to find matched word in : " + description); }    }