Find Your UCM Search Active Index in Java

September 17, 2009

Out on the Oracle ECM Forums a question came up about how to find out which index is currently active (from Java). It's quite simple really. Just use the getActiveProperty method of the ActiveIndexState class.

Like so: String activeIndexRoot = ActiveIndexState.getActiveProperty("ActiveIndex"); To see this in action grab this Sample Component to Find Your UCM Search Active Index.

© 2020 Jason Stortz (version 20200322-120514)