@@ -134,7 +134,7 @@ or exact (brute-force) search by using the [approximate query annotation](../ref
134134
135135<pre >
136136{
137- "yql": "select * from doc where {targetHits: 100 , approximate:false}nearestNeighbor(image_embeddings,query_image_embedding)",
137+ "yql": "select * from doc where {totalTargetHits: 10 , approximate:false}nearestNeighbor(image_embeddings,query_image_embedding)",
138138 "hits": 10
139139 "input.query(query_image_embedding)": [0.21,0.12,....],
140140 "ranking.profile": "image_similarity"
@@ -150,9 +150,9 @@ Note that exact searches over a large vector volume require adjustment of the
150150The default [ query timeout] ( ../reference/api/query.html#timeout ) is 500ms,
151151which will be too low for an exact search over many vectors.
152152
153- In addition to [ targetHits ] ( ../reference/querying/yql.html#targethits ) ,
153+ In addition to [ totalTargetHits ] ( ../reference/querying/yql.html#totaltargethits ) ,
154154there is a [ hnsw.exploreAdditionalHits] ( ../reference/querying/yql.html#hnsw-exploreadditionalhits ) parameter
155- which controls how many extra nodes in the graph (in addition to ` targetHits ` )
155+ which controls how many extra nodes in the graph (in addition to ` totalTargetHits ` )
156156that are explored during the graph search. This parameter is used to tune accuracy quality versus query performance.
157157
158158## Combining approximate nearest neighbor search with filters
@@ -174,22 +174,23 @@ Note that when using `pre-filtering` the following query operators are not inclu
174174* [ predicate] ( ../reference/querying/yql.html#predicate )
175175
176176These are instead evaluated after the approximate nearest neighbors are retrieved, more like a ` post-filter ` .
177- This might cause the search to expose fewer hits to ranking than the wanted ` targetHits ` .
177+ This might cause the search to expose fewer hits to ranking than the wanted ` totalTargetHits ` .
178178
179179Since {% include version.html version="8.78" %} the ` pre-filter ` can be evaluated using
180180[ multiple threads per query] ( ../performance/practical-search-performance-guide.html#multithreaded-search-and-ranking ) .
181181This can be used to reduce query latency for larger vector datasets where the cost of evaluating the ` pre-filter ` is significant.
182182Note that searching the ` HNSW ` index is always single-threaded per query.
183183Multithreaded evaluation when using ` post-filtering ` has always been supported,
184- but this is less relevant as the ` HNSW ` index search first reduces the document candidate set based on ` targetHits ` .
184+ but this is less relevant as the ` HNSW ` index search first reduces the document candidate set based on ` totalTargetHits ` .
185185
186186## Nearest Neighbor Search Considerations
187187
188- * ** targetHits** :
189- The [ targetHits] ( ../reference/querying/yql.html#targethits )
190- specifies how many hits one wants to expose to [ ranking] ( ../basics/ranking.html ) * per content node* .
191- Approximate search exposes exactly ` targetHits ` hits to ` first-phase ` ranking on every content node
192- as long as ` targetHits ` hits are actually found and not filtered out afterwards.
188+ * ** totalTargetHits** :
189+ The [ totalTargetHits] ( ../reference/querying/yql.html#totaltargethits ) parameter
190+ specifies how many hits one wants to expose to [ ranking] ( ../basics/ranking.html ) in total over the content nodes
191+ participating in the query (you can also set this per node using [ targetHits] ( ../reference/querying/yql.html#targethits ) ).
192+ Approximate search exposes exactly ` totalTargetHits ` hits to ` first-phase ` ranking over the content nodes
193+ as long as ` totalTargetHits ` hits are actually found and not filtered out.
193194Nearest neighbor search is typically used as an efficient retriever in a [ phased ranking] ( ../ranking/phased-ranking.html )
194195pipeline. See [ performance sizing] ( ../performance/sizing-search.html ) .
195196
0 commit comments