Hi Is it not possible to call org.neo4j.graphdb.index.Index#remove when it's triggered from a beforeCommit event ? I get the following exception:
(The TxData object contains the removed property (removedNodeProperties) that I want lucene to remove from it's index with the remove method.) class org.neo4j.graphdb.NotInTransactionException'; Message: null; StackTrace: org.neo4j.graphdb.NotInTransactionException at org.neo4j.index.impl.lucene.ConnectionBroker.acquireResourceConnection(ConnectionBroker.java:32) at org.neo4j.index.impl.lucene.LuceneIndex.getConnection(LuceneIndex.java:55) at org.neo4j.index.impl.lucene.LuceneIndex.remove(LuceneIndex.java:108) at org.neo4j.kernel.impl.core.TransactionEventsSyncHook.beforeCompletion(TransactionEventsSyncHook.java:76) at org.neo4j.kernel.impl.transaction.TransactionImpl.doBeforeCompletion(TransactionImpl.java:342) at org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:569) at org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:104) at org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:508) I have probably done something stupid. Cheers _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user