Expand my Community achievements bar.

SOLVED

Unable to re-index in AEMaaCS

Avatar

Level 2

Hi,

we recently made some changes to our Lucene search oak: index like including and excluding some paths in Lucene SuggestionIndex & modified the synonyms.txt file. I could see the changes in my local when I re-indexed using oak:indexManager of acs-commons. After deploying the code to DEV SERVER. I could partially see some changes in DEV Author but no change in dispatcher or publisher level. I thought maybe it would take some time to re-index and clear the cache. it is more than a week now and it is still the same.

 

I don't see options to re-index in cloud servers, as the oak: index node is not accessible within the crxde of the dev server. Also, the oak index manager is not available on the cloud server. And I can't access the system/console too in the cloud server.

 

help me if there are any other ways to achieve Re-indexing in cloud?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @kiran_uhc ,

Did you create the new custom index for these changes or add in existing one?

 

Kindly refer https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing... for custom index deployment.

Thanks

 

Himanshu Jain

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

Hi @kiran_uhc ,

Did you create the new custom index for these changes or add in existing one?

 

Kindly refer https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing... for custom index deployment.

Thanks

 

Himanshu Jain

Avatar

Community Advisor

Hi @kiran_uhc ,

In AEMAACS you need to create a new version with custom naming convention as per documentation .

 

Ref: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing...

 

Thanks

Himanshu Jain

Avatar

Level 2

Hi @Himanshu_Jain / @VeenaVikraman / @aanchal-sikka ,

I incremented the version as suggested. But I see this in logs. Can you please help me: 

29.11.2023 17:33:53.657 *ERROR* [sling-default-2-Registered Service.2402] org.apache.jackrabbit.oak.plugins.index.search.BadIndexTracker Could not access the Fulltext index at [/oak:index/xxx.yyyyyLucene-custom-2] . since 5.813 h ,17 indexing cycles, accessed 783 times
java.lang.IllegalArgumentException: Error occurred while initializing type class org.apache.lucene.analysis.synonym.SynonymFilterFactory
at org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory.init(NodeStateAnalyzerFactory.java:193) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory.loadTokenFilterFactories(NodeStateAnalyzerFactory.java:119) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory.composeAnalyzer(NodeStateAnalyzerFactory.java:105) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory.createInstance(NodeStateAnalyzerFactory.java:99) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexDefinition.collectAnalyzers(LuceneIndexDefinition.java:168) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexDefinition.<init>(LuceneIndexDefinition.java:77) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexDefinition.<init>(LuceneIndexDefinition.java:69) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexNodeManager.open(LuceneIndexNodeManager.java:73) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.findIndexNode(IndexTracker.java:262) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.acquireIndexNode(IndexTracker.java:231) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.acquireIndexNode(LucenePropertyIndex.java:731) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.acquireIndexNode(LucenePropertyIndex.java:197) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.search.spi.query.FulltextIndex.getPlans(FulltextIndex.java:126) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:1121) [org.apache.jackrabbit.oak-core:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:1074) [org.apache.jackrabbit.oak-core:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.query.ast.SelectorImpl.prepare(SelectorImpl.java:313) [org.apache.jackrabbit.oak-core:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.query.QueryImpl.prepare(QueryImpl.java:759) [org.apache.jackrabbit.oak-core:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.query.QueryEngineImpl.prepareAndSelect(QueryEngineImpl.java:330) [org.apache.jackrabbit.oak-core:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.query.QueryEngineImpl.executeQuery(QueryEngineImpl.java:284) [org.apache.jackrabbit.oak-core:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl.executeQuery(QueryManagerImpl.java:137) [org.apache.jackrabbit.oak-jcr:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:105) [org.apache.jackrabbit.oak-jcr:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:101) [org.apache.jackrabbit.oak-jcr:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:229) [org.apache.jackrabbit.oak-jcr:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.jcr.query.QueryImpl.execute(QueryImpl.java:100) [org.apache.jackrabbit.oak-jcr:1.56.0.T20230927085643-189caed]
at org.apache.sling.jcr.resource.internal.helper.JcrResourceUtil.query(JcrResourceUtil.java:61) [org.apache.sling.jcr.resource:3.2.4]
at org.apache.sling.jcr.resource.internal.helper.jcr.BasicQueryLanguageProvider.findResources(BasicQueryLanguageProvider.java:84) [org.apache.sling.jcr.resource:3.2.4]
at org.apache.sling.resourceresolver.impl.providers.stateful.AuthenticatedResourceProvider.findResources(AuthenticatedResourceProvider.java:292) [org.apache.sling.resourceresolver:1.11.0]
at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.findResources(ResourceResolverControl.java:574) [org.apache.sling.resourceresolver:1.11.0]
at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.findResources(ResourceResolverImpl.java:574) [org.apache.sling.resourceresolver:1.11.0]
at com.adobe.cq.dam.archive.impl.async.targets.impl.JcrArchiveTargetStorageServiceImpl.run(JcrArchiveTargetStorageServiceImpl.java:164) [com.day.cq.dam.cq-dam-archive:1.0.40]
at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:349) [org.apache.sling.commons.scheduler:2.7.12]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.apache.sling.commons.scheduler:2.7.12]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Resource not found: synonyms.txt
at org.apache.lucene.analysis.util.ClasspathResourceLoader.openResource(ClasspathResourceLoader.java:67) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory$NodeStateResourceLoader.openResource(NodeStateAnalyzerFactory.java:269) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.loadSynonyms(FSTSynonymFilterFactory.java:142) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.inform(FSTSynonymFilterFactory.java:112) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.lucene.analysis.synonym.SynonymFilterFactory.inform(SynonymFilterFactory.java:90) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
at org.apache.jackrabbit.oak.plugins.index.lucene.NodeStateAnalyzerFactory.init(NodeStateAnalyzerFactory.java:191) [org.apache.jackrabbit.oak-lucene:1.56.0.T20230927085643-189caed]
... 34 common frames omitted

Avatar

Community Advisor

Hi @kiran_uhc ,

Can you please share the existing index name and the modified one as well .

 

Thanks

Himanshu Jain

Avatar

Level 2

Sure, For confidentiality. I am adding abc instead of the sitename. The only change i did to the name was make it from 1 to 2.

This is the new index names :

abc.abcLucene-custom-2
abc.luceneSuggestion-custom-2
abc.abc-custom-2

 The below are the old index names:

abc.abcLucene-custom-1
abc.luceneSuggestion-custom-1
abc.abc-custom-1

 

Avatar

Community Advisor

@kiran_uhc 

 

Please increment the version number of the index and deploy. The updated changes should be picked up


Aanchal Sikka