populse / populse_mia

Multiparametric Image Analysis
Other
0 stars 0 forks source link

[DataBrowser] updating document filtering in the data browser #1

Open servoz opened 1 month ago

servoz commented 1 month ago

While working on populse/populse_db#98 ticket, we noticed that filtering visible documents in the data browser doesn't really give the expected result.

One of the fixes proposed in the populse_db ticket (filtering the query to keep only certain types - mainly string like - ) doesn't give the expected result, but in any case without this fix the results already don't correspond to what we might want ...

The corresponding codes are a bit old and it may be time to refresh them!

The first question is what we expect from this filtering?

There are several types of filtering, 2 in fact:

For -1, it seems to me that if the user enters 12, for example, the filtering should return all documents with a tag containing 12, whatever the type of tag, for example : 12 (int), "12" (str) and more complex structures like [12] or ["12"], or {"12" : "12"} or {"12":12} or 20:12:04 (date), etc ...

For -2 things are clearer because the search is much more restricted, even if the problem of the data type remains.

Perhaps I've forgotten something?