Issue with results Returned by QueryBuilder | Community
Skip to main content
Adobe Champion
October 16, 2015
Solved

Issue with results Returned by QueryBuilder

  • October 16, 2015
  • 1 reply
  • 683 views

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.

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 Ojjis

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

1 reply

Ojjis
OjjisAccepted solution
Level 7
October 16, 2015

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