here's the output of command after modifing bin/xindice:

[EMAIL PROTECTED] xindice.war]# xindice ac -c
xmldb:xindice:http://localhost:8080/xindice/db -n test
[WARN] DatabaseImpl - -The uri 'xindice:http://localhost:8080/xindice/db' is
not handled be xindice
XMLDB Exception with code 5

Xindice Command Tools v1.1b3

Format: xindice action [switch] [parameter]

Where:  [switch]  implements:
    -c           Collection context (must always be specified),
                 can be either canonical name of the collection
                 or complete xmldb URL
    -e           File extension for multiple documents
    -f           File path for document retrieval and storage
    -n           Name
    -p           Index pattern
    -q           Query string
    -s           Semi-colon delimited list of namespaces for query in
                 the form prefix=namespace-uri
    -l           Use a local database rather then going over the network.
                 Should be combined with -d to specify the configuration to
use.
    -d           Path to the database configuration to use for the local
                 database. Only applies if -l is specified.
    -t           Specify the data type in collection index
    -v           Verbose
    --pagesize   Page size for file pages (default: 4096)
    --maxkeysize The maximum size for file keys (default: 0=none)


Actions:

    xindice [parameter], etc...

    ac           Adds a collection/nested collection
    dc           Deletes a collection/Nested collection
    import       Creates a collection/document from a directory tree
    li           Retrieves a list of Indexers on a Collection
    ad           Adds a document
    addmultiple  Adds multiple documents
    dd           Deletes a document
    lc           Retrieves a collection/nested collection list
    rd           Retrieves a document for storage elsewhere
    ld           Retrieves a list of documents in a particular collection
    xpath        Queries a Collection using XPath
    xupdate      Updates a Collection using XUpdate
    export       Exports a collection/document from a directory tree
    shutdown     Shuts down the Xindice Server

Examples:

    xindice ad -c /db/test -f /tmp/xmldocument -n myxmldocument
    xindice dd -c /db/test -n myxmldocument
    xindice rd -c /db/test/ocs -f a:\file.xml -n file.xml
    xindice xpath -c /db/test/ocs -q test
    xindice xpath -c /db/test -s a=http://somedomain.com/schema.xsd -q
/a:foo
    xindice xupdate -c /db/test -f /path/to/xupdate.xml
    xindice xupdate -c /db/test -n document-to-update.xml -f
/path/to/xupdate.xml

For more information, please read the Xindice - Tools Reference Guide

[EMAIL PROTECTED] xindice.war]#
-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]
Sent: giovedi 22 gennaio 2004 17.12
To: xindice-users@xml.apache.org
Subject: Re: XINDICE-1.1b3 configuration


Francesco Saverio Profiti wrote:

>How i can do it?
>
>

See bin/xindice:

...
if [ "$LOGGER" = "" ] ; then
LOGGER=org.apache.commons.logging.impl.SimpleLog ; fi
if [ "$LOGLEVEL" = "" ] ; then LOGLEVEL=INFO ; fi
...
-Dorg.apache.commons.logging.Log="$LOGGER"
-Dorg.apache.commons.logging.simplelog.defaultlog="$LOGLEVEL"


Same parameters can be used to start tomcat/jetty.

Vadim

Reply via email to