Hi, Sini:

Can you expand on what you mean by "insert a complete database request"?

Out of the box, the built app generated by Application Builder supports search
requests in the search field.  For the details on what's supported, please see:

    http://docs.marklogic.com/guide/app-builder/intro#id_43550
    http://docs.marklogic.com/guide/search-dev/search-api#id_94111

It is possible to set up an app server that provided a text box for collecting
an XPath or even XQuery expression for evaluation on the server, but
I wouldn't think there'd be any benefit to using the search field as that
text box.  You would of course want to be very careful to restrict the users
who could use that app server because such a service would open the door
for injection attacks.

It might be better to use the REST API,which provides secure access to core
database capabilities.  For the details, please see:

    http://docs.marklogic.com/guide/rest-dev
    http://docs.marklogic.com/REST/client

The documentation also describes the Java client for the REST API.


Hoping that's useful,


Erik Hennum

________________________________
From: [email protected] 
[[email protected]] on behalf of sini narayanan 
[[email protected]]
Sent: Thursday, December 27, 2012 9:04 PM
To: [email protected]
Subject: [MarkLogic Dev General] Insert db request in search field


Hi All,
I have an application built using the application builder in marklogic.
Is it possible to insert a complete database request in the search field to get 
the result?
Is it recommended to perform such activity ?
Please help.

Thanks,
Sini
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to