What's the best way to install new Indexes into my AEM Project? | Community
Skip to main content
Level 6
May 8, 2023
Solved

What's the best way to install new Indexes into my AEM Project?

  • May 8, 2023
  • 2 replies
  • 635 views

We have a multi-tenant website, and in particular, we are working on 1 project specifically. This project was created using the AEM Maven Archetype. This project was pretty much worked on for an entire year. Now we are focusing on searchability. We have a couple of Apache Lucene indexing rules, but where should we store the configuration to be installed into the AEM environment per code deployment?

ui.apps

ui.core 

ui.content

ui.config?

We think it should be ui.config, but what should the node structure look like?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ManviSharma

Hi,

 

Yes, you are correct that the configuration should be stored in the ui.config module.

In terms of the node structure, you can create a new node under /apps/<your-project-name>/install with the name of the package you want to create, for example, "search-indexes". Then, you can add a sub-node named "filter.xml" which contains the indexing rules in the format defined by Apache Lucene. You can also add any other necessary configuration files or folders under the package node.

 

Here's an example of the node structure:

/apps/<your-project-name>/install/search-indexes/ /apps/<your-project-name>/install/search-indexes/filter.xml

 

Once you have the configuration stored in the ui.config module, you can package it into a content package and deploy it to your AEM environment as part of your code deployment process.

2 replies

ManviSharma
Adobe Employee
ManviSharmaAdobe EmployeeAccepted solution
Adobe Employee
May 8, 2023

Hi,

 

Yes, you are correct that the configuration should be stored in the ui.config module.

In terms of the node structure, you can create a new node under /apps/<your-project-name>/install with the name of the package you want to create, for example, "search-indexes". Then, you can add a sub-node named "filter.xml" which contains the indexing rules in the format defined by Apache Lucene. You can also add any other necessary configuration files or folders under the package node.

 

Here's an example of the node structure:

/apps/<your-project-name>/install/search-indexes/ /apps/<your-project-name>/install/search-indexes/filter.xml

 

Once you have the configuration stored in the ui.config module, you can package it into a content package and deploy it to your AEM environment as part of your code deployment process.

rawvarun
Community Advisor
Community Advisor
May 8, 2023

ui.apps will be best for custom indexes.