Loading TOC...

MarkLogic 9 Product Documentation
op:import

op:import(
   $importablePlan as item()
) as map:map

Summary

This function instantiates a plan from the JSON representation of a plan that was exported by the op:export function.

For more information, see Exporting and Importing a Serialized Optic Query in the Application Developer's Guide

Parameters
$importablePlan The plan to be imported. This is generated by the op:export function.

Example


xquery version "1.0-ml";

import module namespace op="http://marklogic.com/optic"
     at "/MarkLogic/optic.xqy";

op:import(fn:doc('plan.json')/node())
   =>op:result()
  
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.