Created
February 1, 2014 00:32
-
-
Save eedeebee/8746163 to your computer and use it in GitHub Desktop.
MarkLogic Java Tutorial Examples as of V7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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