question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Potentially unintended text in search on docs

See original GitHub issue

Prerequisites

Describe the issue

Go to the docs page at: https://getbootstrap.com/docs/5.2/customize/overview/ Press / to open the Algolia search, when searching for Modal what are presumably supposed to be results are displayed as a heading.

image

Reduced test cases

NA

What operating system(s) are you seeing the problem on?

Windows, macOS, Android, iOS, Linux

What browser(s) are you seeing the problem on?

Chrome, Firefox, Microsoft Edge

What version of Bootstrap are you using?

NA

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
WinterSilencecommented, Oct 17, 2022

in search.js:

...
transformItems(items) {
  return items.map(item => {
    item._highlightResult.hierarchy.lvl0.value = '' // Added
    const liveUrl = 'https://getbootstrap.com/'
    ...
  })
}
...
1reaction
julien-deramondcommented, Oct 18, 2022

Yes this syntax could provide a solution:

recordExtractor: ({ $, helpers }) => {
  // Removing DOM elements we don't want to crawl
  $(".modal-title").remove();

  return helpers.docsearch({
    // ...
  });
},
Read more comments on GitHub >

github_iconTop Results From Across the Web

How Google autocomplete predictions work
Learn how to manage trending and past searches. Autocomplete predictions aren't perfect. There's the potential for unexpected or shocking predictions to appear ...
Read more >
Spam Policies for Google Web Search | Documentation
The spam policies detail the behaviors and tactics that can lead to a page or an entire site being ranked lower or completely...
Read more >
Troubleshooting: Google Docs | Paperpile Help Center
The best solution here is to remove the "[Citation error]" text, re-insert the original citation, and re-format your document. An unexpected / Google...
Read more >
How to Delete an Unwanted Page in Google Docs - BetterCloud
Option 1: Just hit Delete ... The first way is going to seem pretty simple, but you'd be surprised how many people don't...
Read more >
How to Delete a Page in Google Docs in 3 Different Ways
Just click and drag your cursor to highlight the unwanted text or images, then press the Backspace or Delete key on your keyboard....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found