Skip to content

Rebuilding the Indices

Peter Stokes edited this page Sep 10, 2016 · 1 revision

In order to see your data in the search forms and faceted browsing pages, you first need to rebuild the indices. This can take some time, so it is recommended that you do it only after you have entered a block of data.

To do this, you need to enter two commands into the DigiPal command line. If you are running DigiPal from a web server then you should ask your system administrator to do this (or to set it up as a chron job). If you are running it from Docker/Kitematic, then this is the procedure:

  1. Open a terminal window inside your running container. If you are using Kitematic then you do this by clicking on the 'Exec' icon for your container; otherwise you may need to use Docker Machine or SSH.

  2. Enter the following two commands:

    python manage.py dpsearch index_facets
    python manage.py dpsearch index
    
  3. Type Ctrl-D (or exit + RETURN), then close your Terminal window.

  4. Restart the web server (in Kitematic click on 'Restart').

Clone this wiki locally