Open upman opened 8 years ago
I was able to fix this with a little change to strings.py
def get_wildcards(self, s):
backslash = False
i = 0
chars = []
for c in s:
if backslash:
backslash = False
chars.append(c)
continue
i += 1
if c == u'\\':
backslash = True
elif c == u'*':
chars.append(self.Asterisk())
elif c == u'?':
chars.append(self.QuestionMark())
elif c == ' ':
###
### Escape the spaces explicitly
###
chars.append('\\ ')
else:
chars.append(c)
if backslash:
chars.append(u'\\')
return chars
Don't think this is a good fix though. I think the other special characters '+-&|!(){}[]^"~: \t\v\/' have to be escaped as well?
+1
raises
scorched.exc.SolrError: <Response [400]>