[MarkLogic Dev General] What is the URI of the doc that
isloadedfrom admin panel ?
dsokolsky at marklogic.com
Fri Sep 26 11:11:21 PDT 2008
CQ is a developer-site tool that makes it easy to run queries against MarkLogic Server:
How are you running your queries? Make sure you are querying the same database that you loaded the document into. Run this query:
which will return the database name.
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of ?????? ??????????? (Nagesh S)
Sent: Friday, September 26, 2008 6:26 AM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] What is the URI of the doc that isloadedfrom admin panel ?
I am sorry, I don't know what 'CQ' is.
Yes, I have selected the right database, have the right forest attached.
Follow-up question :
The xdmp:document-insert worked fine with the name of the document provided as "test.xml". Subsequently, all .xqy have also worked fine with the URI as "test.xml". I can also see that the admin panel shows one document in the database. So, how come when loading using xdmp:document-insert the URI doesn't have to be a representation of the Windows filesystem ?
On 9/26/08, Shannon <Shiflett at virginia.edu> wrote:
> Are you using cq? If yes, have you selected the correct database from
> the dropdown?
> Sent from iPhone
> On Sep 26, 2008, at 1:27, "ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)"
> <nageshblore at gmail.com> wrote:
>> Yes, I meant the 'Load' tab on the Admin interface.
>> I did have the URI come up to me with /C/Program Files/etc. But, this
>> URI (or, any of its variants) would never work for me as
>> doc-available() would always return false. oh yes, I did try URL
>> encoding the blank space too.
>> On 9/26/08, Danny Sokolsky <dsokolsky at marklogic.com> wrote:
>>> If you are referring to the load tab on the database portion of the
>>> Admin Interface, it tells you the URI before it loads it. For
>>> example, if you put c:\tmp in the directory and test.xml in the
>>> filter, it will give you a dialog telling you the filenames and uris
>>> corresponding to the
>>> you will load. Something like:
>>> The following files will be loaded:
>>> Filesystem Location URI
>>> c:\tmp\test.xml /c/tmp/test.xml
>>> The URI is /c/tmp/test.xml. So if you run the following query
>>> against the database to which you loaded it:
>>> doc("/c/tmp/test.xml") it will return the document.
>>> -----Original Message-----
>>> From: general-bounces at developer.marklogic.com
>>> [mailto:general-bounces at developer.marklogic.com] On Behalf Of ??????
>>> ??????????? (Nagesh S)
>>> Sent: Thursday, September 25, 2008 4:17 PM
>>> To: general at developer.marklogic.com
>>> Subject: [MarkLogic Dev General] What is the URI of the doc that is
>>> loadedfrom admin panel ?
>>> When I upload a XML file to the database from the admin panel, I am
>>> shown the resulting URI which is a representation of the Windows
>>> path to that file. However, whenever I use this URI (or, in _ANY_
>>> which way I hack it ! Specifically, I tried with a URI relative to
>>> root of app server, etc.), the doc-available function always returns
>>> 'false'. So, what is the URI of the doc that is loaded from admin
>>> panel ?
>>> OTOH, when loaded using the xdmp:insert
>>> General mailing list
>>> General at developer.marklogic.com
>> General mailing list
>> General at developer.marklogic.com
> General mailing list
> General at developer.marklogic.com
More information about the General