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 not need to reload the content if reindexing is enabled.  With 
reindexing on, the needed content would reindex automatically.

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Jenny Wang
Sent: Tuesday, December 09, 2014 2:02 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Is it possible to add range index from command 
line without bootstrap?


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 valid documents are generated. 
Is there a way to add a range index without removing documents in the database? 
Note that I have to do it from command line, so adding the index from UI 
doesn't solve my problem.


Jenny




---
This communication may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this communication in 
error) please notify the sender immediately and destroy this communication. Any 
unauthorized copying, disclosure or distribution of the material in this 
communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information 
contained in this communication should not be regarded as such.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to