mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
SAIL-292: Query macros for field searches: Added support to change the default field on SearchParameters.
- TEXT is the default field by default for lucene, FTS and embedded FTS in CMIS QL. It can now be changed. - Alfresco FTS supports a default field defined by macro expansion git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -400,7 +400,7 @@ public class CMISQueryParser
|
||||
defaultFieldConnective = options.getDefaultFTSFieldConnective();
|
||||
}
|
||||
return ftsQueryParser.buildFTS(ftsExpression.substring(1, ftsExpression.length() - 1), factory, functionEvaluationContext, selector, columns, defaultConnective,
|
||||
defaultFieldConnective, null);
|
||||
defaultFieldConnective, null, options.getDefaultFieldName());
|
||||
case CMISParser.PRED_IN:
|
||||
functionName = In.NAME;
|
||||
function = factory.getFunction(functionName);
|
||||
|
Reference in New Issue
Block a user