eulerto / pg_similarity

set of functions and operators for executing similarity queries
BSD 3-Clause "New" or "Revised" License
363 stars 38 forks source link

New feature: compare array of ids #40

Open GrzegorzDrozd opened 1 year ago

GrzegorzDrozd commented 1 year ago

Hi,

Can you implement feature that would allow to test similarity between two sets of integers? For example to compare tags of two objects?

select pg_similarity.jaccard_threshold(0.7); select * from objects where tags ARRAY[1,2,3,4]

As far as I understand Jaccard Coefficient is used for similarity between sets of numbers?

Thank you and have a nice day.