curl -X POST http://localhost:7474/db/data/index/node/ -H "Content-Type: application/json" --data-binary '{"name":"address","config":{"provider":"lucene","type":"fulltext"}}'
Greets, Christian Scharr > -----Original Message----- > From: [email protected] [mailto:user- > [email protected]] On Behalf Of Peter Neubauer > Sent: Monday, October 17, 2011 6:11 PM > To: Neo4j user discussions > Subject: Re: [Neo4j] Index Creation via REST API > > This looks right. Can you create the error with a curl call so I can > recreate it? > > /peter > > Sent from my phone. > On Oct 17, 2011 5:58 PM, "Christian Scharr" <Christian.Scharr@hsh- > berlin.com> > wrote: > > > Hello, > > > > trying to work RESTfully with Neo4j via Standalone Server (1.5.M01) > I'm > > about to become desperate. > > > > I'm sending an POST-Request to > > http://localhost:7474/db/data/index/node/, getting status-code 500 > with > > the response-text "java.lang.Boolean cannot be cast to > > java.lang.String". > > > > The indexes I've wanted to create are the following one: > > > > {"name":"address","config":{"provider":"lucene","type":"fulltext"}} > > {"name":"user","config":{"provider":"lucene","type":"fulltext"}} > > > > Neo4j log contains the following line: > > > > "17.10.2011 16:56:10 org.mortbay.log.Slf4jLog warn > > FATAL: /db/data/index/node/ > > java.lang.ClassCastException: java.lang.Boolean cannot be cast to > > java.lang.String > > at > > > org.neo4j.index.impl.lucene.LuceneIndexImplementation.match(LuceneIndex > I > > mplementation.java:165) > > at > > > org.neo4j.index.impl.lucene.LuceneIndexImplementation.configMatches(Luc > e > > neIndexImplementation.java:156) > > at > > > org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java > : > > 128) > > at > > > org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerIm > p > > l.java:183) > > at > > > org.neo4j.kernel.IndexManagerImpl.getOrCreateNodeIndex(IndexManagerImpl > . > > java:272) > > at > > org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:260) > > at > > > org.neo4j.server.rest.web.DatabaseActions.createNodeIndex(DatabaseActio > n > > s.java:338) > > at > > > org.neo4j.server.rest.web.RestfulGraphDatabase.jsonCreateNodeIndex(Rest > f > > ulGraphDatabase.java:589) [...]" > > > > Whats wrong with this requests and in case this is an known bug at > the > > REST server-component when will it be fixed? > > > > > > Greets, > > Christian Scharr > > _______________________________________________ > > Neo4j mailing list > > [email protected] > > https://lists.neo4j.org/mailman/listinfo/user > > > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

