mutating Cypher queries and auto-indexing

81 views
Skip to first unread message

brian

unread,
Oct 8, 2012, 12:56:46 PM10/8/12
to ne...@googlegroups.com
Hello,

I just wanted to confirm that my understanding is correct.  Is it true that mutating Cypher queries do not affect auto-indexes?  For example, if I create/delete a Node via a Cypher query, will the Node be added/removed from the associated auto index?

Thanks.

-brian

Michael Hunger

unread,
Oct 8, 2012, 1:07:11 PM10/8/12
to ne...@googlegroups.com
If you enabled and configured the auto-index to index the fields of such a node, then yes.

Please note that index removal happens lazily when the nodes is requested the next time from the index and not found in the graphdb.

Cheers

Michael
> --
>
>

brian

unread,
Oct 8, 2012, 1:49:17 PM10/8/12
to ne...@googlegroups.com
I'm not sure which of my questions you were answering "yes" to.  I probably should have phrased my question differently.  I think you're saying that nodes create/deleted using Cypher *should* be added/removed in the auto index?  Is that correct?

Thanks.

-brian

Michael Hunger

unread,
Oct 8, 2012, 2:03:20 PM10/8/12
to ne...@googlegroups.com
yep, that is correct.

the precondition being.

# you enabled the autoindex
# you configured the autoindex to index fields that occur on those nodes

Michael

--
 
 

Reply all
Reply to author
Forward
0 new messages