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
BedrockMission!

Learn More

View all

Sign in to view all badges

search component

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

15-10-2015

My requirement is to create a blog which also includes creating a search component that is used to search by author, date and category. The OOTB component (/libs/social/blog/components/search) is not helping for date search. I checked the code for it the form action points to the same page. I could not understand how the code works. On clicking search the url changes to

    localhost:4502/cf#/content/Jai/blog.html?query={search-string}&blog=search&_charset_=UTF-8

Kindly let me know which script/bundle/code gets executed when the url gets appended with search parameters

I am using Adobe CQ5.6.1. Thanks in advance.

View Entire Topic

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

15-10-2015

Thanks for the response. I some how figuredout how the OOTB search component works. 

The xpathquery formed is  /jcr:root/content/farmers-blog/*[not(fn:name() = 'unlisted')]/*/element(*, cq:Page)[jcr:contains(., '{searchquery1}') or jcr:contains(., '{searchquery2}')]

 

But this does not work for date. I could not make a search using date. Should there be any changes made in xpathquery formed??