List<MorphResult> morphQueryTestResult = new ArrayList<MorphResult>();
Map<String, List<MorphResult>> morphTestResultSet = new HashMap<String, List<MorphResult>>();
for(MorphToken token : resultTokenListIndexingMode) {
MorphResult morphResult = new MorphResult();
morphResult.setWord(token.getTerm());
morphResult.setType(token.getType());
morphResult.setStartOffset(token.getStartOffset());
morphResult.setEndOffset(token.getEndOffset());
morphIndexingTestResult.add(morphResult);
}
for(MorphToken token : resultTokenListQueryMode) {
MorphResult morphResult = new MorphResult();
morphResult.setWord(token.getTerm());
morphResult.setType(token.getType());
morphResult.setStartOffset(token.getStartOffset());
morphResult.setEndOffset(token.getEndOffset());
morphQueryTestResult.add(morphResult);
}
morphTestResultSet.put("indexResult", morphIndexingTestResult);