@Override
    public void createIndexes(final String indexName, final String prefix,
                              final List<String> fields) {
        val options = CreateOptions.builder()
            .prefix(prefix)
            .maxTextFields(true)
            .build();
        val createIndex = commands.ftList().parallelStream().noneMatch(idx -> indexName.equalsIgnoreCase(idx.toString()));
        if (createIndex) {
            val indexFields = fields.stream().map(field -> Field.text(field).build()).toList();
            commands.ftCreate(indexName, options, indexFields.toArray(new Field[]{}));
        }
    }
This is {@link LettuceRedisModulesOperations}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-redis-modules/src/main/java/org/apereo/cas/redis/modules/LettuceRedisModulesOperations.java