Thanks Geert, very helpful! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Geert Josten Sent: Tuesday, June 16, 2009 4:22 PM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] RE: Making documents and directories unqueryable
Hi Ivan, Though there is no explicit way to hide a document, I guess there are plenty ways to achieve what you are looking for. The most important question is: who are you trying to hide the documents for? Are those auxiliary files that have no real contents? Or are those sensitive files, whose contents may not be exposed? If it concerns just files that can be ignored, change your query to exclude such directories, or put them at a different root directory than where you are searching. You could also put the searchable documents in a specific collection and search only that, or store the contents as document-properties of some other file. If it is more a security issue, you might prefer to think in terms of document permissions. Assign special document permissions to your document, to which the default search user has no access. Create a special user (role) to allow access to those documents. Hope that helps, Geert > Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Baranov, Ivan - Moscow > Sent: dinsdag 16 juni 2009 13:55 > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] Making documents and > directories unqueryable > > Hi Folks, > > > > I have a question about MarkLogic server file system. Is > there any way to prevent documents or directories from > indexing? E. g. I have one folder named data on my server and > this is where my XMLs are stored. Suppose I've created a > subfolder named noindex inside that data folder. What should > I do to make the documents in it unqueryable? > > > > As I've learned from the latest conversation on this list, I > can simply assign binary format to them on initial insert > using Mime Types configuration. But is it possible to "hide" > XML files from XQuery queries without re-uploading them as binaries? > > > > Thanks in advance. > > > > Van > > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
