Skip to content

Commit

Permalink
Fix Operator expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
stevennic committed Oct 1, 2019
1 parent f846e4a commit 0b8f8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/parsing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ words for the AND, OR, ANDNOT, ANDMAYBE, and NOT functions::

parser = qparser.QueryParser("content", schema=myschema)
# These are regular expressions, so we have to escape the vertical bar
op = qparser.OperatorsPlugin(And="&", Or="\\|", AndNot="&!", AndMaybe="&~", Not="\\-")
op = qparser.OperatorsPlugin(And="&", Or="\|", AndNot="&!", AndMaybe="&~", Not="-")
parser.replace_plugin(op)


Expand Down

0 comments on commit 0b8f8a6

Please sign in to comment.