> <span class="k">new</span> <span class="nx">Index</span><span class="p">(</span><span class="nv">$redis</span><span class="p">);</span>

<span class="nv">$bookIndex</span><span class="o">-&gt;</span><span class="na">addTextField</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">)</span>
    <span class="o">-&gt;</span><span class="na">addTextField</span><span class="p">(</span><span class="s1">&#39;author&#39;</span><span class="p">)</span>
    <span class="o">-&gt;</spa