Ultimately AppBuilder ends up using search:search or cts:search in "the back 
end"  (MarkLogic DB).
JSON is converted to XML to perform the searches.

A good start for understanding search concepts from the server perspective is :
http://docs.marklogic.com/guide/search-dev

JavaScript code in AppBuilder uses the REST API which under the hood uses the 
above.
http://docs.marklogic.com/guide/rest-dev




-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
[email protected]
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com<http://www.marklogic.com/>


From: [email protected] 
[mailto:[email protected]] On Behalf Of sini narayanan
Sent: Sunday, February 10, 2013 11:57 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Search Query

Hi all,

How exactly is the search happening at the backend when we search for a 
particular document in the application builder?
Is it in json format or something else. Please calrify.
In the controller.js file, I noticed that the query string formed is in json 
format. Is this json query converted into some other format to search the DB?

If I have a json query, how do I search DB with the same.

For example: If i have the json query like below, can I use the same to query 
the DB seperately in QC.

{"text":"","page":1,"facets":{"city":{"constraintType":"range","noShadow":true,"value":["Paris"]}}}

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

Reply via email to