Hello
I wonder how I have to use XPath to search within the content of documents. It workes pretty well with keywords and name but with content it always failes
I wonder how I have to use XPath to search within the content of documents. It workes pretty well with keywords and name but with content it always failes
Code: Select all
Thank you$result = $searchRequest->findByStatement($token, '/jcr:root/okm:root/DAI/Marken//element(*,okm:document)[jcr:contains(@okm:content,\'Ajax\')]order by @jcrcore descending', 'xpath'); //doesn't work
$result = $searchRequest->findByStatement($token, '/jcr:root/okm:root/DAI/Marken//element(*,okm:document)[jcr:contains(@okm:name,\'Ajax\')]order by @jcrcore descending', 'xpath'); //works
$result = $searchRequest->findByStatement($token, '/jcr:root/okm:root/DAI/Marken//element(*,okm:document)[jcr:contains(@okm:keywords,\'Ajax\')]order by @jcrcore descending', 'xpath'); //works
$result = $searchRequest->findByStatement($token, '/jcr:root/okm:root/DAI/Marken//element(*,okm:document)[jcr:contains(@okm:name,\'Ajax\') or jcr:contains(@okm:keywords,\'something\') ]order by @jcrcore descending', 'xpath'); //works