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:
Kevin Roast
2011-10-10 10:32:19 +00:00
parent e46fecc627
commit d97432ddcb
3 changed files with 3 additions and 9 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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