 class="hl-1"> [</span><span class="hl-4">&#39;title&#39;</span><span class="hl-1">, </span><span class="hl-4">&#39;category&#39;</span><span class="hl-1">] </span><span class="hl-2">// fields to return with search results</span><br/><span class="hl-1">})</span><br/><br/><span class="hl-2">// Index all documents</span><br/><span class="hl-0">miniSearch</span><span class="hl-1">.</span><span class="hl-7">addAll</span><span class="hl-1">(</span><span class="hl-0">documents</span><span class="hl-1">)</span><br