MongoDB and OAK integration

Avatar

Avatar

anthonyt2853861

Avatar

anthonyt2853861

anthonyt2853861

20-05-2020

The question is:

 

I plan to create a MongoDB database which will store information that is obtained from an external API. I need to integrate this MongoDB database with my AEM project in such a way that I can generate OAK indexes that will be obtained from that database, this in order to create a search in my AEM project. I have reviewed the following documentation:

 

https://docs.adobe.com/content/help/en/experience-manager-65/deploying/deploying/queries-and-indexin...

https://docs.adobe.com/content/help/en/experience-manager-65/deploying/practices/best-practices-for-...

https://jackrabbit.apache.org/oak/docs/query/query.html

 

I understand that OAK indexes the content stored in my project's repository. Is there a way to store external content in the repository? If this option is possible it could save me having to integrate from MongoDB.

Screenshot from 2020-05-20 13-27-35.png

 

I look forward to your comments, thank you.

View Entire Topic

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

916

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

916

Correct Answer

1.0K
Jörg_Hoh
Employee

21-05-2020

If I understand you correctly, you want some application approaching directly the MongoDB and that this content then shows up in AEM/Oak and is reachable through its API.

 

This is not possible, because Oak does not know of the documents you added outside of its control to the MongoDB. Therefor it will never show up in the indexes. If you want to content to be indexed within Oak, you need to insert into the repository by regular means (Oak/Sling APIs).

 

HTH,

Jörg