daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

order_by() does not change results ordering #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
My Indexer class:
class ActionIndexer(Indexer):
    fields = [('get_fullname', 4), 'lead', 'descr', 'rules']
    tags = [('is_active', 'is_active'),]    
space.add_index(Action, ActionIndexer, attach_as='indexer')

Searching:
results1 = Action.indexer.search(q).order_by("is_active") or
results2 = Action.indexer.search(q).order_by("-is_active") or
results3 = Action.indexer.search(q)

Results 1, 2 and 3 have the same ordering.

---
Djapian-2.3.1, xapian 1.0.16

Original issue reported on code.google.com by d.aki...@gmail.com on 8 Jul 2011 at 10:08