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

SOLVED

Fragment Text search

askab123
Level 2
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
askab123
Correct answer by
Level 2
Level 2

Thank you Scott, i will go through the link

View solution in original post

4 Replies
kautuk_sahni
Community Manager
Community Manager

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

askab123
Level 2
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.

smacdonald2008
Level 10
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

askab123
Correct answer by
Level 2
Level 2

Thank you Scott, i will go through the link

View solution in original post