Bug when searching for known topic titles

AI-generated summary

A bug has been reported in the search functionality when looking for topics with specific titles in the ‘Non-Public API Deprecations’ category. jordan-violet notes that searching for api/source/discoverSchema in the category does not return results, but adding a leading slash (/api/source/discoverSchema) does. sam explains this is due to PostgreSQL parsing the string as a URL path, which only matches entries like /example/1235. The workaround suggested is to include additional search-friendly text in the post body, though this has drawbacks.

We have a category (public): Non-Public API Deprecations - SailPoint Developer Community

In this category, we have a topic:

with the title of GET /api/source/discoverSchema (exact text, verbatim).

Search will not find the topic (and many others like it) if you do the following:

  • Navigate to the category view: Non-Public API Deprecations - SailPoint Developer Community
  • Click on the search box
  • Click the option below the search box to narrow your search to “in #Non-Public API Deprecations”
  • Search for api/source/discoverSchema
  • “No results found.”
  • Now, if you add a leading slash to that search, so /api/source/discoverSchema search will find something

This is a tough one, its to do with how PG is parsing strings and is not title specific…

It sees the string and treats it as a URL path … so the only entry in search is /example/1235

Only simple workaround I can think of is stuffing a few more words for search into the body of the post.

Changing it so we manually split everything up has other downsides.

For example if I add example/1235 into the post body … it will will now be something you can find.