Skip to content

Search: any vs all keywords #586

@cmsavage

Description

@cmsavage

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions