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

Search: any vs all keywords #586

Open
cmsavage opened this issue Sep 28, 2023 · 0 comments
Open

Search: any vs all keywords #586

cmsavage opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cmsavage
Copy link

cmsavage commented Sep 28, 2023

The Search Construction component (and possibly others) allows for searching on multiple keywords. The descriptions suggest that constructions with any of the keywords will be returned, and the use of a function called any_keyword_in_string suggests that is the intent. However, that function actually uses the python all() function instead of any():

return all(kw in name for kw in keywords)

The result is that searching on multiple keywords tends to return no results instead of more results.

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

No branches or pull requests

3 participants