@Override
    public Stream<Map<String, String>> search(final String searchIndexName, final String query) {
        val results = (SearchResults<String, Document>) commands.ftSearch(searchIndexName, query);
        return results
            .parallelStream()
            .map(Document.class::cast)
            .filter(document -> !document.isEmpty())
            .map(LinkedHashMap.class::cast);
    }
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