2011/3/22 孤竹 <[email protected]> > Hi ,all > > > I find something confused. There is a method named forNodes ( > http://api.neo4j.org/1.2/org/neo4j/graphdb/index/IndexManager.html#forNodes(java.lang.String) > ) > > > Does it mean we can create muti-index with different name ? and I found > we can set the index name with > > setConfiguration( > http://api.neo4j.org/1.2/org/neo4j/graphdb/index/IndexManager.html#setConfiguration(org.neo4j.graphdb.index.Index, > java.lang.String, java.lang.String)), >
You can create indexes with different names, yes. You cannot change the index name afterwards. > > I am wondering how to use the indexName,and how it works . Is it faster for > my search If I take one index into different parts ? Is there any tests at > the svn ? I have not find something useful. thanks :) > Query times increase with bigger indexes (and with different keys) so try to keep indexes as small as possible, but if you're looking to do compound queries then you'll have to index key/value pairs from different keys into one index. Each index node index / relationships index becomes its own lucene index (the backend used to provide the default index implementation in neo4j). There's a pretty good outline of indexing at http://docs.neo4j.org/chunked/snapshot/indexing.html > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [[email protected]] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

