Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Rick Bullotta
Jim - looking forward to meeting you at QCon, BTW! -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Jim Webber Sent: Wednesday, March 09, 2011 7:27 AM To: Neo4j user discussions Subject: Re: [Neo4j] Neo4J Plugin > The downside

Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Rick Bullotta
, latency reduction, and overall performance. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Jim Webber Sent: Wednesday, March 09, 2011 7:27 AM To: Neo4j user discussions Subject: Re: [Neo4j] Neo4J Plugin > The downside is that is r

Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Jim Webber
> The downside is that is rest-api specific. While the ServerPlugin > Representation will work across any transport which we add to the server > (currently only REST, but other wire protocols would be possible). I'm not convinced of the validity or usefulness of this notion. A RESTful approach

Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Andreas Kollegger
Hi Francois, There is not direct support for doing that with a ServerPlugin. It is possible to write a custom Representation implementation that would help, but we haven't documented that approach. An alternative at the moment would be to write an unmanaged extension: http://docs.neo4j.org/ch

Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread francoisk6
Thank you andreas, So would the plugin will let me return Iterable where neoNodeResult is a custom class that have the following properties: 1. nodeType 2. nodeID 3. nodeStxCode 4. nodeLabel 5. nodeDepth I could return Iterable but its not what i want plus I need extra infos about the node to be

Re: [Neo4j] Neo4J Plugin

2011-03-08 Thread Andreas Kollegger
Hi Francois, A ServerPlugin is expected to produce Nodes, Paths, or Relationships[1]. The GSon.toJson which your method returns is being treated as plain text, which is subsequently wrapped into a Json string with the quote characters getting escaped. That's why the slash characters are there.

[Neo4j] Neo4J Plugin

2011-03-08 Thread francoisk6
hi all, I created a plugin in neo4j that do custom search (with query search enabled). My Problem is that the plugin is set to return a string as json array. but i got "\" in it. anyidea why? THX. 1.Command: curl -H Accept:application/json -H Content-Type:application/json -X POST http://localhos