mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Typo fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4593 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -318,6 +318,31 @@ public class LuceneQueryParser extends QueryParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if (expandedFieldName.endsWith(".size"))
|
||||||
|
{
|
||||||
|
QName propertyQName = QName.createQName(expandedFieldName.substring(1,
|
||||||
|
expandedFieldName.length() - 5));
|
||||||
|
PropertyDefinition propertyDef = dictionaryService.getProperty(propertyQName);
|
||||||
|
if ((propertyDef != null)
|
||||||
|
&& (propertyDef.getDataType().getName().equals(DataTypeDefinition.CONTENT)))
|
||||||
|
{
|
||||||
|
return super.getFieldQuery(expandedFieldName, queryText);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (expandedFieldName.endsWith(".locale"))
|
||||||
|
{
|
||||||
|
QName propertyQName = QName.createQName(expandedFieldName.substring(1,
|
||||||
|
expandedFieldName.length() - 7));
|
||||||
|
PropertyDefinition propertyDef = dictionaryService.getProperty(propertyQName);
|
||||||
|
if ((propertyDef != null)
|
||||||
|
&& (propertyDef.getDataType().getName().equals(DataTypeDefinition.CONTENT)))
|
||||||
|
{
|
||||||
|
return super.getFieldQuery(expandedFieldName, queryText);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Already in expanded form
|
// Already in expanded form
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user