[Neo] Drop an index.

Taylor Cowan taylor_cowan at yahoo.com
Mon Jan 4 03:24:18 CET 2010

I share this concern.  In my case I don't want to drop the entire index, but instead remove the node from a particular index, regardless of which value it was indexed against.

removeIndex(Node n, String index);

or as a 2nd best option, have the index report how a node is indexed:

getValues(Node n, String index);

which I would then iterate over to remove using the 3 arg removeIndex(...)


--- On Sun, 1/3/10, Marko A. Rodriguez <marko at lanl.gov> wrote:

> From: Marko A. Rodriguez <marko at lanl.gov>
> Subject: [Neo] Drop an index.
> To: "Neo user discussions" <user at lists.neo4j.org>
> Date: Sunday, January 3, 2010, 2:22 PM
> Hello,
> How do you drop a LuceneIndexService index. That is, I have
> an index for
> keys 'name' and 'age' and I want to drop 'age'. Do I have
> have to loop
> through all nodes and do removeIndex(node, 'age',
> node.getProperty('age'))
> ?
> I would like something like dropIndex('age'). What is the
> best way to go
> about getting that type of index functionality?
> Thank you,
> Marko.
> http://markorodriguez.com
> http://gremlin.tinkerpop.com
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user


More information about the User mailing list