Hi,

I have HTML, Word and PDF files converted by the CPF, and I'm using
the search api to query them.

In the search response, the path given to the html files is slightly
different from the others, for example:

1. <search:result
path="doc(&quot;/content/user/pdf/abc_pdf.xml&quot;)"
uri="/content/user/pdf/abc_pdf.xml" index="1" ....

2. <search:resultpath="doc(&quot;/content/user/html/abc.html&quot;)"
uri="/content/user/html/abc.html" index="2" ....

The path to the PDF file (1) is "filename_pdf.xml", and the same
happens for Word files - "filename_word.xml".  However for the html
files (2), the path is "filename.html".

I don't currently use the search:match/@path, but that suffers the
same problem and looks likely to cause an exception if used:

<search:match path="doc(&quot;/content/user/html/abc.html&quot;)/text()">

In that directory (/content/user/html/) all the files are created as
expected: ".html", "_html.xhtml" and "_html.xml" so I suspect it's a
possible bug in the search:response xml ?

I'm using 4.1-2

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to