comparison MoinMoin/action/fullsearch.py @ 5829:a744f573fe30

advancedsearch: fix problem with non-ascii chars breaking up words for OR and NOT terms
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 Feb 2012 16:52:24 +0100
parents a488e4332862
children 570e430cd08c
comparison
equal deleted inserted replaced
5828:c4ff300ad284 5829:a744f573fe30
139 'recognized and is therefore not considered for the ' 139 'recognized and is therefore not considered for the '
140 'search results!', wiki=True) 140 'search results!', wiki=True)
141 else: 141 else:
142 mtime_msg = None 142 mtime_msg = None
143 143
144 word_re = re.compile(r'(\"[\w\s]+"|\w+)') 144 word_re = re.compile(r'(\"[\w\s]+"|\w+)', re.UNICODE)
145 needle = '' 145 needle = ''
146 if categories[0]: 146 if categories[0]:
147 needle += 'category:%s ' % ','.join(categories) 147 needle += 'category:%s ' % ','.join(categories)
148 if language[0]: 148 if language[0]:
149 needle += 'language:%s ' % ','.join(language) 149 needle += 'language:%s ' % ','.join(language)