AnsweredAssumed Answered

Failed to execute search

Question asked by vamirr on Sep 20, 2011
Latest reply on Sep 22, 2011 by andy
I'm trying to do a query for a site whose name is equal to an arbitrary variable.  I'm not seeing what's wrong with the query below:

var mySite = "mynewsite";

var def = {   query: "select e.* from st:site as e where e.cm:name =' " + mySite  + " ' " ,
            language: "cmis-alfresco"   };
var results = search.query(def);


I'm getting the error: Failed to execute search: select e.* from st:site as e where e.cm:name ='mynewsite'

Outcomes