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.
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.