Alfresco REST Search api case sensitivity query

cancel
Showing results for 
Search instead for 
Did you mean: 
maxverhoeven
Member II

Alfresco REST Search api case sensitivity query

We are using the Alfresco REST api : https:/[host]/alfresco/api/-default-/public/search/versions/1/search

We have some custom properties like:

 "cstprp:dctype":"Procedure"

if we search on it like this : 

{
   "query": {
      "query": "searchTemplate:*Procedure*",
      " language": "afts"
   },
   "include":["aspectNames","properties"],
   "filterQueries":[{"query":"SITE:'sitename'"}],
   "templates" : [
      {
         "name": "searchTemplate",
         "template" : "(%cm:title OR %cstprp:dctype)"
      }
   ]
}

It will find The documents which have Procedure on cstprp:dctype.

If we however replace the query with :

         

          "query": "searchTemplate:*procedure*" (changed Procedure to a lowercase p)

It will yield 0 results and means it is case-sensitive.

A search on cm:title however is NOT case-sensitive. 

How can we turn off case sensitive search for these custom properties in the search ( or in the whole search alltogether)?

Thanks,

Max

1 Reply
ryandawson
Alfresco Employee

Re: Alfresco REST Search api case sensitivity query

I think this is a question about the content repository. Questions about the content repository go under Alfresco Content Services (ECM) . If you agree you should repost there or change the visibility of this question as the content experts currently aren't able to see this question.