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.

Highlighting matches

See original GitHub issue

I was looking for some guidance on how to get query result highlighting via searchkit.

I found in this README a mention of highlighting and some related code here:

https://github.com/searchkit/searchkit/blob/7e75a6aeb16808123ff8e4a0383f27817140b5bf/packages/searchkit-schema/src/core/SearchkitRequest.ts#L20

but otherwise it seems that highlighting is not supported. Am I right about this? Are there plans for adding it?

In my postProcessRequest function I could add an elastic highlighting request, but the result is not exposed via the GraphQL API.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
joemcelroycommented, May 25, 2021

thanks for highlighting! Yeh it was due to another feature that was added in this release (url search state sync). Just updated with rc32 now with qs as a dependency. Long term shouldn’t need QS if you’re not using the routing HOC 😃

1reaction
joemcelroycommented, May 25, 2021

@beepsoft yep - hopefully today or tomorrow, im working on a few other changes. Need to address documentation and will be releasing soon 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highlighting Search Term Matches - Documentation - MarkLogic
Highlighting Search Term Matches. This chapter describes ways you can use cts:highlight to wrap terms that match a search query with any markup....
Read more >
Highlighting | Elasticsearch Guide [8.5] | Elastic
Highlighters enable you to get highlighted snippets from one or more fields in your search results so you can show users where the...
Read more >
Highlight all search pattern matches | Vim Tips Wiki - Fandom
This tip shows how search highlighting is controlled, and has a method to highlight searches ... To highlight all search matches, set the...
Read more >
A one-line solution to highlighting search matches - bitsofcode
One-line match highlighting. Here's the solution I came up with: const term; // search query we want to highlight in results const results; ......
Read more >
Highlighting of matching code elements - JetBrains Rider
Any opening parenthesis, bracket, brace or quote (altogether called "delimiters") can be highlighted with color or outline whenever you place ...
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