-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from opencivicdata/bill-search
add SearchableBill model - experimental full-text-search support
- Loading branch information
Showing
6 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
opencivicdata/legislative/migrations/0009_searchablebill.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 2.0.13 on 2019-06-27 14:32 | ||
|
||
import django.contrib.postgres.search | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('legislative', '0008_longer_event_name'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SearchableBill', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('search_vector', django.contrib.postgres.search.SearchVectorField(default=None)), | ||
('all_titles', models.TextField(default='')), | ||
('raw_text', models.TextField(default='')), | ||
('is_error', models.BooleanField(default=False)), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('bill', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='searchable', to='legislative.Bill')), | ||
('version_link', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='searchable', to='legislative.BillVersionLink')), | ||
], | ||
options={ | ||
'db_table': 'opencivicdata_searchablebill', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
extras_require[":python_version<='2.7'"] = ["backports.csv"] | ||
|
||
setup(name="opencivicdata", | ||
version='2.3.0', | ||
version='2.4.0', | ||
author="James Turk", | ||
author_email='[email protected]', | ||
license="BSD", | ||
|