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

Add conditional wildcard queries for object searches #2280

Closed

Conversation

tylerbarna
Copy link
Member

@tylerbarna tylerbarna commented May 16, 2024

Description

If a user submits a query that consists of what could be an object identifier (eg 230919a), the search function will automatically add wildcard characters to the query and submit a wildcard search. This is done by using a regex. If the regex is true, it strips out the alphabetical characters on either side of the string and then inititates a wildcard search. This wildcard search does not occur if the query does not match the regex.

Related Issue(s)

Resolves #2281

Testing

Test added functionality:

  • Navigate to circulars archive
  • Initiate a search for some object identifier, like 230919a
  • Results should now show any circulars where the object identifier is in the subject
  • Compare this to current search, where same query will not return results

Test standard query:

  • Navigate to circulars archive
  • Initiate a search that the regex should evaluate as falsey
  • Compare the results to the current search, it should be the same

if a user submits a query that consists of what could be an object identifier (eg `230919a`), the search function will automatically add wildcard characters to the query and submit a wildcard search. This is done by using a regex. If the regex is true, it strips out the alphabetical characters on either side of the string and then inititates a wildcard search. This wildcard search does not occur if the query does not match the regex.
@tylerbarna
Copy link
Member Author

Made redundant by planned implementation of lucene style queries in #2288

@tylerbarna tylerbarna closed this May 20, 2024
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 ability to search for specific event identifiers
1 participant