Mmh, execting this gives me curl -X POST http://localhost:7474/db/data/index/node/ -H "Content-Type: application/json" --data-binary '{"name":"address","config":{"provide":"lucene","type":"fulltext"}}' { "template" : "http://localhost:7474/db/data/index/node/address/{key}/{value}", "provider" : "lucene", "type" : "fulltext" }
Let me know if you need help I think Skype might be in order? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 18, 2011 at 10:38 AM, Christian Scharr <[email protected]> wrote: > Hi, > I don't think I've created an index with the same name before, because this > error happens everytime I've tried so far :-/ > Browsing the "Index manager" page in webadmin shows me an empty list of > indexes... Nothing here to delete at this time. > > I will try making a fresh installation of Neo4j and updating to 1.5-M02. > > Greets, > Christian Scharr > >> -----Original Message----- >> From: [email protected] [mailto:user- >> [email protected]] On Behalf Of Jacob Hansson >> Sent: Tuesday, October 18, 2011 10:16 AM >> To: Neo4j user discussions >> Subject: Re: [Neo4j] Index Creation via REST API >> >> It seems that what is happening is that there already is an index with >> the >> name you specify created, and for some reason, it has a boolean value >> as its >> type. >> >> We will have to dig into how that happened (do you think you could have >> passed something like type:true during your experiments?), but it may >> be >> possible to fix it without a patch, if you can delete the existing >> index. >> >> If you open up webadmin, there is a tab for index management. See if >> your >> index shows up there, and if it does, delete it. Then try running the >> curl >> query you describe below again. >> >> /Jake >> >> On Mon, Oct 17, 2011 at 6:35 PM, Christian Scharr < >> [email protected]> wrote: >> >> > 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 >> > >> >> >> >> -- >> Jacob Hansson >> Phone: +46 (0) 763503395 >> Twitter: @jakewins >> _______________________________________________ >> 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

