cancel
Showing results for 
Search instead for 
Did you mean: 

OpenSearch and name property

kjelllot
Champ in-the-making
Champ in-the-making
I,

When i search content based on the name property i don't get any results. This happens via the web client OpenSearch box and via the Keyword Search service.
According to the keywordsearch.get.query_.ftl (WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository),  searching on the name property should be possible.
Has anyone encountered that problem or am i missing something?

I tested on the last release (2.0) and also on a self deployed svn build today.

Thanks,

Kjell
2 REPLIES 2

kjelllot
Champ in-the-making
Champ in-the-making
I found the problem. Taking a look at keywordsearch.get.query_.ftl:
(
  TYPE:"{http://www.alfresco.org/model/content/1.0}content" AND
  (
    (
<#list 1..terms?size as i>
      @\\{http\\://www.alfresco.org/model/content/1.0\\}name:${terms[i - 1]} <#if (i < terms?size)> OR </#if>
</#list>
    )
    (
<#list 1..terms?size as i>
      TEXT:${terms[i - 1]} <#if (i < terms?size)> OR </#if>
</#list>
    )
  )
)
the escaping of the namespace should be with single backslashes:
@\{http\://www.alfresco.org/model/content/1.0\}name:

Now it works and i'am able to search on content name.
Is this a bug?

kevinr
Star Contributor
Star Contributor
Yes it is. fixed for 2.1.

Thanks,

Kevin