n><span class="na">addNumericField</span><span class="p">(</span><span class="s1">&#39;price&#39;</span><span class="p">)</span>
    <span class="o">-&gt;</span><span class="na">addNumericField</span><span class="p">(</span><span class="s1">&#39;stock&#39;</span><span class="p">)</span>
    <span class="o">-&gt;</span><span class="na">create</span><span class="p">();</span>
</pre></div>

<h2 id="add-a-document">Add a Document<a class="headerlink" href="#add-a-document" title="Permanent link">&para;</a></h2>