cancel
Showing results for 
Search instead for 
Did you mean: 

Search documents by size

llemtt
Champ in-the-making
Champ in-the-making
Hi

I'm trying to write a javascript that searches for all documents of the same size as the current one, basically I do the following:

var nodes = search.luceneSearch("@{http://www.alfresco.org/model/content/1.0}content.size:" + document.size );

but I got the following error:

110517796 Failed to execute search: @{http://www.alfresco.org/model/content/1.0}content.size:21504

what's wrong with that?

thanks
Matteo
1 REPLY 1

llemtt
Champ in-the-making
Champ in-the-making
Ok problem solved, I was missing a pair of escapes…

var nodes = search.luceneSearch("@\\{http\\://www.alfresco.org/model/content/1.0\\}content.size:" + document.size );

that works as espected!