aboutsummaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-03-23 09:59:59 +0000
committerArne Juul <arnej@verizonmedia.com>2021-03-23 10:01:16 +0000
commitb32e5c1838ea79edb8614c9b2dba954f703617f8 (patch)
treee37c75a9fb9f125018c5db208bf97ff74f2b500c /container-search
parent50bec9bb93ec7502313decc1c82fd41efdfac06b (diff)
backend always expects distanceThreshold now
* so no need to set an extra bit signalling that it is sent
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/query/NearestNeighborItem.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/NearestNeighborItem.java b/container-search/src/main/java/com/yahoo/prelude/query/NearestNeighborItem.java
index 3cbdfb74e71..1f4afed451c 100644
--- a/container-search/src/main/java/com/yahoo/prelude/query/NearestNeighborItem.java
+++ b/container-search/src/main/java/com/yahoo/prelude/query/NearestNeighborItem.java
@@ -80,19 +80,10 @@ public class NearestNeighborItem extends SimpleTaggableItem {
putString(field, buffer);
putString(queryTensorName, buffer);
int approxNum = (approximate ? 1 : 0);
- // XXX remove this flag later, after backend change:
- boolean sendDistanceThreshold = true;
- if (sendDistanceThreshold) {
- // XXX and remove this bit:
- approxNum |= 0x40; // temporary flag bit
- }
IntegerCompressor.putCompressedPositiveNumber(targetNumHits, buffer);
IntegerCompressor.putCompressedPositiveNumber(approxNum, buffer);
IntegerCompressor.putCompressedPositiveNumber(hnswExploreAdditionalHits, buffer);
- // XXX and remove this if:
- if (sendDistanceThreshold) {
- buffer.putDouble(distanceThreshold);
- }
+ buffer.putDouble(distanceThreshold);
return 1; // number of encoded stack dump items
}