Hello, is the dasl itself going wrong, or the fetching of the binary data later on? You need to add logic, that when the for example your url is
/binaries/pdf-archief/jstl-quick-reference.pdf that regardless whether you are in live or preview, you need to fetch it from the preview location -Ard Hi, Here is the situation, we have a search page which searches articles and assets together. In the preview website, it works fine. When I try to search at live environment I get the following message: HTTP ERROR: 500 Absolute path '/default/files/default.preview/binaries/pdf-archief/jstl-quick-reference.pdf' cannot be constructed if root path is configured as '/default/files/default.www' RequestURI=/vastgoedmarkt/live/content/uitgebreidzoeken Caused by: java.lang.IllegalArgumentException: Absolute path '/default/files/default.preview/binaries/pdf-archief/jstl-quick-reference.pdf' cannot be constructed if root path is configured as '/default/files/default.www' I understand the problem, but really don't know how to solve it. The assets are located at preview environment, so I have to hard-coded with an absolute path. It looks like that I can't get live and preview data together. Here is my generated (hippo:page tag) DASL: <d:searchrequest xmlns:dav="DAV:" xmlns:d="DAV:" xmlns:s=" http://jakarta.apache.org/slide/" xmlns:h="http://hippo.nl/cms/1.0"> <d:basicsearch> <d:select> <d:prop> <s:nrHits/> <h:publicatiedatum/> <h:type/> <h:caption/> </d:prop> </d:select> <d:from> <d:scope> <d:href>/default/files/default.www</d:href> <d:depth>infinity</d:depth> </d:scope> <d:scope> <d:href>/default/files/default.preview/binaries</d:href> <d:depth>infinity</d:depth> <d:exclude>/default/files/default.preview/binaries/pdf-archief</d:exclude> </d:scope> </d:from> <d:where> <d:and> <d:not-is-collection/> <d:or> <d:eq> <d:prop> <h:type/> </d:prop> <d:literal>artikel</d:literal> </d:eq> <d:eq> <d:prop> <h:type/> </d:prop> <d:literal>asset</d:literal> </d:eq> </d:or> <d:or> <d:eq> <d:prop> <d:getcontenttype/> </d:prop> <d:literal>application/pdf</d:literal> </d:eq> <d:eq> <d:prop> <d:getcontenttype/> </d:prop> <d:literal>application/vnd.ms-excel</d:literal> </d:eq> <d:eq> <d:prop> <d:getcontenttype/> </d:prop> <d:literal>application/msword</d:literal> </d:eq> <d:eq> <d:prop> <d:getcontenttype/> </d:prop> <d:literal>text/xml</d:literal> </d:eq> </d:or> <d:contains>jstl</d:contains> </d:and> </d:where> <d:limit> <d:nresults>10</d:nresults> <s:offset>0</s:offset> </d:limit> </d:basicsearch> </d:searchrequest> We are trying to get this working. The client is expecting a build today. It would be nice if you guys could help me out. Many thanks in advance! Wilson ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
