platform-coop-toolkit / coop-library-framework

Custom Post Type utilities for the Platform Co-op Resource Library.
https://platform.coop
Other
0 stars 2 forks source link

Search with special characters does not return a result #357

Closed greatislander closed 4 years ago

greatislander commented 4 years ago

Describe the bug

Searching for "Up&Go" does not return the relevant resource (titled "Case Study: Up&Go").

To Reproduce

Steps to reproduce the behavior:

  1. Enter "Up&Go" as the search query.
  2. Perform a search.
  3. No results are returned.

Expected behavior

The resource with matching title should be shown.

Additional Context

This only appears to occur with this particular string which suggests that the issue is related to the ampersand in the text.

greatislander commented 4 years ago

Further investigation has revealed that this issue is with Relevanssi.

I tested as follows:

  1. Created a new, vanilla WordPress site.
  2. Created a post called 'Case Study: Up&Go'.
  3. Searched for 'Up&Go' (the post was returned as a result as expected).
  4. Installed and activated Relevanssi, and built an index.
  5. Searched for 'Up&Go'. No results were returned.

I tried adjusting some settings, but with no luck. Instead I decided to switch to WP Extended Search, which has comparable features and does not exhibit this behaviour.