If you just want "stop stop" as a phrase you can do a cts:word-query("stop
stop"). Turn on the "fast phrase index" to make it efficient.
-jh-
On Nov 20, 2013, at 11:49 AM, Abhishek53 S <[email protected]> wrote:
> Hi All,
>
> Please let me know if there is any workaround for below scenario
>
>
> Current MarkLogic Behavior: Below query returning documents where the word
> “stop”[only one occurrence] is present in the document
>
> cts:search(
>
> fn:doc(),
>
> cts:near-query(
>
> (cts:word-query("stop"),cts:word-query("stop")),
>
> 1,"ordered"
>
> ),
>
> "unfiltered"
>
> )
>
>
> Expected Behavior: Return documents where “stop stop”[two terms adjacent to
> each other] phrase is present
>
> Please advise.
>
> Abhishek Srivastav
> Tata Consultancy Services
> Cell:- 609-865-1885
> Mailto: [email protected]
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty. IT Services
> Business Solutions
> Consulting
> ____________________________________________
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general