Seeing intemittent issue for one of the newly created custom index in local
Hi
we see few warnings in logs for queries so I have created custom index for those and it's working fine. Only for one index I am seeing intermittent issue.
when I tried to do query performance with below query index name is not showing sometimes if I do reindex sometimes it is showing and sometimes it is not showing.
can we create index without index rules ?
I have tried to create in the below case but afterd deployment apps packageis not installed so I have added like below.
Can we create empty index rules for index with out property ?
Generally in which case we will add reidex to true ?
select [jcr:path], [jcr:score], * from [sling:Message] as a where isdescendantnode(a, '/apps/test/i18n/page/en')
compatVersion = 2
- async = "async"
- queryPaths = [/apps/test/i18n/page/en]
- includedPaths = [/apps/test/i18n/page/en]
- jcr:primaryType = oak:QueryIndexDefinition
- evaluatePathRestrictions = true
- type = "lucene"
+ indexRules
+ sling:Message
+ properties
+ SHOULD_ADD_PROPERTY_CONSTRAINT
- name = "SHOULD_ADD_PROPERTY_CONSTRAINT"
<i18Index
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="2"
evaluatePathRestrictions="{Boolean}true"
includedPaths="[/apps/test/i18n]"
queryPaths="[/apps/test/i18n]"
reindex="{Boolean}false"
reindexCount="{Long}1"
seed="{Long}8698841245336077431"
type="lucene">
<indexRules jcr:primaryType="nt:unstructured">
</indexRules>
</i18Index>