Alfresco case insensitive lucene or fulltext query

cancel
Showing results for 
Search instead for 
Did you mean: 
sanjaybandhniya
Intermediate

Alfresco case insensitive lucene or fulltext query

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");
}

Thanks & Regards,
Sanjay
1 Reply
EddieMay
Community Manager
Community Manager

Re: Alfresco case insensitive lucene or fulltext query

Hi @sanjaybandhniya 

This may be a locale issue

HTH

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