Union search questions Hi Typesense community. I h...
# community-help
h
Union search questions Hi Typesense community. I have some questions about Union search. 1. Does bucketing work with Union and how does that affect the ordering of the two searches when "joining" the results ? We bucket on _text_match in one of the searches and use filter_by in the other 2. if there is duplicates, and the a records has two different _text_matches (if it's possible) - which one is used ? First occurrence ?
a
Hey Henrik, 1. Each search gets it's own results buckets independently and when union combines everything, it just ranks by raw score (no re-bucketing). 2. The one with the best score wins. If score is the same, the result from the earlier search is preferred. Deduplication is on by default (remove_duplicates:true)
🙏 1