Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended Search: Combine filter queries with operators such as AND, OR and NOT #4981

Closed
m-kotzyba opened this issue Feb 10, 2022 · 2 comments · Fixed by #5370
Closed

Extended Search: Combine filter queries with operators such as AND, OR and NOT #4981

m-kotzyba opened this issue Feb 10, 2022 · 2 comments · Fixed by #5370
Assignees

Comments

@m-kotzyba
Copy link
Collaborator

It would be very helpful, to combine queries with an operator such as OR.

Scenario: Find all Tasks that are in Step “Export” independent of the status but not “closed”;
Possible filter query: "stepopen: Export" OR "stepinwork: Export" (… maybe combined with a project-condition)

@thomaslow
Copy link
Collaborator

Hi Michael, assuming that the above push request is included in Kitodo, you would be able to write the following filter to search for Export-tasks of the project Example which are currently either in the open or in-work state:

"stepopen:Export | stepinwork:Export" "project:Example"

which translates to the boolean expression

"((stepopen:Export) OR (stepinwork:Export)) AND (project:Example)"

Please note that the project-filter is currently not implemented as a pattern search (meaning the query xampl will not match a project with the title Example). You can only filter for complete words or the entire project title, but no partial words (in contrast to the implementation of the generic search via the top search bar).

@m-kotzyba
Copy link
Collaborator Author

Hi Thomas, thanks for the implementation. As soon as the new feature is included in one of the next releases, we will use it.

Regarding the xampl note above: This is fine because the Extended Search menu includes the full project name anyway and than we have just to add the 2nd OR-condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants