Ah yes. This will be part of the MLJS December release. (Ready for Christmas - 
assuming we’ve all pleased Santa this year!)

I’ll document it in there too. I have a custom snippeting library that does the 
expansion, and a convenience method (options.thesaurus() ) that configures a 
custom constraint to use it.

http://adamfowleruk.github.io/mljs/apidocs/core/options.html#thesaurusConstraint

(Note the link to the XQY file won’t work until I merge my ‘dev’ branch in to 
‘master’. (Replace ‘master’ on the URL with ‘dev’ to see the file now).

Hope this helps.

Regards,

Adam.

----

Adam Fowler BSc MBCS
Senior Sales Engineer
UK & Ireland Public Sector
MarkLogic Corporation
[email protected]
Mobile: +44 7880 358 293
Blog: http://adamfowlerml.wordpress.com/
Twitter: @adamfowleruk
Skype: adamfowleruk

Couldn’t join us at the MarkLogic Summit? View the presentations here.

On 16 Dec 2013, at 17:02, Erik Hennum <[email protected]> wrote:

> Hi, Shannon:
> 
> In fact, Adam Fowler has done exactly that:  used a custom constraint to do 
> query expansion by constructing an or-query from the initial term and all 
> synonyms in the thesaurus.
> 
> Hoping that helps,
> 
> 
> Erik Hennum
> ________________________________________
> From: [email protected] 
> [[email protected]] on behalf of Shannon Scott Shiflett 
> [[email protected]]
> Sent: Saturday, December 14, 2013 3:56 PM
> To: General MarkLogic Developer Discussion
> Subject: [MarkLogic Dev General] Thesaurus & Search API
> 
> Hi,
> 
> can we use thesaurus functions with Search API? Could AppBuilder support it 
> through a custom constraint? Thanks.
> 
> Best,
> Shannon
> _______________________________________________
> General mailing list
> [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