gatsby-theme-carbon
gatsby-theme-carbon copied to clipboard
Gatsby search
Our Gatsby build search fails basic user expectations. Details and examples below. Please advise on patch or other update that we need to do to fix.
Test case on BTS base docs build. --https://transparentsupply.ibm.com/ift/help/ Type "appli" in search bar, it returns the Configure applications page. Type "applications" and it does not:


Another test case: https://transparentsupply.ibm.com/playbook/
Type in search bar "Billing" ... "Bill" returns Billing model link as expected, but then continuing with the "ing" hides it.
Type in "What is" to return What is included page ... results toggle on and off as you type -- What i" returns the correct page, but "What is" does not. See screens:


Search on "data subscription" -- doesn't return that page (also tried "data subscription" with quotes, data + subscription and data and subscription):
https://transparentsupply.ibm.com/ift/help/

Expected to return data subscription method page: https://transparentsupply.ibm.com/ift/help/building-apps/app-support-data-subscription

Search fails on punctuation characters. e.g. finds "http" results but no "http:" results ...

Any update on this issue? I think it's the wildcard added to the Lunr search in GlobalSearch.js.
Example at https://gatsby-theme-carbon.vercel.app:
window.__LUNR__.en.index.search('communicate*') doesn't return any results but window.LUNR.en.index.search('communicate') does.
any fix given for same?