Skip to content

Commit 736467c

Browse files
DOC-11940 Vector improvements
1 parent f764305 commit 736467c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

modules/howtos/pages/vector-searching-with-sdk.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ If no prefilter is specified, the server executes the vector query on all indexe
148148
.setMatch("primary").setField("color_wheel_pos"))))
149149
----
150150

151+
Note that `numCandidates` sets how many similar vectors are returned.
152+
If it is not set, then the Cluster's default of `3` will be used --
153+
this corresponds with `k` on the Server side, for K-Nearest Neighbors.
154+
151155
The prefilter can be any Search Query --
152156
from a simple match, as above, to a string query:
153157

@@ -182,6 +186,19 @@ include::devguide:example$java/Search.java[tag=vector2,indent=0]
182186

183187
How the results are combined (ANDed or ORed) can be controlled with `vectorSearchOptions().vectorQueryCombination()`.
184188

189+
.Scoring for these hybrid search queries combines the boost multipliers to get to the final score.
190+
----
191+
hit_score = (query_1_boost * query_1_hit_score) + (query_2_boost * query_2_hit_score)
192+
----
193+
194+
195+
=== Query Methods
196+
197+
As part of the Search service, you can use the same xref:full-text-searching-with-sdk.adoc#search-queries[Search query methods] as regular Searches.
198+
See a fuller list, with Vector properties, in the xref:cloud:search:search-request-params.adoc[Capella docs].
199+
200+
201+
185202

186203

187204
////

0 commit comments

Comments
 (0)