Hi,

What I have done is to comment out the appropriate lines in the
Configuration.java file, circa line 513 and re-compile:

private void configureCollections() {
        // initialize collections
        List<String> collections = new ArrayList<String>();
// COMMENT OUT THE FOLLOWING 2 LINES
        //collections.add(RecordLoader.NAME + "." +
System.currentTimeMillis());
        //logger.info("adding extra collection: " + collections.get(0));
        String collectionsString = properties
                .getProperty(OUTPUT_COLLECTIONS_KEY);
        if (collectionsString != null && !collectionsString.equals(""))
{
            collections.addAll(Arrays.asList(collectionsString
                    .split("[\\s,]+")));
        }
        // keep a base list of collections that can be extended later
        baseCollections = collections.toArray(new String[0]);
    }

This took care of the problem,

Nivaldo


From: Mark Helmstetter <[email protected]>
Subject: RE: [MarkLogic Dev General] recordloader's weird default
        collection?
To: General Mark Logic Developer Discussion
        <[email protected]>
Message-ID:
        
<[email protected]>
Content-Type: text/plain; charset="us-ascii"

Jakob,

It looks to me like there's not currently a way to disable the default
collections it adds.  It should be easy enough to change this behavior
in RecordLoader, we'd probably need to add another config key or a
special value for OUTPUT_COLLECTIONS in order to maintain backwards
compatibility.

One possible workaround to consider is to use your own ingestion module
configured via CONTENT_FACTORY_CLASSNAME and CONTENT_MODULE_URI.  As an
added bonus, this approach will give you some flexibility if there's any
kind of transformation you need to apply to your content on the way in.

--Mark

> -----Original Message-----
> From: [email protected] [mailto:general-
> [email protected]] On Behalf Of Jakob Fix
> Sent: Saturday, September 05, 2009 10:24 PM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] recordloader's weird default
collection?
> 
> Hi,
> 
> am I correct to assume that the RecordLoader does add some kind of
> default collection to each document it adds to a database?  I have
> observed that all files added have a collection name like this
> "com.marklogic.ps.RecordLoader.1252184760899".  I read through the
> RecordLoader's README file, and the OUTPUT_COLLECTIONS' default value
> is null.
> 
> Is there a way not to generate this collection?
> 
> the configuration properties in this scenario used are:
> 
> CONNECTION_STRING=xcc://admin:[email protected]:8090
> INPUT_PATH=c:/users/jakob/downloads/ilibrary-ftp.zip
> INPUT_STRIP_PREFIX=ilibrary-ftp/ilibrary-ftp/
> OUTPUT_COLLECTIONS=ilibrary
> SKIP_EXISTING=true
> THREADS=4
> 
> MarkLogic version is 4.1-1. RecordLoader is version 2009-09-01.1 on
> 1.6.0_14
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general


------------------------------

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general


End of General Digest, Vol 63, Issue 17
***************************************
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to