Hi has bucket sizes been implimented in TS yet? My...
# community-help
p
Hi has bucket sizes been implimented in TS yet? My company sorts by text match, vector_distance, and the a custom rank score. Our problem is that text match often is too continuous. Buckets (amount of buckets) doesn't work for us. We need to be able to adjust the amount of docs in each bucket, not the amount of buckets. Has bucket size been implemented in any RC's yet? I've seen some chatter about it, but it's unclear whether bucket sizes has been implimented.
k
Yes, we recently merged this feature. It's available in
28.0.rc31
Usage:
Copy code
_text_match(bucket_size: 3)
p
Great. What range does it support? Does it stop after top-n docs?
k
Yes, same as earlier: 250 docs
p
Perfect.
How does it handle tied hits? What e.g. there are 5 docs with the same score and
_text_match(bucket_size: 3)
? Do they still get divided or will all with the same score go in the same bucket?
k
Next sorting field value is used for tie breaking.
p
I see. Thanks.
👍 1