cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco case insensitive lucene or fulltext query

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

How Can I create case insensitive lucene/fulltext query?

var argsSearchTermCustom="demo";
var query='PATH:"//app:company_home/st:sites//*\" AND @CM\\:name:*'+(search.ISO9075Encode(argsSearchTermCustom))+'* AND TYPE:\"cm:content\"';
var queryDef = {
query: query,
language: "fts-alfresco"
};

var childNodes = search.query(queryDef);

for each (var result in childNodes)
{
logger.debug("------------------------"+ result.properties.name+"\n");
}

1 REPLY 1

EddieMay
World-Class Innovator
World-Class Innovator

Hi @sanjaybandhniya 

This may be a locale issue

HTH

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!