Hi Torgeir,

By default the Lucene index would be updated every 5 sec. So are you
performing query immediately after adding the content? If thats the
case you can remove setting "async" property at least for your
testcase to get Lucene index triggered immediately after commit

> 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

You can create the index definition via JCR API. Basically the
orderable children are detected via presence of ':childOrder' hidden
property. When you set a nodetype to nt:unstructured then oak-jcr
would set this property automatically to record the ordering. However
if you do it via NodeStore API then that has to be done manually.

Chetan Mehrotra

Reply via email to