Hi

I am trying to search for documents with few constraints (indexes created).

I am having 1000's of documents in my system which are as per my search 
criteria.

Now, I want to have an additional constraint which should return docs with a 
specified element in them (hmhGuid).

Note: this is working as expected when I run it in QC. It's not working only in 
REST services.

I also tried using other queries to test in additional query but none of them 
are adding up the constraints. Not sure whether there is a bug in REST for 
additional query.

Regards,
Gnana(GP)

From: Bodireddy, Gnanaprakash (Cognizant)
Sent: 23 April 2015 14:02
To: [email protected]
Subject: Additional Query in Rest

Hi

I am facing an issue with additional-query in REST Search options.

I am having search options as below. I am expecting the results only with 
element hmhGuid.

<search:options xmlns:search="http://marklogic.com/appservices/search";>
  <search:quality-weight>0</search:quality-weight>
  <search:search-option>unfiltered</search:search-option>
  <search:additional-query>{cts:element-query(xs:QName("hmhGuid"), 
cts:and-query(()))}</search:additional-query>
....

Search options are returning results as expected in QC but not through REST 
services. Additional query won't work in REST?

Regards,
Gnanaprakash Bodireddy
Sr. Associate - Projects, Dublin Ireland
Mob: +353 87 964 9549
Desk: +353 1 650 0369



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to