Open twinkarma opened 3 years ago
Include:
I'm leaning towards supporting search syntax (e.g. similar to google or github search, use from:2021-01-1
to search for items starting from that date) instead of creating various different UI widgets for filtering different things.
It would then be possible to string together a relatively complex query like from:2020-01-01 annotation:label1:neutral -annotation:lable2:positive
to find something from 1st Jan 2020 where label 1 is neutral and label 2 is not positive.
What does everyone think?
Basic search and pagination is implemented in #72. Currently on the project page it is searching project name and for documents it's only searching for ID.
After user testing, it'd be good to specify what properties should be searchable which would be useful to the user. Create a separate widget for each type of search/filter, eg. text field for name and date range for created dates.
Searching contents of documents and annotation
Ideally it would be best if we allow the user to search the content of any field inside document and annotation. This should be relatively easy with a simple string field but how best to handle arrays and dictionaries?