ss="na">connect</span><span class="p">(</span><span class="s1">&#39;127.0.0.1&#39;</span><span class="p">,</span> <span class="mi">6379</span><span class="p">);</span>
</pre></div>

<h2 id="create-the-schema">Create the Schema<a class="headerlink" href="#create-the-schema" title="Permanent link">&para;</a></h2>
<div class="codehilite"><pre><span></span><span class="k">use</span> <span class="nx">Ehann\RediSearch\Index</span><span class="p">;</span>

<span class="nv">$bookIndex</span> <span class="o">=</span