Pragya, the server uses file extension as a hint as to document format (XML, text or binary). There is a mimetypes configuration panel in the Admin interface where you can look at and specify mappings. By default, with no extension the document is inserted as a binary node. You can pass an option into xdmp:document-load or xdmp:document-insert to specify format in cases where you want to be explicit or override the mappings.
On May 27, 2010, at 1:16 AM, "Pragya Kapoor" <[email protected]<mailto:[email protected]>> wrote: Hi, Today I found an unusual thing. I inserted a an xml with Uri words, it was successfully inserted. Also I can view the xml with doc(“words”). But when I search the doc using cts:serach, it gives me no results for $x in cts:search(doc("words")//list/ body, cts:element-value-query(xs:QName("title"), "abc", "case-insensitive"),"score-simple", 1.0) return $x/title/text() Now when I reinserted the doc with Uri /words.xml or words.xml, the same query gave me desired results. So, is there some specific format for document Uri’s. Thanks, Pragya _______________________________________________ General mailing list [email protected]<mailto:[email protected]> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
