Skip to content

WIP: Replace regex characters in fuzzy match#15

Open
jbuckner wants to merge 1 commit intomainfrom
clean-non-exact-matches
Open

WIP: Replace regex characters in fuzzy match#15
jbuckner wants to merge 1 commit intomainfrom
clean-non-exact-matches

Conversation

@jbuckner
Copy link
Copy Markdown
Owner

@jbuckner jbuckner commented Jul 12, 2021

When we do a fuzzy match, ie venue:(foo fest [bar stage]) we need to remove any regex characters from the string or else the search engine throws a regex error. We will now replace the [ and ] with "[" and "]". The final query string will be venue:(foo fest "["bar stage"]").

When we do a fuzzy match with parentheses, ie `venue:(*brooklyn bowl*)` we need to remove any regex characters from the string or else the search engine throws a regex error. So if we have a search like `venue:(boop[foo])` we will now replace the [] with "[" and "]"
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 12, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.97%. Comparing base (04d1c66) to head (c0f071d).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   97.90%   97.97%   +0.07%     
==========================================
  Files          10       10              
  Lines         381      395      +14     
==========================================
+ Hits          373      387      +14     
  Misses          8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jbuckner jbuckner changed the title Replace regex characters in fuzzy match WIP: Replace regex characters in fuzzy match Jul 12, 2021
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.

1 participant