This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Add an initial Postgres backend for search #82
Merged
Commits on Aug 10, 2017
-
Add script to rebuild Postgres index.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 5398b93 - Browse repository at this point
Copy the full SHA 5398b93View commit details -
Add initial Postgres-backed search.
Given a user's search request, we need to query Postgres' vector-based search index. With the results, we then need to convert to the JSON format users of the endpoint expect.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 363265c - Browse repository at this point
Copy the full SHA 363265cView commit details -
Add setup for regcore_pgsql testing.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 79d8ae0 - Browse repository at this point
Copy the full SHA 79d8ae0View commit details -
Store "doc_root" redundantly for ease of querying.
When users search, they provide a document id ("regulation") and a version. We had not been able to filter by thus document id as that data's not a separate field. While it may make more sense to store this with the documents, in the short term, we can store it in the search index.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 0b093cf - Browse repository at this point
Copy the full SHA 0b093cfView commit details -
Add first round of regcore_pgsql tests.
Also adds model_mommy for mocking data, which, in turn, requires the contenttypes app be included.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 7e8c4c3 - Browse repository at this point
Copy the full SHA 7e8c4c3View commit details -
Document using Postgres as a search backend.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 0e917fa - Browse repository at this point
Copy the full SHA 0e917faView commit details -
Don't run regcore_pgsql tests in every env.
The pgsql tests require `regcore_pgsql` be one of the installed apps. As we don't have that configuration in each test environment (at least, at the moment), specify which packages to test based on whether or not pgsql is part of the environment.
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 4fc24b4 - Browse repository at this point
Copy the full SHA 4fc24b4View commit details -
CM Lubinski committed
Aug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for c7845d9 - Browse repository at this point
Copy the full SHA c7845d9View commit details -
Breaking Changes * #79 "django.contrib.contenttypes" is now included in library's base settings. If copying these over, you'll need to deduplicate. New Features * #79 Allow search handler to be defined via `SEARCH_HANDLER` setting * #83 Allow search results page size to be requested * #82 Add Postgres backend for search. See README for details. Misc * #77 Allow ALLOWED_HOSTS to be set via env vars * #78 Use webargs library for checking search input * #80 Test different backends in different tox envs * #81 Remove QuantifiedCode badge
CM Lubinski committedAug 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 485ecad - Browse repository at this point
Copy the full SHA 485ecadView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.