Thanks Clay for putting this together. Current documentation is not good for standalone usage as quite a bit of logic of configuring Oak is based on OSGi. Due to that using Oak as is in standalone environment is tricky
The oak-pojosr [1] was intended to enable use of Oak with all its OSGi based config in non OSGi env like say war deployment. Need to get some time to finish it and adopt the standalone web example to use that Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-pojosr On Sun, Aug 2, 2015 at 11:26 PM, Clay Ferguson <[email protected]> wrote: > Fellow Jackrabbits, > > I discovered it was a *huge* effort and there is a *huge* lack in the > examples related to simply getting MongoDb up and running (as JCR) with > Lucene indexes getting properly used. Since this effort took me 2 solid days > and there are no great examples that come up via google i'm sharing my > example: > > This code creates a Full Text Search on jcr:content, and an sorting > capability on jcr:lastModified: > > https://github.com/Clay-Ferguson/meta64/blob/master/src/main/java/com/meta64/mobile/repo/OakRepository.java > > I also just updated meta64 project to be using the 1.0.18 branch of the > Jackrabbit code, so it's all up to date stuff. I would highly recommend > adding this or a similar example right onto the Lucene page of the Oak docs, > because what I'm doing is exactly what everyone else wants, and the > documentation itself is just completely confusing and mind boggling without > a real example. > > Cheers, and happy jackrabbiting. > > Best regards, > Clay Ferguson > [email protected] > meta64.com >
