jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.37k stars 355 forks source link

Provide a way to search for correspondent/type/tag (+bulk edit) ? #356

Closed Philmo67 closed 3 years ago

Philmo67 commented 3 years ago

Now that I have a lot of documents integrated to Paperless-ng, I have several pages of correspondents, document types and tags. It seems useful to me to be able to search/filter in these 3 screens. In addition, it could even be interesting to use what has been done for bulk editing documents but applied to all the documents of selected correspondents/document types/tags. For example, if you are a customer of several banks ("bank xxx", "bank yyy", "bank zzz"), this would allow you to assign the tag "finance" to all the documents of the correspondents you would have searched for by the keyword "bank", omitting none of them.

jonaswinkler commented 3 years ago

Regarding filtering for tags, types and correspondents, that sounds useful.

Regarding bulk edit: Unless I'm missing something, doing the following actions should already support this?

Philmo67 commented 3 years ago

Yes, so maybe allowing to select multiple correspondents or document types in the bulk edit screen could do the trick

shamoon commented 3 years ago

Yes, so maybe allowing to select multiple correspondents or document types in the bulk edit screen could do the trick

Hmm @jonaswinkler so trying to interpret, this sounds like having ability to OR instead of AND in filter editor? Interesting thought, would have to brainstorm about UI / solution, wouldn’t want it to make things overly-complicated. Also API would need to accommodate but that’d be straightforward. Overall would still be a big task and at the moment this is already achievable you just have to do in separate batches so sort of debating value/cost...

jonaswinkler commented 3 years ago

However:

Name filtering is in.

shamoon commented 3 years ago

I agree that would be confusing. That’s kinda what I meant, I think we’d have to add a way for the user to be able to specify if it’s AND vs OR for tags if we chose to do this and yea doc/corresp would always be OR...

shamoon commented 3 years ago

Maybe just a checkbox / select within the tags drop down (“ALL” or “ANY”) but again more to it than that

Philmo67 commented 3 years ago

perhaps providing 2 "checkable" columns (meaning ALL ANY) instead of 1 in front of the tags dropdown ? use different symbols (on multiple clicks) ? + x ✓ (even - for "not" logic ? :-) )

shamoon commented 3 years ago

Was thinking more like:

Screen Shot 2021-01-19 at 9 11 36 PM

But again, more considerations to implementing than just the UI.

shamoon commented 3 years ago

@jonaswinkler I have a branch for this, hopefully ready for you to look at soon