Which version of AEM are you using? I tried this search in my OOTB instance and was able to see result. Screenshot attached -
Also, you can use AEM query builder API (host:port/libs/cq/search/content/querydebug.html) to search from JCR. You will get the result in JSON format.
1. Could you please check LastIndexedTime time from JMX console ./system/console/jmx --> IndexStats (This shows that when was last time index got updated).
It should not be stale.
2. Also, try getting Debug level log on below index APIs -
while you search. It will give a clear picture on what might be causing this.
If nothing helps, feel free to open Daycare ticket 🙂
I am logged in.
I have this error -
*ERROR* [sling-default-5-HourlySnapshotJob] org.apache.jackrabbit.oak.plugins.index.lucene.BadIndexTracker Could not access the Lucene index at [/oak:index/lucene]