src/main/java/io/redisearch/client/Client.java
@Override
    public SearchResult search(Query q, boolean decode) {
        ArrayList<byte[]> args = new ArrayList<>(4);
        args.add(this.endocdedIndexName);
        q.serializeRedisArgs(args);

        try (Jedis conn = connection()) {
            List<Object> resp =
                    sendCommand(conn, commands.getSearchCommand(),
                            args.toArray(new byte[args.size()][])).getObjectMultiBulkReply();
            return new SearchResult(resp, !q.getNoContent(), q.getWithScores(), q.getWithPayloads(), decode);
        }
    }
/**
     * Search the index
     *
     * @param q a {@link Query} object with the query string and optional parameters
     * @param decode <code>false</code> - keeps the fields value as byte[] 
     * 
     * @return a {@link SearchResult} object with the results
     */
Search the index
@param q a  Query object with the query string and optional parameters
@param decode false - keeps the fields value as byte[]

@return a  SearchResult object with the results
Search the index @param q a Query object with the query string and optional parameters @param decode false - keeps the fields value as byte [] @return a SearchResult object with the results
@Override
    public SearchResult search(Query q, boolean decode) {
        ArrayList<byte[]> args = new ArrayList<>(4);
        args.add(this.endocdedIndexName);
        q.serializeRedisArgs(args);
        try (Jedis conn = connection()) {
            List<Object> resp =
                    sendCommand(conn, commands.getSearchCommand(),
                            args.toArray(new byte[args.size()][])).getObjectMultiBulkReply();
            return new SearchResult(resp, !q.getNoContent(), q.getWithScores(), q.getWithPayloads(), decode);
        }
    }
@ Override public SearchResult search ( Query q , boolean decode ) { ArrayList < byte [ ] > args = new ArrayList < > ( 4 ) ; args . add ( this . endocdedIndexName ) ; q . serializeRedisArgs ( args ) ; try ( Jedis conn = connection ( ) ) { List < Object > resp = sendCommand ( conn , commands . getSearchCommand ( ) , args . toArray ( new byte [ args . size ( ) ] [ ] ) ) . getObjectMultiBulkReply ( ) ; return new SearchResult ( resp , ! q . getNoContent ( ) , q . getWithScores ( ) , q . getWithPayloads ( ) , decode ) ; } }
Search the index
 @param q a {@link Query} object with the query string and optional parameters
 @param decode <code>false</code> - keeps the fields value as byte[]
Search the index @param q a { @link Query } object with the query string and optional parameters @param decode <code > false< / code > - keeps the fields value as byte []