AnsweredAssumed Answered

Using webservices to property info based on a node reference

Question asked by aurora7795 on Nov 3, 2006
Latest reply on Nov 22, 2006 by rwetherall
Hi there,
I'm having some problems finding data in Alfresco based on a Lucene query.

I'm trying to create a relatively simple method in Java to access the properties of a Node based on a Node reference. I've been looking at the sample code provided in the SDK and am trying to run a query written in Lucene that I found there and have tried modded. This is what I have so far:

(Note, NodeRefParam is a string which contains, for example, the value:
29c8e154-53b8-11db-9cbc-d90940ce52b6
)

String ActualQuery = "@cm\\:node-uuid:"+NodeRefParam+"";

I have a trace line after this line to show me what the string looks like and it is showing:

@cm\:node-uuid:29c8e154-53b8-11db-9cbc-d90940ce52b6

The problem is that my code is telling me that no data is being returned in the result set. I know that the node id exists so that isn't the problem. My code is also working ok against the Lucene queries in from the sample code provided in the SDK so I can eliminate that as a problem. I'm pretty sure that the issue is with my Lucene query.

Anyone have any ideas? I don't need to use Lucene to structure the query, if anyone can give me a pointers/examples as to another other way of achieving my goal, I'm open to suggestion.

Thanks,
Martin BG

Outcomes