Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ or

=== The Boolean Operator "+"

The `+` symbol (also known as the "required" operator) requires that the term after the `+` symbol exist somewhere in a field in at least one document in order for the query to return a match.
The `\+` symbol (also known as the "required" operator) requires that the term after the `+` symbol exist somewhere in a field in at least one document in order for the query to return a match.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting and sending PR to fix! Maybe one more here?

Suggested change
The `\+` symbol (also known as the "required" operator) requires that the term after the `+` symbol exist somewhere in a field in at least one document in order for the query to return a match.
The `\+` symbol (also known as the "required" operator) requires that the term after the `\+` symbol exist somewhere in a field in at least one document in order for the query to return a match.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought so too, but apparently because the sentence ends without another quoted + sign, ASCIIDoc recognizes the second one correctly. Escaping it would also display the escape character together with the + sign. Weird behavior if you ask me.


For example, to search for documents that must contain "jakarta" and that may or may not contain "lucene," use the following query:

Expand Down