UBC's own search engine 🚀
Please see CONTRIBUTING for guidelines on how to contribute to this repo.
Getting Started: Docker, Django, Django Documentation, Apache Solr, Haystack
- Clone this repository and the Sleuth frontend into the same directory
- Install Docker
- Run
$ docker-compose up --build- Once containers have started you can
execintobashin yourwebcontainer and configure a Django admin user.
$ docker-compose exec web bash
# Create Django admin user
root@57d91373cdca:/home/sleuth# python3 manage.py createsuperuser- To access your Solr admin interface, go to http://localhost:8983/solr.
- To query a core with the name "test", go to http://localhost:8983/solr/#/test/query.
- The base url for your Django instance should be http://localhost:8000.
- To access the Django admin interface make sure you have completed the steps listed above and to go http://localhost:8000/admin.
- To test the backend API, go to http://localhost:8000/api/[ENDPOINT]/?[PARAMS]
- Go to http://localhost:8080
The Sleuth front-end repository is here
Once you have started your containers you can populate the "test" core in Solr with some test data by running
$ bash scripts/populate.shFor live data, you can currently run the BroadCrawler, which scrapes a few thousand pages and pipelines them into the appropriate cores based on their type.
$ bash sleuth_crawler/run_crawlers.shTo empty a core, go to:
http://localhost:8983/solr/[CORE_NAME_HERE]/update?stream.body=<delete><query>*:*</query></delete>&commit=true