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.

Result highlighting

See original GitHub issue

Perhaps this is a question, if so I couldn’t find anything in the documentation searching for “highlighting” or “highlight”.

In the awesome auto-complete demo you can type in marblles and it finds ...All the Marbles Screen Shot 2019-06-27 at 12 17 27 AM

What I’d love to be able to do is display:

<div class="search-result">
  ...All the <mark>Marbles</mark>
</div>

If it wasn’t for the smarts within FlexSearch I could achieve this with a simple regex. Or, if the result object from a search could give me the clues (i.e. that the word “Marbles” matched the input “marblles”) then I could use that to do a simple regex.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:25
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
peterbecommented, Oct 21, 2021

I probably found a way to extend the new language processing pipeline to give support for custom “wrap”. At least it would be the best place to apply these logic without storing additional data/marker within the index.

Hi @ts-thomas Now that 0.7.x is out. Is there any news on this front?

You mentioned “custom wrap” but I see no mention of it in the README.

To step back a bit, in the original post of this issue, I mentioned it would be nice to get find out which words, after suggestion-correction, were matched. I.e. I searched for marblles and it matched on Marbles. What about the simpler case. If I searched for SEARCH and a document is matched because it contain this is a search solution. Here it would be nice know that it matched on line 1, column 1-16. Or, if I use the OR operator and someone searched for SEARCH BLABLA it would be nice that SEARCH matched something but BLABLA didn’t.

5reactions
ts-thomascommented, Nov 18, 2019

I probably found a way to extend the new language processing pipeline to give support for custom “wrap”. At least it would be the best place to apply these logic without storing additional data/marker within the index.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highlight Results - Micro Focus
Highlight Results. IDOL Server is able to highlight text in three of its actions. It can highlight: ... document content in the results...
Read more >
How to create highlighted search result excerpts - Whoosh
Highlighting requires that you have the text of the indexed document available. ... You can change the character limit on the results object...
Read more >
Highlight Results on the Model - MATLAB & Simulink
Describes highlighting of analysis results on the model. ... In the Simulink Editor, results highlighting appears on the model. When highlighting is enabled ......
Read more >
Text Highlights (Results) - Qualtrics
The Text Highlights visualization is a graphical representation of the data collected from the Highlight question type. It colors each word in the ......
Read more >
Highlight Find Results - Documentation for Visual Assist
Highlight Find Results. Highlight all of the results of an IDE Find command—in text editors and output windows. Press Esc to clear the...
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