}
}
private void createTextIndex(MappedField mf, Class<?> indexedClass, String field) {
SimpleTextIndex txtIndex = mf.getAnnotation(SimpleTextIndex.class);
TextIndexCommand cmd = new TextIndexCommand();
cmd.setName(field);
if (!txtIndex.name().isEmpty()) {
cmd.setName(txtIndex.name());
}
cmd.setDefaultLanguage(txtIndex.defaultLanguage());
List<String> fields = new ArrayList();
fields.add(field);
cmd.setFields(fields);
createTextIndex(indexedClass, cmd);
}