indexes

Build a customized index widget

By vineet

 

Indexes help you create fun widgets to keep track of the coverage that topics of your interest are getting. The Index Creator in our labs section helps your create an index widget in few minutes with upto 12 topics/queries that you care about.

However, if you want an index widget with more customizations, you can use our News Indexer code to generate the data files for such a widget. Some examples of these customizations could be a an index with

  • more than 12 items (for e.g., CNNMoney's Meme-o-meter Index) OR
  • restrict the results to a particular set of sources (for e.g. Cruisedex restricts the results to travel sources only) OR
  • build an index with different durations to compare (for e.g. last month/this month index)

Remember, this code lets you generate the XML data files for an index widget. You will have to then build the UI for the widget that consumes this XML.