This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 4efc80243b5fd7356b59eb43d6d9ae149e8b551d
Author: Dan Klco <k...@adobe.com>
AuthorDate: Tue Sep 26 23:59:22 2023 -0400

    SLING-12012 - enabling null check for published property
---
 core/src/main/java/org/apache/sling/cms/core/internal/IndexCreator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/sling/cms/core/internal/IndexCreator.java 
b/core/src/main/java/org/apache/sling/cms/core/internal/IndexCreator.java
index 5babc0fe..9e754eec 100644
--- a/core/src/main/java/org/apache/sling/cms/core/internal/IndexCreator.java
+++ b/core/src/main/java/org/apache/sling/cms/core/internal/IndexCreator.java
@@ -178,7 +178,7 @@ public class IndexCreator implements RepositoryInitializer {
         indexRule.property("jcrLastModified", "jcr:content/jcr:lastModified", 
false).propertyIndex().ordered()
                 .type("Date");
         indexRule.property("jcrLastModifiedBy", 
"jcr:content/jcr:lastModifiedBy", false).propertyIndex();
-        indexRule.property("slingPublished", "jcr:content/sling:published", 
false).propertyIndex().type("Boolean");
+        indexRule.property("slingPublished", "jcr:content/sling:published", 
false).propertyIndex().nullCheckEnabled().type("Boolean");
         indexRule.property("slingTaxonomy", "jcr:content/sling:taxonomy", 
false).propertyIndex().analyzed();
         indexRule.property("allProperties", "jcr:content/.*", 
true).propertyIndex().analyzed();
     }

Reply via email to