Skip to content

Instantly share code, notes, and snippets.

@eedeebee
Created February 1, 2014 00:32
Show Gist options
  • Save eedeebee/8746163 to your computer and use it in GitHub Desktop.
Save eedeebee/8746163 to your computer and use it in GitHub Desktop.
MarkLogic Java Tutorial Examples as of V7
// Create a search definition
StringHandle handle = new StringHandle(
"<q:qbe xmlns:q=\"http://marklogic.com/appservices/querybyexample\">\n" +
" <q:query>\n" +
" <PLAY>\n" +
" <PERSONAE>\n" +
" <PERSONA><q:word>brother</q:word></PERSONA>\n" +
" </PERSONAE>\n" +
" </PLAY>\n" +
" </q:query>\n" +
"</q:qbe>"
);
RawQueryByExampleDefinition query = queryMgr.newRawQueryByExampleDefinition(handle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment