Creating Search Indexes » History » Version 1
  Luke Murphey, 06/11/2019 05:00 PM 
  
| 1 | 1 | Luke Murphey | h1. Creating Search Indexes  | 
|---|---|---|---|
| 2 | 1 | Luke Murphey | |
| 3 | 1 | Luke Murphey | The search functionality will not work until the search indexes are created. These take a long time to create and also take a lot of disk space (which is why I don't include them in the Docker image). See below for how to create the indexes.  | 
| 4 | 1 | Luke Murphey | |
| 5 | 1 | Luke Murphey | h2. Creating them in the UI (for each work)  | 
| 6 | 1 | Luke Murphey | |
| 7 | 1 | Luke Murphey | # Start by logging into the administration UI (i.e. http://127.0.0.1:8080/admin/). The username and password for the Docker image is admin/changeme.  | 
| 8 | 1 | Luke Murphey | # Select "Works"  | 
| 9 | 1 | Luke Murphey | # Select the work you want to create the search indexes for  | 
| 10 | 1 | Luke Murphey | # Click the action dropdown at the bottom of the page and select "Make search indexes"  | 
| 11 | 1 | Luke Murphey | |
| 12 | 1 | Luke Murphey | The process make take a while, especially for large works.  | 
| 13 | 1 | Luke Murphey | |
| 14 | 1 | Luke Murphey | !making_indexes.gif!  | 
| 15 | 1 | Luke Murphey | |
| 16 | 1 | Luke Murphey | h2. Creating them from the command-line (and for all works)  | 
| 17 | 1 | Luke Murphey | |
| 18 | 1 | Luke Murphey | You can also create the search indexes from the command-line. You can do this to create indexes for all works. This will take a great deal of time (like all night).  | 
| 19 | 1 | Luke Murphey | |
| 20 | 1 | Luke Murphey | To do this, go to where the code for the project is stored and run the make_search_indexes command:  | 
| 21 | 1 | Luke Murphey | |
| 22 | 1 | Luke Murphey | <pre>  | 
| 23 | 1 | Luke Murphey | python manage.py make_search_indexes -c  | 
| 24 | 1 | Luke Murphey | </pre>  |