Relatively straightforward usage of ReferenceSearch causes my AEM log to be populated by the following warnings
org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex This index is deprecated: /oak:index/lucene; it is used for query Filter(query=select [jcr:path], [jcr:score], * from [nt:base] as a where contains.... Please change the query or the index definitions.
Code snippet:
ReferenceSearch referenceSearch = new ReferenceSearch();
referenceSearch.setExact(true);
referenceSearch.setHollow(true);
Map<String, ReferenceSearch.Info> resultMap = referenceSearch.search(resourceResolver,path);
return !resultMap.isEmpty();
Is this behaviour expected? What can I do to remove the warning? Would you recommend I build my own query to look for references? My objective is to find pages that are orphaned (have no references) which I'm doing by search for all cq:Page nodes in repository and then iterating through them and triggering the search using the snippet above.
Thanks