How to Build Search Index - TACC/Core-CMS Wiki

Site search requires an index of content available to search.

Requirements

Notice: Copied from Core-Portal/wiki: How to Build Search Index. May be overkill for a standalone CMS.

  • At least one page in CMS (see above).
  • At least 15% of free disk space.
  • For Mac/Windows
    • At least 4GB of RAM allocated to Docker (see Docker Desktop > Preferences > Resources > Advanced).
  • For Linux (Locally)
    • Run sudo sysctl -w vm.max_map_count=2146999999 (The minimum required by ES is 262144 but it doesn't seem to work).
    • Run sudo sysctl -w vm.overcommit_memory=1.
    • Run sudo sysctl -p (In order to persist in /etc/sysctl.conf).

Steps

CMS

  1. Completely shut down all of your containers and restart them.

  2. Login to docker shell:

    docker exec -it core_cms /bin/bash
    
  3. Index all searchable content:

    python manage.py rebuild_index
    

Portal

See Core-Portal/wiki: How to Build Search Index.

Reference

⚠️ **GitHub.com Fallback** ⚠️