Skip to content

Commit

Permalink
escape 5 more solr chars #15
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlujpl committed Jun 23, 2021
1 parent 3f8abf5 commit c120e78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/parserindexer/ads_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@ def escape_solr_chars(text):
'!': r'\!',
'(': r'\(',
')': r'\)',
'{': r'\{',
'}': r'\}',
'[': r'\[',
']': r'\]',
'"': r'\"',
'~': r'\~',
'*': r'\*',
'?': r'\?',
':': r'\:'
':': r'\:',
'/': r'\/'
}

for c, r in escape_rules.items():
Expand Down

0 comments on commit c120e78

Please sign in to comment.