It is currently possible to configure auto indexing for the server using the neo4j.properties configuration file. Something like this should work:
node_auto_indexing=true node_keys_indexable=name, age relationship_auto_indexing=true relationship_keys_indexable=strength, someotherkey Programatically setting up auto indexing via the REST API is currently not supported, because the modifying auto index settings during runtime does currently not persist across database restarts. Using the auto indexes programatically via REST would thus mean that clients would have to monitor when the server shuts down, and recreate runtime settings upon startup. Once we have programmatic auto index settings set up to where they persist across database shutdowns, these features will be added to the REST API. I am just now finishing support for querying auto indexes via REST, and it will, if it passes QA, be available in the next milestone release. It will also most likely be available in the latest SNAPSHOT release by tonight. Until such a version is available, it is possible to query auto indexes by name. Please note, however, that this is *not* an official API feature, we do not make any guarantees that this will be supported in subsequent versions. To query the node auto index, simply issue a normal index query to the node index named "node_auto_index" or, for relationships, to the relationship index named "relationship_auto_index". /Jake On Tue, Jul 12, 2011 at 3:32 PM, Matt Luongo <[email protected]> wrote: > +1, we could use configuration through REST as well. > > -- > Matt Luongo > Co-Founder, Scholr.ly > > > > On Tue, Jul 12, 2011 at 6:45 AM, mike_t <[email protected]> wrote: > > > Please tell me, how can I do that? I couldn“t find anything about it in > the > > api doc (http://components.neo4j.org/neo4j-server/snapshot/rest.html) > > > > -- > > View this message in context: > > > http://neo4j-user-list.438527.n3.nabble.com/Neo4j-auto-indexes-in-REST-in-1-4-tp3159205p3162053.html > > Sent from the Neo4J User List mailing list archive at Nabble.com. > > _______________________________________________ > > Neo4j mailing list > > [email protected] > > https://lists.neo4j.org/mailman/listinfo/user > > > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

