FYI, I've implemented such functionality in IndexService (and LuceneIndexService), i.e added methods:
removeIndex( Node node, String key ) and removeIndex( String key ) They will be merged into trunk soon after 1.0 release. 2010/1/4 Mattias Persson <[email protected]>: > 2010/1/4 Taylor Cowan <[email protected]>: >> 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); > This has been discussed before. I think that the LuceneIndexService > could support this with little effort. I'll just take a stab at this > and see what can be done here. >> >> or as a 2nd best option, have the index report how a node is indexed: >> >> getValues(Node n, String index); > This would probably be harder to implement and less efficient since > we'd have to store the original values in the index as well. >> >> which I would then iterate over to remove using the 3 arg removeIndex(...) >> >> Taylor >> >> --- On Sun, 1/3/10, Marko A. Rodriguez <[email protected]> wrote: >> >>> From: Marko A. Rodriguez <[email protected]> >>> Subject: [Neo] Drop an index. >>> To: "Neo user discussions" <[email protected]> >>> 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? > The ability to drop an index is definately something we should think > about supporting. I'll take a look at this as well. Something like > IndexService#deleteIndex( String key ). "delete" naming convention > goes better with neo4j than "drop" I suppose. >>> >>> Thank you, >>> Marko. >>> >>> http://markorodriguez.com >>> http://gremlin.tinkerpop.com >>> _______________________________________________ >>> Neo mailing list >>> [email protected] >>> https://lists.neo4j.org/mailman/listinfo/user >>> >> >> >> >> _______________________________________________ >> Neo mailing list >> [email protected] >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > -- > Mattias Persson, [[email protected]] > Neo Technology, www.neotechnology.com > -- Mattias Persson, [[email protected]] Neo Technology, www.neotechnology.com _______________________________________________ Neo mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

