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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Fragment Text search

Avatar

Level 2

We have 1000+ fragments in our application, we want to provide a mechanism to users to search a text within Fragments. The data in fragments is stored as binary, any idea how to perform a text search in fragments?

1 Accepted Solution

Avatar

Correct answer by
Level 2

Thank you Scott, i will go through the link

4 Replies

Avatar

Administrator

Moving this question to AEM Assets topic.

If you are talking about the content fragment, then the content fragment can be easily searchable from AEM omni-search.

Go to http://localhost:4502/assets.html/content/dam and click the lens icon and type content of the fragment. It will show you the relevant content fragment.

I am not very sure what do you mean by " The data in fragments is stored as binar".

~kautuk

Avatar

Level 2

Thank you Kautuk for your response, i am trying to provide the search capability in Publish and writing a custom search logic to search the text in Fragments using querybuilder.

Avatar

Level 10

Are you talking about a fragment where an author enters text. The actual text data is what you want to search?

See this community article that suggests that you can cast a prop using binary --

9 JCR-SQL2 Queries Every AEM Developer Should Know | 6D Labs

Avatar

Correct answer by
Level 2

Thank you Scott, i will go through the link