Not query is part of the default grammar, using the "-" operator. So try  
querying for "-uniqueref:16633" (you can verify how that parses using 
search:parse). But are you asking whether you can bake that into the constraint?

Sent from my iPhone

On Oct 4, 2011, at 5:54 AM, "sachin gill" 
<[email protected]<mailto:[email protected]>> wrote:

Hi  ,
 I need to implement a  search query  where  constraints are mentioned below :
<options 
xmlns="<http://marklogic.com/appservices/search>http://marklogic.com/appservices/search";>
  <constraint name="contenttype">
<value>
<element ns=" name="contentType"/>
</value>
 </constraint>
 <constraint name="uniqueref">
<value>
<element ns="" name="uniqueref"/>
</value>
 </constraint>
 </options>
and below is the query, I need to implement NOT condition for uniqueref 
constraint.
let $query := fn:concat("contenttype:document","  uniqueref:1695541627")
how can I implement it because I m facing issues.

Thanks
Sachin
_______________________________________________
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