Bill text/title search fails when using digits

Description

Virginia's legislative search returns this for a text search for "interstate 73," among other results:
http://lis.virginia.gov/cgi-bin/legp604.exe?141+sum+HJ38

But Openstates returns not found:
http://openstates.org/all/bills/?abbr=va&search_text=interstate+route+73
(Same results for interstate 73, honest)

It looks like if digits are anywhere in the search string then only bill IDs turn up:
https://github.com/sunlightlabs/billy/blob/a80ce1033f0c9632c0368670b7fbc877f2e6c60e/billy/web/public/views/region.py#L124
https://github.com/sunlightlabs/billy/blob/a80ce1033f0c9632c0368670b7fbc877f2e6c60e/billy/models/bills.py#L545

Status

Assignee

Andy Lo

Reporter

Miles Watkins

Components

Priority

Normal