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

Handling for multi word searches #2400

Merged
merged 1 commit into from Sep 16, 2023
Merged

Handling for multi word searches #2400

merged 1 commit into from Sep 16, 2023

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
4 checks passed
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