MIT-LCP / physionet-build

The new PhysioNet platform.
https://physionet.org/
BSD 3-Clause "New" or "Revised" License
55 stars 20 forks source link

Search is duplicating content #663

Open lbulgarelli opened 5 years ago

lbulgarelli commented 5 years ago

The search is currently duplicating content if a keyword is contained more than once on one of the fields we use for filtering.

A simple distinct() would solve the problem, but it is returning an error for some reason.

I don't know when this started happening but it does not seem to be affecting production somehow.

bemoody commented 5 years ago

"challenge" returns demobsn once

"eicu" returns demoeicu three times

"database" returns demoeicu three times and demobsn once

So is there something strange about the demoeicu project?

elfeto commented 4 years ago

This seems fixed. Maybe #779 ?

bemoody commented 4 years ago

No, it's not fixed. For me, http://localhost:8000/content/?topic=eicu returns the same result three times.

elfeto commented 4 years ago

Maybe is database related, for example https://physionet.org/content/?topic=eicu returns only one.