Hello, > Hi guys, > > I'm trying to search out an exact phrase, for instance "I > want cookies", in a group of nodes but nodes that contain any > of those words are being returned. > > XPath : //webfmis:content[jcr:contains(@webfmis:body,"I want > cookies")]
Yes, your "I want cookies" will be tokenized and OR-ed. You need to have something like: xpath="//webfmis:content[jcr:contains(@webfmis:body,'\"I want cookies\"')] "; -Ard > > The above xpath should return one node, it however, returns > 2, the second node contains the word "cookies". > > Is there a better way to search for an exact string in binary > files and nodes? > > Thanks, > Sean >
