Hi there, Just following up on my post.
Does the jcr:contains() function actually filter on the property that you specify? I have stripped my query down to ' //*[jcr:contains(category, 'cardiology')] ' and it still returns bizarre results below. I ran this throught the query browser restricting the item type to mgnl:contentNode /search/category /clinic/news/Partners-sought-for-novel-prosthetic-eye/category /clinic/CardiologySummary /clinic/CardiologySummary/mainContent/0 Why does it return the results that are in the 'mainContent' if i have only specified the 'category' node ? Thanks, dieter dieter wrote: > > Hi, > > I have managed to put together a query which would select a multiple value > parameter or a single value parameter which is great and what i have > wanted for a long time. > > The problem is it also returns other results that i do not want, like when > the search word appears in the body of text. > > //[EMAIL > PROTECTED]:primaryType='mgnl:content']/*[jcr:contains(category,'electromedical')or > jcr:contains(@category,'electromedical')] > > This is my query. Like i said, if i have 'electromedical' appearing in the > body of an page, it will return that result too. I only want it to return > if it is found in the page 'category'. > > Thanks, > > Dieter > -- View this message in context: http://www.nabble.com/Problems-with-xpath-syntax-tf3965188.html#a11289300 Sent from the Magnolia - User mailing list archive at Nabble.com. ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
