I tried with query debug console and when I click on Extract facets checkbox I was able to get response. But I need make call through java Query Builder API.
Solved! Go to Solution.
Try with the below code:
final PredicateGroup predicates = PredicateConverter.createPredicates(predicatesMap);
final Query query = queryBuilder.createQuery(predicates, resourceResolver.adaptTo(Session.class));
query.setExcerpt(Boolean.TRUE);
final SearchResult result = query.getResult();
Make sure to use resourceResolver with appropriate privilage, service user is preferred.
Thanks!
Hi @maheshbabuvoma can you please the piece of code(java) you're using to fetch the results ? I bet the issue is in your java code.
Thanks,
Bilal.
Views
Replies
Total Likes
Try with the below code:
final PredicateGroup predicates = PredicateConverter.createPredicates(predicatesMap);
final Query query = queryBuilder.createQuery(predicates, resourceResolver.adaptTo(Session.class));
query.setExcerpt(Boolean.TRUE);
final SearchResult result = query.getResult();
Make sure to use resourceResolver with appropriate privilage, service user is preferred.
Thanks!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies