mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Specifying of <includedInSuperTypeQuery>false</includedInSuperTypeQuery> in data model for thumbnail and failed thumbnail types - removes the need to always specify -TYPE... in a number of Lucene/FTS-Alfresco queries.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31070 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -8,7 +8,7 @@ var Filters =
|
||||
{
|
||||
"documents": '+(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")',
|
||||
"folders": '+(TYPE:"folder" OR TYPE:"app:folderlink")',
|
||||
"images": '-TYPE:"thumbnail" +@cm\\:content.mimetype:image/*'
|
||||
"images": '+@cm\\:content.mimetype:image/*'
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -16,10 +16,7 @@ var Filters =
|
||||
*/
|
||||
IGNORED_TYPES:
|
||||
[
|
||||
"cm:thumbnail",
|
||||
"cm:failedThumbnail",
|
||||
"cm:systemfolder",
|
||||
"cm:rating",
|
||||
"fm:forums",
|
||||
"fm:forum",
|
||||
"fm:topic",
|
||||
|
@@ -8,7 +8,7 @@ var Filters =
|
||||
{
|
||||
"documents": '+(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")',
|
||||
"folders": '+(TYPE:"folder" OR TYPE:"app:folderlink")',
|
||||
"images": '-TYPE:"thumbnail" +@cm\\:content.mimetype:image/*'
|
||||
"images": '+@cm\\:content.mimetype:image/*'
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -16,10 +16,7 @@ var Filters =
|
||||
*/
|
||||
IGNORED_TYPES:
|
||||
[
|
||||
"cm:thumbnail",
|
||||
"cm:failedThumbnail",
|
||||
"cm:systemfolder",
|
||||
"cm:rating",
|
||||
"fm:forums",
|
||||
"fm:forum",
|
||||
"fm:topic",
|
||||
|
@@ -834,7 +834,7 @@ function getSearchResults(params)
|
||||
{
|
||||
ftsQuery = 'PATH:"' + path + '/*" AND (' + ftsQuery + ') ';
|
||||
}
|
||||
ftsQuery = '(' + ftsQuery + ') AND -TYPE:"cm:thumbnail"';
|
||||
ftsQuery = '(' + ftsQuery + ') AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating"';
|
||||
|
||||
// sort field - expecting field to in one of the following formats:
|
||||
// - short QName form such as: cm:name
|
||||
|
Reference in New Issue
Block a user