IndexServer.dtd

Configuration Reference

Generated by DTDDoc.



<IndexServer>

It is the root element of the Index Server configuration.

<IndexServer>'s children
NameCardinality
IndexManagerAt least one
LogFileOnly one
XFileFactoryClassOne or none
<IndexServer>'s attributes
NameValuesDefault
port
Element's model :

(LogFile,XFileFactoryClass?,IndexManager+)


<IndexManager> Child of IndexServer

This tag defines an index.
The configuration file must contain one of this element for each index you want to create.

<IndexManager>'s children
NameCardinality
AnalyzerClassOnly one
IndexDescriptionOne or none
IndexDirectoryOnly one
IndexNameOnly one
LogOne or none
SourceAt least one
TasksOne or none
Element's model :

(IndexName,IndexDescription?,IndexDirectory,AnalyzerClass,Source+,Log?,Tasks?)


<LogFile> Child of IndexServer

Path to the main log file. This Log collects messages from the server itself.


<Log> Child of IndexManager

Path to the index-specific log file. If this element is omitted, then all index level messages go to the main log file.

<Log>'s attributes
NameValuesDefault
levelHIGH, LOW

<XFileFactoryClass> Child of IndexServer

Defines the XFileFactory class to be used. If not present the org.apache.lucene.server.SimpleXFileFactory will be used.


<IndexName> Child of IndexManager

Name of the index. This name is used as an identifier by the server.


<IndexDirectory> Child of IndexManager

this is the path to the directory where Lucene files are stored for this index.


<AnalyzerClass> Child of IndexManager

the java Analyzer class that will be used to create the index.


<IndexDescription> Child of IndexManager

informative description.


<Source> Child of IndexManager

A source is a set of files to be indexed.
It is defined by a Location and several FileHandler. An index may be consist of several sources.

A given file matches the source if :

  • it is part of the source's location
  • AND it matches at least one of the source's FileHandler

  • If a file matches more than one sources, only the first one in appearance order is retained for this file. In the same way if a file matches several FileHandler, the first one will be taken.

    <Source>'s children
    NameCardinality
    FileHandlerAt least one
    LocationOnly one
    Element's model :

    (Location,FileHandler+)


    <Location> Child of Source

    the location is a base path that determines a set of files.

    There are three types of locations.


    <Location>'s attributes
    NameValuesDefault
    XFileFactoryClass

    <FileHandler> Child of Source

    This element defines what to do with each type of file that the file set includes.

    <FileHandler>'s children
    NameCardinality
    FileHandlerClassOnly one
    FileTypeOnly one
    Element's model :

    (FileType,FileHandlerClass)


    <FileType> Child of FileHandler

    A FileType is a valid regular expression.
    A file is said to match the enclosing FileHandler if its name matches this regular expression.


    <FileHandlerClass> Child of FileHandler

    Name of a java class that implements the org.apache.lucine.server.FileHandlerInterface interface.


    <Tasks> Child of IndexManager

    Defines a list of tasks to be scheduled.

    <Tasks>'s children
    NameCardinality
    BuildAny number
    Element's model :

    (Build*)


    <Build/> Child of Tasks

    The build task is the action of rebuild the entire index.

    <Build>'s attributes
    NameValuesDefault
    at
    whenEVERYDAY, MONDAY, TUESDAY, WEDNESDAY, FRIDAY, THURSDAY, SATURDAY, SUNDAY

    This tag is always empty.


    when Attribute of Build

    Day of the week for on which this task must be scheduled.

    Possible values : EVERYDAY, MONDAY, TUESDAY, WEDNESDAY, FRIDAY, THURSDAY, SATURDAY, SUNDAY - Required


    at Attribute of Build

    Time at which the task must start (in the form of hh:mm:ss).

    Required


    port Attribute of IndexServer

    The port attribute indicates the TCP port on which the server will listen. Actually if this attribute is specified, the server will create its own RMI registry using this port number. If it is omitted, the server will use the default registry (in that case you must have the rmiregistry program running on your host).


    level Attribute of Log

    At high level, the index server will be verbose when building the index. It lists all the files that are treated and the matched source.
    It is useful to which files are indexed and which one are not.
    Beware that with a large amount of files, the log file can grow quickly.

    Possible values : HIGH, LOW


    XFileFactoryClass Attribute of Location

    Defines a local XFileFactory that overrides the default one.