MacFJA / php-redisearch

PHP Client for RediSearch
MIT License
66 stars 9 forks source link

set [withNoContent] error #10

Closed zjttfs closed 2 years ago

zjttfs commented 3 years ago

success

$search = new \MacFJA\RediSearch\Search($client);

        $results = $search
            ->withIndex('video')
            ->withQuery('骑士')
            ->withLanguage('chinese')
            ->search();
        print_r($results);

retrun:

5

error

$search = new \MacFJA\RediSearch\Search($client); $results = $search ->withIndex('video') ->withQuery('骑士') ->withLanguage('chinese') ->withNoContent() //add ->search();

return:

assert(): assert(is_array($rawData)) failed

file : \vendor\macfja\redisearch\src\Search.php line: 454

MacFJA commented 3 years ago

Hi,

Yes, this issue is the same than #9 I will work on it this week

Thanks for the detailed report

MacFJA commented 3 years ago

@zjttfs Can you check is you still have the issue with dev-master ?