Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Issue with results Returned by QueryBuilder

Avatar

Adobe Champion

Hi all,

We have implemented a custom component for search which uses the QueryBuilder to do the search.

When we check for basic contents for example a property value as a keythen the search works fine.

However if the property has some <html> tags in the property value, then we get error in the excerption.

For example consider a page which uses the RTE for authoring contents, the values that gets stored in the property would be html, with all <p> & <a> tags.

When I do search, with a key "super", it returns the page in the result, even if the key exist in the attribute of any html tag.

<a href="https://forums.adobe.com/content/something/-super-.html">sometext</a>

Is there a way to restrict the querybuilder searching for <html> tags and its attributes. 

Thanks in advance.

Regards,

Lingesh P.

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hiya,
have you tried making your own search predicate for this ?
Great link here:
http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html

That will help you  parse and handle things in your own way

Good Luck
/Johan

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

Hiya,
have you tried making your own search predicate for this ?
Great link here:
http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html

That will help you  parse and handle things in your own way

Good Luck
/Johan