Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Searching for an asset via the API

Avatar

Avatar
Level 1
RobertoPrimo
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
RobertoPrimo
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
RobertoPrimo
Level 1

04-03-2020

Hello everyone,

 

As I am quite new to the world of Adobe Assets I apologize if this question has already been raised and solved.

 

What I am interested in is what are the options, and best practices, for searching for a desired asset via the AEM Assets API? The user of my app is allowed to enter the search keywords which correspond to the asset metadata attributes. Based on the user input my application should return the desired asset which is stored in the DAM.

 

However I am not sure what is the best way to achieve this in Adobe AEM Assets? v.6.5

 

I appreciate the help

View Entire Topic

Avatar

Avatar
Give Back 5
Level 4
SameerBhalerao
Level 4

Likes

35 likes

Total Posts

30 posts

Correct Reply

16 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 4
SameerBhalerao
Level 4

Likes

35 likes

Total Posts

30 posts

Correct Reply

16 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
SameerBhalerao
Level 4

26-10-2020

Hi There,

 

I think  you are talking about the Asset Http API which is mostly used for asset manipulation(crud operations) and not for search.

 

Searching can be done using querybuider API which is exposed @ http://localhost:4502/bin/querybuilder.json and allows parameters to be passed on to the search engine. 

 

Please check https://docs.adobe.com/content/help/en/experience-manager-64/developing/platform/query-builder/query... which will help to understand the overall big picture about AEM searches.

 

Generally you can use the querybuilder API and pass it all the predicates to do search. You can use the free text search to allow searching all the metadata fields or you can restrict the search to relevant metadata using property searches. All this is derived from the kind of query that you use. 

 

Also do not forget about creating indexes as indexes help to run the query faster. It is all Lucene under the hood.

 

Thanks!