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 is happening now. Discover what's next in customer experience.

How to modify the existing query object to add more predicates, which I have loaded from store path

Avatar

Level 4

Hi All,

In my application I have created a custom component something similar to list component where I allow authors to add a query builder syntax query and pull result on basis of it. I am taking this whole query from my dialog and then loading this query using below code.

  query = queryBuilder.loadQuery(getCurrentResource().getPath() + "/" + "customQuery", session);

The above code works perfectly fine, but now I want to enhance my component filter the result on the basis of page property tags also. For example out of total result I only want to see page which are tagged with a particular tag (say marketing:interest ). Basically this is a facet functionality which I want to provide to the end user. So how can I manipulate my query object and before i run getResult method so that I get revelant results.

final SearchResult result = query.getResult();

0 Replies