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

SOLVED

Searching for an asset via the API

RobertoPrimo
Level 1
Level 1

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

1 Accepted Solution
SameerBhalerao
Correct answer by
Level 4
Level 4

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!

 

 

View solution in original post

1 Reply
SameerBhalerao
Correct answer by
Level 4
Level 4

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!

 

 

View solution in original post