Result highlighting
See original GitHub issuePerhaps 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
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:
- Created 4 years ago
- Reactions:25
- Comments:14 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 onMarbles
. What about the simpler case. If I searched forSEARCH
and a document is matched because it containthis 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 forSEARCH BLABLA
it would be nice thatSEARCH
matched something butBLABLA
didn’t.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.