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:
1 Default filtering: the user enters a character string in the default field ("Rapid search")
2 Advanced search
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.
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?