This commit is contained in:
Charles Haley 2011-04-13 18:02:45 +01:00
parent d86cfb826a
commit ad72e89072

View File

@ -129,7 +129,7 @@ class SearchQueryParser(object):
self.optimize = optimize self.optimize = optimize
# Define a token # Define a token
self.standard_locations = locations self.standard_locations = locations
location = Optional(Word(alphas+'#', bodyChars=alphanums)+Suppress(':'), location = Optional(Word(alphas+'#', bodyChars=alphanums+'_')+Suppress(':'),
default='all') default='all')
word_query = CharsNotIn(string.whitespace + '()') word_query = CharsNotIn(string.whitespace + '()')
#quoted_query = Suppress('"')+CharsNotIn('"')+Suppress('"') #quoted_query = Suppress('"')+CharsNotIn('"')+Suppress('"')