I'm having trouble getting a working lucene fulltext index with oak 1.1.6. Have posted to the user ml, but with little response, so am hoping to be excused by posting here.
My repository is configured with the following setup and InitialContext impl. Still, I am getting no results when using a simple query such as select * from [nt:base] where contains(*,'torgeir') . I am looking very hard, but there's absolutely no java code examples for configuring lucene indexing anywhere that I can compare my setup with, can someone share some simple code for how to do this? NodeBuilder index = IndexUtils.getOrCreateOakIndex(builder); index.child("lucene") .setProperty("jcr:primaryType", "oak:QueryIndexDefinition", Type.NAME) .setProperty("compatVersion", "2") .setProperty("type", "lucene") .setProperty("async", "async") .setProperty("reindex", true) .child("indexRules") .setProperty("jcr:primaryType", "nt:unstructured", Type.NAME) .child("nt:base") .setProperty("jcr:primaryType", "nt:unstructured", Type.NAME) .child("properties") .setProperty("jcr:primaryType", "nt:unstructured", Type.NAME) .child("allProps") .setProperty("jcr:primaryType", "nt:unstructured", Type.NAME) .setProperty("name", ".*") .setProperty("isRegExp", true) .setProperty("nodeScopeIndex", true); SegmentStore segmentStore = new FileStore(new File(oakRepositoryPath), 256); NodeStore nodeStore = new SegmentNodeStore(segmentStore); Oak oak = new Oak(nodeStore); LuceneIndexProvider provider = new LuceneIndexProvider(); Repository oakRepository = new Jcr(oak) .with(new LocalInitialContent()) .with((QueryIndexProvider) provider) .with((Observer) provider) .with(new LuceneIndexEditorProvider()) .with(new LuceneInitializerHelper("lucene", (Set<String>) null)) .withAsyncIndexing() .createRepository(); I am getting log messages like 21:58:51,075 WARN lucene.IndexDefinition.collectIndexRules() - line 505 [0:0:0:0:0:0:0:1] - IndexRule node does not have orderable children in [Lucene Index : genericlucene(/oak:index/lucene)] 21:58:51,076 WARN lucene.IndexDefinition$IndexingRule.collectPropConfigs() - line 730 [0:0:0:0:0:0:0:1] - Properties node for [IndexRule: nt:base] does not have orderable children in [Lucene Index : genericlucene(/oak:index/lucene)] even though the indexes are configured with nt:unstructured node types. -- -Tor