Hello Team,
Am trying to create search functinality for our site. Whenever the user enters any string it searches all through the jcr content and return the results as pages.
But i wanted to restrict one thing.
I do not want to search the user entered string in url. For examples, if users searchs 'madhu' and in one page it contains hyperlink as "https://www.test.com/madhu/index.html", i do not want to return this page as the text does not contain in content rather in hyperlink source.
Please help!!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
A custom predicate could perform things that is directly not possible with XPath, for example:
Documentation link:- https://docs.adobe.com/docs/en/aem/6-0/develop/search/implementing-custom-predicate-evaluator.html
Reference Link:- https://hashimkhan.in/tag/xpath/
// Custom Predicate Evaluators:
Broadly there are 2 kinds of Predicate Evaluators which can be used to create new predicates as per Business need.
Read More on the link.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Maddy737 wrote...
Hello Team,
Am trying to create search functinality for our site. Whenever the user enters any string it searches all through the jcr content and return the results as pages.
But i wanted to restrict one thing.
I do not want to search the user entered string in url. For examples, if users searchs 'madhu' and in one page it contains hyperlink as "https://www.test.com/madhu/index.html", i do not want to return this page as the text does not contain in content rather in hyperlink source.
Please help!!
Can someone please help!!
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi
A custom predicate could perform things that is directly not possible with XPath, for example:
Documentation link:- https://docs.adobe.com/docs/en/aem/6-0/develop/search/implementing-custom-predicate-evaluator.html
Reference Link:- https://hashimkhan.in/tag/xpath/
// Custom Predicate Evaluators:
Broadly there are 2 kinds of Predicate Evaluators which can be used to create new predicates as per Business need.
Read More on the link.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Views
Likes
Replies