Hi Greg,

Dictionaries are not found the same way as library modules.  You have to use 
the spell: management library to load a dictionary.  See the chapter in the 
Search Developer's Guide about using the Spelling Correction Functions:

http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/search-dev-guide/spelling.xml

The API to load a dictionary is spell:load:

http://docs.marklogic.com/4.2doc/docapp.xqy#search.xqy?start=1&cat=all&query=spell:load&button=search

-Danny



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Murray, Gregory
Sent: Tuesday, March 22, 2011 10:46 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Location of dictionary files

The spell:is-correct() function can't find my dictionary file, even if it lives 
in the same directory as the module that calls spell:is-correct.

  spell:is-correct("large-dictionary.xml", "whatever")

What am I missing? Does spell:is-correct use a different method for locating 
dictionaries than ML Server uses for locating library modules?

Thanks,
Greg

Gregory Murray
Digital Library Application Developer
Princeton Theological Seminary Library
[email protected]

_______________________________________________
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