拼写检查在 AEM 6.1 中不起作用,即使在创建建议的索引(如 --
https://docs.adobe.com/docs/en/aem/6-1/deploy/platform/queries-and-indexing.html 和
https://jackrabbit.apache.org/oak/docs/query/lucene.html
根据文档,自 1.1.17 和 1.0.13 版本以来,OAK 中已经实现了拼写检查。我的 OAK 版本是 1.22,所以它应该可以工作。AEM 版本是 6.1.0.20150507
创建了一个索引,例如-
/oak:index/lucene-spellcheck
- jcr:primaryType = "oak:QueryIndexDefinition"
- compatVersion = 2
- type = "lucene"
- async = "async"
+ indexRules
- jcr:primaryType = "nt:unstructured"
+ nt:base
+ properties
- jcr:primaryType = "nt:unstructured"
+ jcr:title
- propertyIndex = true
- analyzed = true
- useInSpellcheck = true
当我使用 CRX-DE 的查询工具以及使用 jsp 中的查询管理器运行此查询时,我得到零结果。
SELECT [rep:spellcheck()] FROM nt:base WHERE [jcr:path] = '/content/abc' AND SPELLCHECK('tetspage')
(“testpage”是一个页面;拼错为“tetspage”)
如文档中所述运行此查询
SELECT [rep:spellcheck()] FROM nt:base WHERE [jcr:path] = '/' AND SPELLCHECK('jackrabit')
返回单个节点。
我做错什么了吗?这个索引在任何人的 AEM 6.1 中都有效吗?