mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Refactor CMIS property accessors to remove duplicate code. Basic wire up for fts query language and some simple tests (MOB-574). Parser WIP (MOB-571)
- added support for properties and column aliases in CMIS embedded FTS - simple pass-through column support for FTS git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -307,4 +307,20 @@ public class CmisFunctionEvaluationContext implements FunctionEvaluationContext
|
||||
return propertyDef.isQueryable();
|
||||
}
|
||||
}
|
||||
|
||||
public String getLuceneFieldName(String propertyName)
|
||||
{
|
||||
CMISPropertyDefinition propertyDef = cmisDictionaryService.findProperty(propertyName, null);
|
||||
if(propertyDef != null)
|
||||
{
|
||||
return propertyDef.getPropertyLuceneBuilder().getLuceneFieldName();
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: restrict to supported "special" fields
|
||||
return propertyName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user