Commit 148604b9 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added partial match searching and info to readme

parent e4326d2f
......@@ -128,6 +128,10 @@ Finally, run `python manage.py createsuperuser` to create an admin account, usin
The project includes a number of json files with demo data to load into the database, for Majors and also for all freshman housing. Run `python manage.py loaddata accounts/major_fixtures.json`. You'll see output saying 'Installed 79 objects from 1 fixture(s) if all goes smoothly. Follow this with `python manage.py loaddata housing/initial_data.json` and a sizeable number of housing objects should be 'installed'.
## Starting search
To start off indexing your models for searching, run `python manage.py update_index`.
## Starting up the test server
With your virtual environment active, run
......
......@@ -8,7 +8,7 @@ class StudentIndex(indexes.SearchIndex, indexes.Indexable):
# search results
# there can BE ONLY ONE document=True per model
text = indexes.CharField(document=True, use_template=True)
text = indexes.EdgeNgramField(document=True, use_template=True)
# the use_template is in the app directory, just a text file
# with the fields that we want to display when returning results
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment