Skip to content

Instantly share code, notes, and snippets.

@eedeebee
Created December 18, 2013 01:18
Show Gist options
  • Select an option

  • Save eedeebee/8015776 to your computer and use it in GitHub Desktop.

Select an option

Save eedeebee/8015776 to your computer and use it in GitHub Desktop.
Search query plan
<search:plan>
<qry:query-plan xmlns:qry="http://marklogic.com/cts/query">
<qry:info-trace>xdmp:value("xdmp:plan(cts:search(fn:collection(),cts:query($query),$options,...")</qry:info-trace>
<qry:info-trace>Analyzing path for search: fn:collection()</qry:info-trace>
<qry:info-trace>Step 1 is searchable: fn:collection()</qry:info-trace>
<qry:info-trace>Path is fully searchable.</qry:info-trace>
<qry:info-trace>Gathering constraints.</qry:info-trace>
<qry:word-trace text="NASA">
<qry:key>3178996703552976097</qry:key>
</qry:word-trace>
<qry:info-trace>Search query contributed 1 constraint: cts:word-query("@NASA", ("lang=en"), 1)</qry:info-trace>
<qry:partial-plan>
<qry:term-query weight="1">
<qry:key>3178996703552976097</qry:key>
<qry:annotation>word("NASA")</qry:annotation>
</qry:term-query>
</qry:partial-plan>
<qry:info-trace>Executing search.</qry:info-trace>
<qry:final-plan>
<qry:and-query>
<qry:term-query weight="1">
<qry:key>3178996703552976097</qry:key>
<qry:annotation>word("NASA")</qry:annotation>
</qry:term-query>
</qry:and-query>
</qry:final-plan>
<qry:info-trace>Selected 3 fragments</qry:info-trace>
<qry:result estimate="3"/>
</qry:query-plan>
</search:plan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment