[MarkLogic Dev General] Excluding dictionary from searches

Murray, Gregory gregory.murray at ptsem.edu
Fri Mar 23 10:33:23 PDT 2012


Hi Geert and Colleen,

I went with the directory-query, and it works perfectly. Many thanks!

Greg


On Mar 23, 2012, at 12:23 PM, Colleen Whitney wrote:

> Yes, or add a collection and use additional-query to exclude it. 
> 
> ________________________________________
> From: general-bounces at developer.marklogic.com [general-bounces at developer.marklogic.com] On Behalf Of Geert Josten [geert.josten at dayon.nl]
> Sent: Friday, March 23, 2012 8:31 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Excluding dictionary from searches
> 
> 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,
> Geert
> 
>> -----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
> searches?
>> 
>> 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
> searches
>> using the Search API, the dictionary file is being searched and is
> included in
>> search results. The URI for the dictionary is simply
> "large-dictionary.xml"
>> whereas all my "real" documents are in a directory structure, so their
> URIs
>> always start with a slash. Perhaps there's a way to limit the search to
> documents
>> 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
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general



More information about the General mailing list