I am new to Redissearch-php , i want performs query search on redis with redis search engine (php). i have tried example from this link : http://www.ethanhann.com/redisearch-php/searching/, but its always returning empty array, Please find code example here,
$document = $bookIndex->makeDocument();
$document->title->setValue('How to be awesome.');
$document->author->setValue('Jack');
$document->price->setValue(9.99);
$document->stock->setValue(9);
$bookIndex->add($document);
return $bookIndex->search('How')->getCount();
Can someone tell me, what i am doing wrong here ?