How to search the assets by using the ID in the Asset Property Advance Tab | Community
Skip to main content
Nandheswara
Level 4
June 27, 2024
Solved

How to search the assets by using the ID in the Asset Property Advance Tab

  • June 27, 2024
  • 2 replies
  • 3012 views

Hi All,

I want to search the asset by using the ID in the Asset Property > Advance Tab, so when i try to search using the ID it should display the asset in the search result. So how we can achive this any suggestion or ideas please

 

 

Thanks

Nandheswara

 

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 EstebanBustamante

Hi, 

The search is based on the properties (metadata) indexed by the damAssetLucene index, by default there is the list of specific metadata indexed, you can find those details here: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/manage/search-assets#gql-search . So to search by that metaData field you are trying to, you should index that property as well (jcr_uuid) as part of the damAssetLucene index. You can check how to properly version an index and more details here: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/indexing

 

But adding the below property and triggering a reindex of the damAssetLucene worked for me:

 

Result:

 

 

Hope this helps.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 27, 2024

Hi, 

The search is based on the properties (metadata) indexed by the damAssetLucene index, by default there is the list of specific metadata indexed, you can find those details here: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/manage/search-assets#gql-search . So to search by that metaData field you are trying to, you should index that property as well (jcr_uuid) as part of the damAssetLucene index. You can check how to properly version an index and more details here: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/indexing

 

But adding the below property and triggering a reindex of the damAssetLucene worked for me:

 

Result:

 

 

Hope this helps.

Esteban Bustamante
Nandheswara
Level 4
July 2, 2024

Hi @EstebanBustamante 

 

I have tried adding the jcr:uuid in the oak:index and indexing is done, checked it through query builder as well,
but when I try to search through the search bar, i'm not getting the results,
When I checked the error log, I observe the below error.

 

2024-07-01T07:37:51.123Z *ERROR* sling-oak-4-org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate-fulltext-async org.apache.jackrabbit.oak.segment.SegmentNotFoundExceptionListener Segment not found: 52541c67-fb0b-4eab-a04c-c0cf8194676e. SegmentId age=1534968ms [VSAD_ID=D45V, app_name=EquipmentGuide, user_agent=NA, type=NA, loggedin_user_id=NA, server_host=NA, vast_id=24908, True_ip=NA, api_url=NA, user_device=NA, app_session_id=NA, sso_session_id=NA, status_code=NA]
org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 52541c67-fb0b-4eab-a04c-c0cf8194676e not found

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 2, 2024

The property name is jcr:uuid, not jce:uuid, was that a typo? Please check the screenshots I added. The error you find may be related with something not done properly while indexing. Can you please try to re index one and make sure this is complete without errors? Are you checking different uuid's?

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
July 16, 2024

@nandheswara Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni