You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
raises
scorched.exc.SolrError: <Response [400]>
The text was updated successfully, but these errors were encountered: