AnsweredAssumed Answered

Advanced Search with custom metadata in Share or the 'search.lib.js' issue

Question asked by angelborroy Moderator on Jun 18, 2014
Latest reply on Aug 29, 2014 by douglascrp
Recently we had a problem with advanced search in Alfresco 4.2.e: it was returning incorrect results. We are using Spanish as language.

After some debugging we have modified this line on "alfresco-4.2.e/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/search/search.lib.js"

<strong>Original code</strong>
943: formQuery += (first ? '' : ' AND ') + escapeQName(propName) + ':\\"' + propValue + '\\"';


<strong>Modified code</strong>
943: formQuery += (first ? '' : ' AND ') + escapeQName(propName) + ':\"' + propValue + '\"';


Original Alfresco code includes \\" before and after propValue, which make FTS queries to fail. It has been replaced by \"

I wonder if this is an issue or if this is a correct behavior (maybe in other base language like English).


Outcomes