Syntax for simple lucene query in Node Browser please
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 07:09 PM
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 05:35 AM
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.
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.
