Christian,
would you mind raising an issue on this over at
https://github.com/neo4j/community/issues for this, so we can get to
it after 1.5 GA?

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 11:29 AM, Christian Scharr
<[email protected]> wrote:
> Hi,
>
> after clean installing Neo4j Server 1.5.M02 everything works fine.
> Deep diving into my subversion history showed me that I've previousily sended 
> an request like
>
> {"name":"address","config":{"provide":"lucene","type":"fulltext","to_lower_case":true}}
>
> This could be the place where something really terrible gone wrong...
> I think you should either explicitly mention that when sending data to the 
> REST API everything has to be a string or when setting a true/false flag the 
> std. JSON boolean datatyp should be supported by the API.
>
> However I would like to express my gratitude to you for helping me locating 
> this tricky problem :-)
>
>
> Greets,
> Christian Scharr
>> -----Original Message-----
>> From: [email protected] [mailto:user-
>> [email protected]] On Behalf Of Peter Neubauer
>> Sent: Tuesday, October 18, 2011 10:49 AM
>> To: Neo4j user discussions
>> Subject: Re: [Neo4j] Index Creation via REST API
>>
>> 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
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to