Skip to content

Conversation

@schiem
Copy link

@schiem schiem commented Sep 15, 2023

Split searches on space and wraps each part in a wildcard. This replaces the current current behavior of wrapping the entire search query in a wildcard.

Current behavior:

  • "create" becomes "*create*"
    
  • "create item" becomes "*create item*"
    

New behavior:

  • "create" becomes "*create*"
    
  • "create item" becomes "*create* *item*"
    

Resolves #2399

Split searches on space and wraps each part in a wildcard.  This replaces
the current current behavior of wrapping the entire search query in a wildcard.

Current behavior:
    * "create" becomes "*create*"
    * "create item" becomes "*create item*"

New behavior:
    * "create" becomes "*create*"
    * "create item" becomes "*create* *item*"
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Sep 16, 2023

Seems reasonable, thanks!

@Gerrit0 Gerrit0 merged commit f2d2abe into TypeStrong:master Sep 16, 2023
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.

Add wildcards to each word in a multi-word search

2 participants