Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

60%
+1 −0
Q&A Tailored previews in search results to show the relevant parts of each post

In search results the title is shown followed by a preview of the post, consisting of the first few lines. I would find it more useful to see the section of the post that contains the search term,...

0 answers  ·  posted 12mo ago by trichoplax‭

#1: Initial revision by user avatar trichoplax‭ · 2023-05-07T04:17:51Z (12 months ago)
Tailored previews in search results to show the relevant parts of each post
In search results the title is shown followed by a preview of the post, consisting of the first few lines.

I would find it more useful to see the section of the post that contains the search term, in order to easily judge the relevance of the result at a glance.

For example, one of the results for a search for "notifications" has a preview that does not contain the word "notifications":

![Search box showing search term "notifications"](https://meta.codidact.com/uploads/lgk69m6ejjca08k4bzyos22wexd2)
![Search result preview that does not contain the word "notifications"](https://meta.codidact.com/uploads/2nt2w545x1ynlp79vlpec4dmi7kx)

The full question text contains the word "notifications" in a later paragraph, which would make a more useful preview when searching:

![Full question showing several occurrences of the word "notifications"](https://meta.codidact.com/uploads/x1zvuqpjmwb6zet93s6zuk04do81)

It would be particularly useful to include multiple excerpts in the preview when search terms appear more than once in the post, and to highlight each search term. It might look something like this:

![Search box showing search term "notifications"](https://meta.codidact.com/uploads/lgk69m6ejjca08k4bzyos22wexd2)
![Hypothetical search result showing all of the occurrences of the word "notifications" highlighted in bold on a yellow background](https://meta.codidact.com/uploads/6jvhonpgs1o6mhs6m69wf5js3m0y)