Author: thomasm
Date: Thu Aug 30 12:03:13 2018
New Revision: 1839665
URL: http://svn.apache.org/viewvc?rev=1839665&view=rev
Log:
OAK-5762: Several full-text operators do not work
Modified:
jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/query-engine.md
Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/query-engine.md
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/query-engine.md?rev=1839665&r1=1839664&r2=1839665&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/query-engine.md
(original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/query-engine.md Thu
Aug 30 12:03:13 2018
@@ -307,7 +307,9 @@ The full-text syntax supported by Jackra
By default (that is, using a Lucene index with `compatVersion` 2), Jackrabbit
Oak uses the
[Apache Lucene grammar for fulltext
search](https://lucene.apache.org/core/4_7_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html).
-[See also how to escape
queries.](https://wiki.apache.org/jackrabbit/EncodingAndEscaping)
+[See also how to escape
queries.](https://wiki.apache.org/jackrabbit/EncodingAndEscaping).
+However, the words `AND` and `NOT` are treated as search terms, and only `OR`
is supported as a keyword. Instead of `NOT`, use `-`.
+Instead of `AND`, just write the terms next to each other (instead of `hello
AND world`, just write `hello world`).
For older Lucene indexes (`compatVersion` 1),
the following syntax is supported within `contains` queries.