[MarkLogic Dev General] Excluding dictionary from searches

Geert Josten geert.josten at dayon.nl
Fri Mar 23 08:31:15 PDT 2012

Hi Greg,

Use additional-query to add a directory-query for the root of where all
your files are (in your case you could use '/' I guess).

Kind regards,

> -----Oorspronkelijk bericht-----
> Van: general-bounces at developer.marklogic.com [mailto:general-
> bounces at developer.marklogic.com] Namens Murray, Gregory
> Verzonden: vrijdag 23 maart 2012 16:10
> Aan: MarkLogic Developer Discussion
> Onderwerp: [MarkLogic Dev General] Excluding dictionary from searches
> Is there a standard or preferred way to exclude dictionary files from
> It appears that using the spell API with a given dictionary requires
loading the
> dictionary file into the database itself. I find that when performing
> using the Search API, the dictionary file is being searched and is
included in
> search results. The URI for the dictionary is simply
> whereas all my "real" documents are in a directory structure, so their
> always start with a slash. Perhaps there's a way to limit the search to
> with a URI that matches a certain regular expression? Or should I use
> permissions and amps to make the dictionary file unreadable normally but
> readable when using the spell API? That seems like a lot of trouble.
Surely this is
> a common problem?
> Thanks,
> Greg
> Gregory Murray
> Digital Library Application Developer
> Princeton Theological Seminary
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

More information about the General mailing list