Skip to content

Instantly share code, notes, and snippets.

@eedeebee
Created February 1, 2014 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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