Proposal: Search Feeds

Status

Proposed

Target Release

4.0

Original Authors

Elias Torres

Abstract

This is a proposal to add support in roller for Atom feeds on search results.

Requirements

Our users will be able to subscribe to feeds of their search results and be notified whenever new results are found.

Issues

  • Comment searches might not be supported yet.
  • There is some overlap (code that will be copied) between SearchResultsFeedModel and/or SearchResultsFeedPager because of their use of maps vs list for returning results.

Design

I propose a new URL patter for Roller: /handle/feeds/search/atom?q=term

  • Modify WeblogFeedRequest.java to support the query and page parameter.
  • Modify FeedServlet.java to support new feed type, locate the appropriate velocity template and load the correct model.
  • Add a new velocity template for searches, name weblog-search-atom.vm
  • Add a new SearchResultsFeedModel.java that implements Model similar to SearchResults, but doesn't extend PageModel since it doesn't require standard HTML weblog templates.
  • Add a new SearchResultsFeedPager.java that extends AbstractPager for paging of search results.
  • Add auto-discovery links to HTML search results so we can have browsers auto detect feeds on them.

Comments

Comments are welcome!

  • No labels