gatsby-theme-carbon icon indicating copy to clipboard operation
gatsby-theme-carbon copied to clipboard

Gatsby search

Open joshhus opened this issue 4 years ago • 5 comments

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.

joshhus avatar Jan 28 '21 17:01 joshhus

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:

image

image

joshhus avatar Jan 28 '21 17:01 joshhus

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:

image

image

joshhus avatar Jan 28 '21 17:01 joshhus

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/

image

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

image

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

joshhus avatar Jan 28 '21 17:01 joshhus

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.

kwchan22 avatar Jul 22 '21 16:07 kwchan22

any fix given for same?

rohinivIBM avatar Dec 05 '23 11:12 rohinivIBM