Commits

Diego Búrigo Zacarão  committed 7de8b56

Limit the number of words to avoid exceeding the maximum number of clauses of Sorl

  • Participants
  • Parent commits a54dd44

Comments (0)

Files changed (1)

File transifex/txcommon/haystack_utils.py

     # alternatives for it.
     if string:
         return reduce(operator.__or__, 
-            [SQ(text=Raw('"%s~"' % w)) for w in string.split()])
+            [SQ(text=Raw('"%s~"' % w)) for w in string.split()[:1000]])
     else:
         return SQ(text='""')