[MarkLogic Dev General] Schema validation incorrect for no-namespace document

2014-12-09 Thread Will Thompson
I recently ran into some issues validating a no-namespace document. The schema was updated, which should have caused the document to fail validation, but it didn't. I have been using xdmp:expanded-tree-cache-clear() following schema updates, but neither that nor a server restart had any affect.

Re: [MarkLogic Dev General] Schema validation incorrect for no-namespace document

2014-12-09 Thread Mary Holstege
On Tue, 09 Dec 2014 12:42:29 -0800, Will Thompson wthomp...@jonesmcclure.com wrote: I recently ran into some issues validating a no-namespace document. The schema was updated, which should have caused the document to fail validation, but it didn't. I have been using

[MarkLogic Dev General] Is it possible to add range index from command line without bootstrap?

2014-12-09 Thread Jenny Wang
Classification: Public I'm working on an automation scenario which consists of two steps: first ingest some data with a missing range index, this will result in some invalid documents in MarkLogic. Then after adding the range index, I'll need to reingest the data saved in MarkLogic and verify

Re: [MarkLogic Dev General] How to Load Data

2014-12-09 Thread mohan mohan
Hi Can somebody suggest me how to Load data in MarkLogic Thanks Mohan On Wed, Dec 10, 2014 at 3:32 AM, Jenny Wang jenny.w...@db.com wrote: Classification: *Public* I’m working on an automation scenario which consists of two steps: first ingest some data with a missing range index, this

Re: [MarkLogic Dev General] Is it possible to add range index from command line without bootstrap?

2014-12-09 Thread Danny Sokolsky
Hi Jenny, Yes, you can script any configuration change using the Admin API. Here is an example of adding an index: http://docs.marklogic.com/guide/admin-api/configure#id_80248 You could create a service in XQuery and call it from the command line (for example, using curl). Also, you would

Re: [MarkLogic Dev General] Is it possible to add range index from command line without bootstrap?

2014-12-09 Thread Michael Blakeley
Have you looked at https://docs.marklogic.com/admin:database-add-range-element-index yet? I'm not clear on what you mean by invalid documents. But if you create a range index and reindexing is enabled, then each forest will automatically reingest documents as needed. There's no need to delete

Re: [MarkLogic Dev General] Schema validation incorrect for no-namespace document

2014-12-09 Thread Will Thompson
Sure, here is the schema: xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:vc=http://www.w3.org/2007/XMLSchema-versioning; vc:minVersion=1.0 vc:maxVersion=1.1 xs:element name=dir xs:complexType xs:sequence xs:element name=doc

Re: [MarkLogic Dev General] How to Load Data

2014-12-09 Thread Florent Georges
On 9 December 2014 at 14:27, mohan mohan wrote: Can somebody suggest me how to Load data in MarkLogic Everything you always wanted to know about loading* (*but were afraid to ask): http://docs.marklogic.com/guide/ingestion. Regards, -- Florent Georges http://fgeorges.org/

Re: [MarkLogic Dev General] Schema validation incorrect for no-namespace document

2014-12-09 Thread mohan mohan
Can some body explain me what is schema agnostic ?? On Wed, Dec 10, 2014 at 4:12 AM, Will Thompson wthomp...@jonesmcclure.com wrote: Sure, here is the schema: xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:vc=http://www.w3.org/2007/XMLSchema-versioning;