scijava / scijava-search

Search framework for SciJava applications :mag:
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Improve forum search result details #3

Closed frauzufall closed 6 years ago

frauzufall commented 6 years ago

This is a minimal change removing duplicate information in the details section of a forum search result.

Maybe details could be used to show an excerpt of the page as we do for Wiki searches, but I think the current amount of information is sufficient as well.

imagejan commented 6 years ago

LGTM.

The Created and Last posted timestamps in the extraProps are formatted to show the date only. Maybe we can enhance them in the future to have some "intelligent" format depending on current time, i.e. to show 5m ago, 10h ago, 1d ago etc. similar to how times are shown on the forum itself. (This doesn't block merging of this PR though.)

Maybe details could be used to show an excerpt of the page as we do for Wiki searches

Agreed. We could use the OpenGraph metadata (in particular the og:description tag) for this (it would make sense for both wiki and forum). See also this forum discussion.