You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by sv...@apache.org on 2023/01/05 15:22:39 UTC

svn commit: r1081899 [3/3] - in /sites/solr/guide: search-index.js sitemap.xml solr/latest/query-guide/dense-vector-search.html

Modified: sites/solr/guide/solr/latest/query-guide/dense-vector-search.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/latest/query-guide/dense-vector-search.html?rev=1081899&r1=1081898&r2=1081899&view=diff
==============================================================================
--- sites/solr/guide/solr/latest/query-guide/dense-vector-search.html (original)
+++ sites/solr/guide/solr/latest/query-guide/dense-vector-search.html Thu Jan  5 15:22:38 2023
@@ -1566,6 +1566,17 @@ client.add(Arrays.asList(d1, d2));</code
 <div class="paragraph">
 <p>The results are prefiltered by the fq=id:(1 2 3) and then only the documents from this subset are considered as candidates for the topK knn retrieval.</p>
 </div>
+<div class="paragraph">
+<p>If you want to run some of the filter queries as post-filters you can follow the standard approach for post-filtering in Apache Solr, using the cache and cost local parameters.</p>
+</div>
+<div class="paragraph">
+<p>e.g.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-text hljs" data-lang="text">&amp;q={!knn f=vector topK=10}[1.0, 2.0, 3.0, 4.0]&amp;fq={!frange cache=false l=0.99}$q</code></pre>
+</div>
+</div>
 </td>
 </tr>
 </table>