[MarkLogic Dev General] How to use near query in search:search function

Micah Dubinko Micah.Dubinko at marklogic.com
Mon Apr 16 12:35:12 PDT 2012


I believe you can add options="ordered" to the <joiner> element here.

-m

On Apr 16, 2012, at 12:14 PM, Steiner, David J. (LNG-DAY) wrote:

Is there a way to specify “ordered”?

I see: <joiner  strength="30" apply="near2" consume="2" element="cts:near-query">NEAR/</joiner>”

And “near2”s implementation… So, would I actually have to add a similar block if I wanted to get “ordered” to happen?


From: general-bounces at developer.marklogic.com<mailto:general-bounces at developer.marklogic.com> [mailto:general-bounces at developer.marklogic.com] On Behalf Of Colleen Whitney
Sent: Tuesday, January 03, 2012 12:18 PM
To: General MarkLogic Developer Discussion
Cc: general at developer.marklogic.com<mailto:general at developer.marklogic.com>
Subject: Re: [MarkLogic Dev General] How to use near query in search:search function

Mariano, starting with version 4.2 there are two near query operators built in:  NEAR and NEAR/# (where # is a distance).

So "dog NEAR cat" parses to a near query with the default distance (10), and "dog NEAR/2 cat" parses to a near query with a distance of 2.

Sent from my iPhone

On Jan 3, 2012, at 6:07 AM, "Mariano Grau Calín" <mgrau at grupojoly.com<mailto:mgrau at grupojoly.com>> wrote:
Hi,

Is there any operator in search:search function for to run near-query searchs?

Regards,

Mariano Grau
mgrau @ grupojoly.com<http://grupojoly.com>
Dpto. Sistemas
Grupo Joly

_______________________________________________
General mailing list
General at developer.marklogic.com<mailto:General at developer.marklogic.com>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
General at developer.marklogic.com<mailto:General at developer.marklogic.com>
http://developer.marklogic.com/mailman/listinfo/general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120416/f04f7397/attachment.html 


More information about the General mailing list