sunlightlabs/realtimecongress — Issue #186: Search endpoint for votes
Author: klondike
Created: 2011-12-10 02:28:06+00:00
State: open

Involves adding a voted_on field to make it clear whether a vote is on an amendment, a bill, or "other".

Index most basic fields on the ElasticSearch endpoint, but then include the main bill fields (summary, titles, keywords, full text), and don't show bill text on results. Searchable fields should be bill text, question.

A central function should be made that, for a given vote ID (or, in the case of a voice vote, maybe a hash or a unique set of criteria), will index the vote in ElasticSearch - call this method in both votes_archive, for every vote, and in the House and Senate live vote parsers.