You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2018/04/27 12:28:11 UTC

svn commit: r1830339 - /jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/query-engine.md

Author: thomasm
Date: Fri Apr 27 12:28:11 2018
New Revision: 1830339

URL: http://svn.apache.org/viewvc?rev=1830339&view=rev
Log:
OAK-7437 SimpleExcerptProvider highlighting should be case insensitive

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=1830339&r1=1830338&r2=1830339&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 Fri Apr 27 12:28:11 2018
@@ -351,7 +351,7 @@ The excerpt is then read using the JCR A
 
 Since Oak version 1.10 (OAK-7151), optionally a property name can be specified in the query:
 
-    /jcr:root/content//*[jcr:contains(., 'test')]/(rep:excerpt(@jcr:title) | rep:excerpt())
+    /jcr:root/content//*[jcr:contains(., 'test')]/(rep:excerpt(@jcr:title) | rep:excerpt(.))
 
 The excerpt for the title is then read using `row.getValue("rep:excerpt(@title)")`,
 and the excerpt for the node using (as before) `row.getValue("rep:excerpt(.)")`.
@@ -359,10 +359,10 @@ and the excerpt for the node using (as b
 #### SimpleExcerptProvider
 
 The SimpleExcerptProvider is a fallback mechanism for excerpts and highlighting. 
-This mechanism has many limitations, and is generally is not recommended.
-The SimpleExcerptProvider ignores the index configuration,
-and specially highlighting is very limited 
-(stopwords are ignored, and highlighting is case sensitive).
+This mechanism has limitations, and should only be used if really needed.
+The SimpleExcerptProvider is independent of the index configuration.
+Highlighting is limited, for example stopwords are ignored.
+Highlighting is case insensitive since Oak versions 1.2.30, 1.4.22, 1.6.12, 1.8.3, and 1.10 (OAK-7437).
 
 The SimpleExcerptProvider is used when reading an excerpt 
 if the query doesn't contain an excerpt property, as in: