1. Matt Chaput
  2. whoosh

Commits

Matt Chaput  committed 964f650

Sort subqueries in DisMax.__repr__ to stabalize test results.

  • Participants
  • Parent commits 1c4d50c
  • Branches default

Comments (0)

Files changed (1)

File src/whoosh/query/nary.py

View file
  • Ignore whitespace
 
     def __unicode__(self):
         r = u("DisMax(")
-        r += " ".join([text_type(s) for s in self.subqueries])
+        r += " ".join(sorted(text_type(s) for s in self.subqueries))
         r += u(")")
         if self.tiebreak:
             s += u("~") + text_type(self.tiebreak)