Created

Jul 04, 2013

Change in Tag-search since CQ5.6

Posted by Feike Visser

Since CQ5.6.0 there is a change when you perform a search around tags. The change is that before a search was done that exactly matched the tag, currently *also* content is found that contains a sub-tag.

I will show you the difference in this blogpost.

I am going to execute the following search in a CQ5.5 and CQ5.6 environment:

http://localhost:4502/bin/querybuilder.json?type=cq:Page&tagid=marketing:interest&tagid.property=jcr:content/cq:tags

This will find pages that contain the tag 'marketing:interest', this is one of the default tags of the Geometrixx application.

For example here you see the page-properties of the following page "/content/geometrixx/en/products/square.html"

search1

I also enabled the debug log-level for the com.day.cq.search package. This way we can see the xpath that gets executed in the end in the JCR-repository.

search2

Search results

Here the results if you execute the search statement:

CQ5.5

{"success":true,"results":0,"total":0,"offset":0,"hits":[]}

CQ5.6

{"success":true,"results":10,"total":24,"offset":0,"hits":[.......]}

As you can see we have no results in CQ5.5, and 24 hits in CQ5.6.

The reason for that is that with CQ5.6 if a page contains a sub-tag of the tag that you search, the page will be found.

Xpath statements

Because I have enabled debugging I can see the internal Xpath statement that is executed.

Here you see the two statements:

CQ5.5

//element(*, cq:Page)[jcr:content/@cq:tags = 'marketing:interest']

CQ5.6

//element(*, cq:Page)[jcr:content/@cq:tags = 'marketing:interest' or jcr:content/@cq:tags = '/etc/tags/marketing/interest' or jcr:like(jcr:content/@cq:tags, 'marketing:interest/%') or jcr:like(jcr:content/@cq:tags, '/etc/tags/marketing/interest/%')]

 

So when you do an upgrade to CQ5.6 then take this change into account.

@heervisscher

COMMENTS

  • By APK - 10:22 AM on May 31, 2014   Reply
    Many Thanks.
  • By CNA Training and schools - 8:32 AM on Jun 01, 2014   Reply
    Because I have enabled debugging I can see the internal Xpath statement that is executed.
    • By web design - 8:49 AM on Jun 01, 2014   Reply
      Because I have enabled debugging I can see the internal Xpath statement that is executed.
      • By tidung.net - 4:57 AM on Jun 02, 2014   Reply
        Thanks.
        • By High Pr Backlinks service - 7:47 AM on Jun 03, 2014   Reply
          The Sling Commons Scheduler Service is a Sling-provided mechanism that is used to execute jobs at predefined times–either periodically or at a set time. Is is based on the Quartz scheduling library and can therefore make use of its syntax for defining the execution times of jobs, making it possible to precisely indicate times like "at 6:32pm on every Saturday and Sunday" or "at 2:30am on the first Friday of every month". At the other end of the spectrum, a simple numeric value can be used to specify
          • By youtube garcinia cambogia - 6:57 AM on Jun 14, 2014   Reply
            The Sling Commons Scheduler Service is a Sling-provided mechanism that is used to execute jobs at predefined times–either periodically or at a set time. Is is based on the Quartz scheduling library and can therefore make use of its syntax for defining the execution times of jobs,
          • By hargaandroid.com - 8:52 AM on Jun 03, 2014   Reply
            Many Thanks.
            • By Teamspeak Server - 10:41 AM on Jun 03, 2014   Reply
              The Sling Commons Scheduler Service is a Sling-provided mechanism that is used to execute jobs at predefined times–either periodically or at a set time. Is is based on the Quartz scheduling library and can therefore make use of its syntax for defining the execution times of jobs, making it possible to precisely indicate times.
              • By side effects - 6:02 AM on Jun 15, 2014   Reply
                The new server features a common spawn-point where all players can gather and socialize--the Central Library. From there, you can teleport to your town's very own world where you are free to mine, build, and craft to your heart's content. Curious about what kids from other towns are up to? You're free to visit their worlds, but you can only build in your own world--the same goes for everyone else. Worried about griefing?
              • By xe may - 7:37 AM on Jun 04, 2014   Reply
                thank you
                • By Top Phlebotomy Schools - 10:36 AM on Jun 05, 2014   Reply
                  library and can therefore make use of its syntax for defining the execution times of jobs, making it possible to precisely indicate times.
                  • By apk - 11:13 AM on Jun 06, 2014   Reply
                    Thanks.
                    • By http://topicalvitamincserum.com/ - 10:18 AM on Jun 07, 2014   Reply
                      Because I have enabled debugging I can see the internal Xpath statement that is executed.
                      • By Jasa SEO - 11:27 AM on Jun 08, 2014   Reply
                        Many Thanks.
                        • By Tattoos - 4:35 PM on Jun 08, 2014   Reply
                          Many Thanks.
                          • By Commentmaster - 8:20 PM on Jun 09, 2014   Reply
                            Actually get pleasure from this fantastic submit that you've got provided for people like us. Fantastic web page along with a wonderful topic also i really find amazed to learn to read this. Its fantastic.
                            • By online loans with bad credit - 6:45 AM on Jun 11, 2014   Reply
                              Actually get pleasure from this fantastic submit that you've got provided for people like us. Fantastic web page along with a wonderful topic also i really find amazed to learn to read this. Its fantastic.
                              • By foto Wedding - 3:29 PM on Jun 11, 2014   Reply
                                i really to say nice tools from adobe. i like it.
                                • By GO here! - 7:28 AM on Jun 15, 2014   Reply
                                  got provided for people like us. Fantastic web page along with a wonderful topic also i really find amazed to learn to read this. Its fantastic.
                                  • By car vacuum - 4:13 PM on Jun 15, 2014   Reply
                                    My spouse and I absolutely love your blog and find almost all of your post’s to be just what I’m looking for. can you offer guest writers to write content for you? I wouldn’t mind producing a post or elaborating on a number of the subjects you write concerning here. Again, awesome weblog!
                                    • By some of her advice - 5:14 PM on Jun 21, 2014   Reply
                                      really to say nice tools from adobe. i like it.
                                      • By Obat Keputihan - 9:26 AM on Jun 22, 2014   Reply
                                        Many Thanks.
                                        • By NHS Computer repair - 5:03 PM on Jun 22, 2014   Reply
                                          Many Thanks.
                                          • By PC Hospital - 5:03 PM on Jun 22, 2014   Reply
                                            Many Thanks.
                                            • By PC Hospital - 9:24 AM on Jun 25, 2014   Reply
                                              really to say nice tools from adobe. i like it.
                                              • By ottawacitizen.com - 9:49 AM on Jun 25, 2014   Reply
                                                Actually get pleasure from this fantastic submit that you've got provided for people like us. Fantastic web page along with a wonderful topic also i really find amazed to learn to read this. Its fantastic.
                                                • By ottawacitizen.com - 9:50 AM on Jun 25, 2014   Reply
                                                  Actually get pleasure from this fantastic submit that you've got provided for people like us. Fantastic web page along with a wonderful topic also i really find amazed to learn to read this. Its fantastic.
                                                  • By http://progettareilbagno.it - 12:22 PM on Jun 25, 2014   Reply
                                                    We got them for credit cards because Congress mandated that the banks were liable for all but the first $50 of fraudulent transactions.
                                                    • By seorango.com - 6:16 PM on Jun 28, 2014   Reply
                                                      Because I have enabled debugging I can see the internal Xpath statement that is executed.
                                                      • By Buy high pagerank Backlinks - 3:54 PM on Jun 29, 2014   Reply
                                                        What a great short! I'm bummed I missed the show in Seattle!
                                                        • By sportdog fence collar - 5:18 AM on Jun 30, 2014   Reply
                                                          “first out gay man” and the founder of its modern LGBTQ movement. The parade starts...
                                                          • By Søk lån - 1:01 PM on Jul 01, 2014   Reply
                                                            Because I have enabled debugging I can see the internal Xpath statement that is executed.
                                                            • By best plastic surgeon atlanta - 8:41 AM on Jul 09, 2014   Reply
                                                              What a great short! I'm bummed I missed the show in Seattle!
                                                              • By silk screen printing supplies - 2:17 PM on Jul 09, 2014   Reply
                                                                Greetings! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!
                                                                • By CD Baby Artist Login.. - 6:22 AM on Jul 10, 2014   Reply
                                                                  Such features have reduced online shopping cart abandonment and helped increase sales by 70% .
                                                                  • By http://optimiseonline.com.au - 7:35 AM on Jul 10, 2014   Reply
                                                                    Such features have reduced online shopping cart abandonment and helped increase sales by 70% .
                                                                    • By arifin - 5:09 PM on Jul 10, 2014   Reply
                                                                      <a href="http://bursajamtangan.com">Jam Tangan Online</a>
                                                                      <a href="http://bursajamtangan.com">Jam Tangan Murah</a>
                                                                      • By http://bursajamtangan.com - 5:10 PM on Jul 10, 2014   Reply
                                                                        Jual Jam Tangan Online Murah
                                                                        http://bursajamtangan.com
                                                                        • This site is a leading resource for information about the Igor Ledochowski Power Of Conversational Hypnosis PDF book and hypnotic training system that teaches you effective techniques for influencing and persuading people to give you exactly what you want during everyday conversations.
                                                                          • By the venus factor diet reviews - 7:19 AM on Jul 12, 2014   Reply
                                                                            FAQ, and PDF download guide that provides an insider's look at the program and answers frequently asked questions about Dr. Sen and Samantha Pearson's unique and highly popular vision training guide.
                                                                            • By https://www.facebook.com/ben.shaoul - 9:12 AM on Jul 12, 2014   Reply
                                                                              FAQ, and PDF download guide that provides an insider's look at the program and answers frequently asked questions about Dr. Sen and Samantha Pearson's unique and highly popular vision training guide.
                                                                              • By cek tagihan pln - 4:04 PM on Jul 12, 2014   Reply
                                                                                i really look tools from adobe. i like it.
                                                                                • By click to investigate - 3:13 PM on Jul 14, 2014   Reply
                                                                                  FAQ, and PDF download guide that provides an insider's look at the program and answers frequently asked questions about Dr. Sen and Samantha Pearson's.
                                                                                  • By menu buka puasa - 8:32 AM on Jul 15, 2014   Reply
                                                                                    i really to say nice tools from adobe. i like it.
                                                                                    • By Yamaha R15 indonesia - 8:33 AM on Jul 15, 2014   Reply
                                                                                      i really to say nice tools from adobe. i like it.
                                                                                      • By Fast url opener - 5:41 PM on Jul 15, 2014   Reply
                                                                                        Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good.
                                                                                        • By Crystal X Asli - 2:33 AM on Jul 17, 2014   Reply
                                                                                          i really to say nice tools from adobe. i like it.
                                                                                          • By duplichecker - 6:59 PM on Jul 18, 2014   Reply
                                                                                            pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
                                                                                            • By best vitamin c for face - 9:57 AM on Jul 22, 2014   Reply
                                                                                              Because I have enabled debugging I can see the internal Xpath statement that is executed.
                                                                                              • By Crystal X Asli - 6:47 PM on Jul 22, 2014   Reply
                                                                                                i really to say nice tools from adobe. i like it.
                                                                                                • By rebelmouse.com/textyourexback2review/ - 9:27 AM on Jul 23, 2014   Reply
                                                                                                  Written for consumers by a consumer, this fan site includes a fun and informative Text Your Ex Back review, ebook FAQ, and PDF download guide that provides an insider's look at the program and answers frequently asked questions about Michael Fiore's unique and highly popular texting guide.

                                                                                                  ADD A COMMENT