Fragment Text search

askab123

15-09-2017

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?

Answers (3)

Answers (3)

smacdonald2008

18-09-2017

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

18-09-2017

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.

kautuk_sahni

Community Manager

18-09-2017

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