cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax for simple lucene query in Node Browser please

groberts
Champ on-the-rise
Champ on-the-rise
Hi,

I have a custom model of type {myco.model}clinicalstudy and it has a property

{myco.model}RiskScore of type {http://www.alfresco.org/model/dictionary/1.0}/text.


Please can anyone tell me the correct lucene syntax to type into Node Browser to fetch nodes
with a RiskScore of 11 ?

I've tried lots of variations of

+ @{myco.model}:RiskScore:11

to no avail.

Its driving me nuts.  I've tried to use 'Luke' but it is only any use if you know the correct syntax.

I've skimmed through http://wiki.alfresco.com/wiki/Search#Fields_present_on_all_entries

Free cup of tea to the winning answer.

Thanks,
Guy.
1 REPLY 1

groberts
Champ on-the-rise
Champ on-the-rise
Solved.

Luke wanted the { and } to be escaped, so this worked in Luke;

@\{myco.model\}RiskScore:"11"

and in Java the escape character needs escaping itself;

@\\{myco.model\\}RiskScore:"11"

Really pleased to be past that problem.