now filters out non blogposts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14634 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Lawrence Carvalho
2009-06-10 14:13:57 +00:00
parent b303855dc9
commit 8715b7e671
5 changed files with 14 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ function getBlogPostList(node, index, count)
// query information
var luceneQuery = " +TYPE:\"{http://www.alfresco.org/model/content/1.0}content\" " +
" +PATH:\"" + node.qnamePath + "/*\" ";
luceneQuery += " +(@\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:application/octet-stream OR";
luceneQuery += " @\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:text/html)"
// add the drafts part
luceneQuery += " -ISNOTNULL:\"{http://www.alfresco.org/model/content/1.0}published\" " +

View File

@@ -11,6 +11,8 @@ function getBlogPostList(node, index, count)
// query information
var luceneQuery = " +TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"" +
" +PATH:\"" + node.qnamePath + "/*\" ";
luceneQuery += " +(@\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:application/octet-stream OR";
luceneQuery += " @\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:text/html)"
// exclude drafts
luceneQuery += " +ISNOTNULL:\"{http://www.alfresco.org/model/content/1.0}published\" " +

View File

@@ -46,6 +46,10 @@ function getBlogPostMonths(node)
var luceneQuery = " +TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"" +
" +PATH:\"" + node.qnamePath + "/*\" " +
" +ISNOTNULL:\"{http://www.alfresco.org/model/content/1.0}published\" ";
luceneQuery += " +(@\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:application/octet-stream OR";
luceneQuery += " @\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:text/html)"
var sortAttribute = "@{http://www.alfresco.org/model/content/1.0}published";
nodes = search.luceneSearch(node.nodeRef.storeRef.toString(), luceneQuery, sortAttribute, true);

View File

@@ -11,6 +11,8 @@ function getBlogPostList(node, index, count)
// query information
var luceneQuery = " +TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"" +
" +PATH:\"" + node.qnamePath + "/*\" ";
luceneQuery += " +(@\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:application/octet-stream OR";
luceneQuery += " @\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:text/html)"
// add the drafts part
luceneQuery += "+ASPECT:\"{http://www.alfresco.org/model/blogintegration/1.0}blogPost\" "

View File

@@ -11,6 +11,9 @@ function getBlogPostList(node, fromDate, toDate, tag, index, count)
// query information
var luceneQuery = " +TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"" +
" +PATH:\"" + node.qnamePath + "/*\"";
luceneQuery += " +(@\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:application/octet-stream OR";
luceneQuery += " @\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:text/html)"
// include all published + my drafts
luceneQuery += " +((" +