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

issue:#1229 Add multi-keyword search #1377

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

FriteSansSel
Copy link

Added Multi-Keyword Search Capability

Support for multi-keyword search:
The search in command cli.py has been updated to accept a list of search terms
(SEARCH_STRINGS) instead of a single term (SEARCH_STRING). This allows users
to search for events matching one or more specified keywords.

Key Changes:

Replaced search_string argument:
The single search_string argument has been replaced with search_strings,
enabling variable-length keyword input (nargs=-1).
Each search term is processed in a loop, and matching results are added to a
unified set of events.

Consolidation of search results:
Events matching each keyword are combined using a set (all_events) to eliminate
duplicates.
A new event_set is introduced to ensure that events with identical descriptions
are displayed only once.
The final results are sorted and displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant