Skip to content

Instantly share code, notes, and snippets.

Indexing 14162 ingredients.
Indexing 1735 recipes.
real 1m45.115s
user 1m18.182s
sys 0m2.621s
@gurglet
gurglet / gist:1605883
Created January 13, 2012 12:30
Konstigt fel
ubuntu@web:/var/sites/kostplaneraren/kostplaneraren$ python manage.py celeryd
/usr/local/lib/python2.7/dist-packages/celery/decorators.py:33: CDeprecationWarning:
The `celery.decorators` module and the magic keyword arguments
are pending deprecation and will be deprecated in 2.4, then removed
in 3.0.
`task.request` should be used instead of magic keyword arguments,
and `celery.task.task` used instead of `celery.decorators.task`.
See the 2.2 Changelog for more information.
diff --git a/kostplaneraren/recipe/search_indexes.py b/kostplaneraren/recipe/search_indexes.py
index 7f336e7..376c6eb 100644
--- a/kostplaneraren/recipe/search_indexes.py
+++ b/kostplaneraren/recipe/search_indexes.py
@@ -17,6 +17,11 @@ class RecipeIndex(SearchIndex):
#pre rendered version
rendered = CharField(use_template=True, indexed=False)
+ # Sort by name
+ name_s = CharField()