FileCenter indexation

We will present here a simple example of indexing a FileCenter vault.

Configuration

Indexing class

com.axemble.axvdocsearch.extensions.base.implementation.BaseFileCenterIndexExtension

Custom Tags « system »

CustomTag Description
ID
REFERENCE
LIBRARYNAME Name of the document area
TYPNAME Name of the document type (if present)
CATEGORIES Associated categories (tree tag)
FOLDER Name of the associated folder (tree tag)
FILES File content (for full-text search)
EXTENSION File extension
ICON HTTP path to retrieve file icon (depends on extension); default icon if type not supported by Process.

Required input parameters

Parameter Name Description
CONTEXT_LOGIN Login used to browse the data to be indexed
LIBRARY_NAME System name of the document space (if not filled in, all spaces are indexed)

An example of XML configuration

Let’s say a document space named: MySpace. This space includes an “Invoice” type that includes two attributes:

  • OrderDate
  • OrderID

Here is a possible XML configuration:

<index name="IndexMySpace"
       label="LG_IndexMySpace"
       controller="com.axemble.axvdocsearch.core.controllers.implementation.LuceneController"
       extension="com.axemble.axvdocsearch.extensions.base.implementation.BaseFileCenterIndexExtension"
       indexStorePath="vdocsearch\IndexMySpace"
       updateOnIndexedDocuments="true"
       locales="fr" >

    <parameters>
        <parameter key="CONTEXT_LOGIN" value="sysadmin" />
        <parameter key="LIBRARY_NAME" value="MySpace" />
    </parameters>

    <customtag name="FILES" type="file" />
    <customtag name="FOLDER" type="text" />
    <customtag name="CATEGORIES" type="text" collection="true" />
    <customtag name="TYPNAME" type="text" />

    <customtag name="DateDeCommande" type="date" />
    <customtag name="IDDeCommande" type="text" />
</index>

Source : https://wiki.myvdoc.net/xwiki/bin/view/Dev+Floor/FileCenterIndexExtension