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.

Add option to pieces and pages to specify search summary

See original GitHub issue

The searchSummary property on items in the search page index can be very unreadable. There is an option to set silent: true on fields to exclude them (as I understand this), but in many cases it would be easier to specify a single field to be used for the search summary.

Describe the solution you’d like Add the ability to set searchSummary: true on a field schema to use that field as the search summary for the respective piece or page type. If an area gets this property set, the plain text version of that area would be used. Only one field could be set this way, since unintended field order could defeat the intended purpose.

Describe alternatives you’ve considered It seems that setting silent: true on all the other fields is the current alternative.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
abeacommented, Sep 24, 2019

I think this could make searchSummary more of a first-class citizen. My thought is that one could make the search index very complex, with conditionals for the different document types to show various fields (I’ve done this and it gets ugly fast), or keep that simple with this property set in the schema.

0reactions
stale[bot]commented, Jun 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does Google Pick Search Snippets for Your Pages to ...
A user browses such summaries and typically selects a link associated with a summary that best matches the search criteria to view the...
Read more >
How to change my Google Search result snippet? - YouTube
Key moments. View all · add relevant titles and descriptions · add relevant titles and descriptions · add relevant titles and descriptions.
Read more >
Up Close With Google Search Options
The first set of choices allows you to filter the results to show specific type of content: Videos; Reviews; Forums; Books (New); News...
Read more >
Create reusable text snippets - Microsoft Support
Add reusable text snippets to your document automatically using AutoText. ... Go to File > Options > Proofing, and select AutoCorrect Options.
Read more >
In-Depth Guide to How Google Search Works | Documentation
In fact, the vast majority of pages listed in our results aren't manually submitted for inclusion, but are found and added automatically when...
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