Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Add an initial Postgres backend for search #82

Merged
merged 9 commits into from
Aug 10, 2017
Merged

Add an initial Postgres backend for search #82

merged 9 commits into from
Aug 10, 2017

Commits on Aug 10, 2017

  1. Add script to rebuild Postgres index.

    CM Lubinski committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    5398b93 View commit details
    Browse the repository at this point in the history
  2. 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 committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    363265c View commit details
    Browse the repository at this point in the history
  3. Add setup for regcore_pgsql testing.

    CM Lubinski committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    79d8ae0 View commit details
    Browse the repository at this point in the history
  4. 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 committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    0b093cf View commit details
    Browse the repository at this point in the history
  5. 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 committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    7e8c4c3 View commit details
    Browse the repository at this point in the history
  6. Document using Postgres as a search backend.

    CM Lubinski committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    0e917fa View commit details
    Browse the repository at this point in the history
  7. 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 committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    4fc24b4 View commit details
    Browse the repository at this point in the history
  8. Rebuild docs.

    CM Lubinski committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    c7845d9 View commit details
    Browse the repository at this point in the history
  9. Bump version to 4.0.0.

    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 committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    485ecad View commit details
    Browse the repository at this point in the history