The only time search would not be working is when repository or indexes are corrupted. My guess would be that first time you executed the search accidentally the repository you were searching on was not a website.
Since indexing is done asynchronously, there is slight chance that you might hit the few ms window after making the change before seeing the result in search, but I doubt that this was the case. My bet is on the human factor, tho if you manage to reproduce the problem consistently, please open an issue in jira with the instructions on how to reproduce it. HTH, Jan On Mar 14, 2011, at 11:07 AM, Hans Wichman wrote: > Update: > if I go to the website, and switch the template for My-Page to another > template and then back again, the search does work. > Spells buggy to me;) > > From: [email protected] [[email protected]] On > Behalf Of Antti Hietala [[email protected]] > Sent: Thursday, March 10, 2011 3:07 PM > To: Magnolia User-List > Subject: Re: [magnolia-user] finding page nodes with a certain template > > select * from nt:base where mgnl:template=<template name> > > For example > select * from nt:base where mgnl:template='stkArticle' > > Run the query in the website workspace. > > --Antti > > On Mar 10, 2011, at 3:01 PM, Hans Wichman wrote: > >> Hi list, >> >> I'm trying to come up with a JCR query that returns all pagepaths whose >> actual pages are using a specific template, but not having much luck sofar. >> >> The idea is that given a templatename, I can show a list of pages using that >> template. >> >> I've been using another approach sofar based on contentutils and filters but >> it is agonizingly slow, hence I thought I'd try my luck through the JCR >> queries. >> >> regards >> Hans >> >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
