Hi, Manoj:

While we don't expose an XQuery API to the REST API functionality at present, 
in fact the REST API calls the Search API, which does most of the work for 
search.

In particular, your REST API extension can call the search:search() function to 
execute a string search.  Please take a look at:

    http://docs.marklogic.com/guide/search-dev/search-api
    http://docs.marklogic.com/search:search


Hoping that helps,


Erik Hennum

________________________________
From: [email protected] 
[[email protected]] on behalf of manoj viswanadha 
[[email protected]]
Sent: Thursday, July 25, 2013 11:24 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ML-6 REST API

Hi Erik,

My Requirement is can we use something like q= constarint:word type of search 
in the custom modules i created
using Resource Service extension. Its some thing like using stringquery in 
custom modules created simillar to search service in
Rest Api.

Can you suggest me some ways to achieve this if there is any possibility?

Thanks,
Manoj,



On Thu, Jul 25, 2013 at 6:37 PM, Erik Hennum 
<[email protected]<mailto:[email protected]>> wrote:
Hi, Manoj:

Good to hear of your success.  Can you expand on the new requirements?

Is it to customize search in some way?  If so, what is the desired flow of 
control or data flow between the customizing and base code?


Erik Hennum

________________________________
From: 
[email protected]<mailto:[email protected]>
 
[[email protected]<mailto:[email protected]>]
 on behalf of manoj viswanadha 
[[email protected]<mailto:[email protected]>]
Sent: Thursday, July 25, 2013 5:46 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] ML-6 REST API

Hi all,

I have created custom modules on REST API using Resource service extension with
endpoint v1/resources which is working brilliantly.

New Requirement:

Now i got a new requirement to perform search on top of custom modules. So i 
want to use Rest API search(v1/search)  on top of custom modules created using 
Resource Service Extension. Is there any way to achieve this? Please provide me 
with some suggetions to achieve this.


Thanks in advance,
Manoj Viswanadha
Cognizant Technology Services.



_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general


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

Reply via email to