Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Voyager’s configuration settings in Server’s Manage UI and in Vose’s HQ allow users to fine tune a range of indexing options. When adding a Repository, admins can limit indexing based on format types, file name, and file contents. In addition to this, filtering based on other criteria are also configurable through HQ’s Advanced Filtering option. Users can specify a variety of Exclusion Rules to further tailor their index settings. 

To access Advanced Filters:

  • Go to Add New Repo. Enter Connection Info >> select Custom Settings.  

  • Under Formats, select Exclusion Rules 

Image RemovedImage Added

Use the Exclusion Rules option to setup specific conditions for indexing. Some examples are included below. 

  1. Indexing files based on file size (ex: between 5 MB and 20 MB)

This option allows admins to index files that meet certain size specifications.

Code Block
{"file": {
  "_class": "voyager.api.discovery.path.InverseFilter",
  "wrap": {
    "_class": "voyager.api.discovery.path.FileSizeFilter",
    "max": 20000000,
    "min": 5000000
  }
}}

Note: The Min and Max values are in Bytes. 

  1. Indexing based on folders and sub-folders 

This option allows admins to exclude subfolders when indexing a folder repository. 

Code Block
{
  "type": "Folder",
  "file": {
    "type": "Name",
    "match": {
      "type": "Any",
      "vals": [
        {
          "type": "InSet",
          "val": [
            "NAME OF FOLDER TO EXCLUDE 1",
            "NAME OF FOLDER TO EXCLUDE 2"
          ]
        },
       ]
    }
  }
}

Note: This exclusion setting works for subfolders that are upto 3 children deep.

  1. Index only files ending in extensions (ex: .aaa)

This option allows users to index files based on listed extensions.  

Code Block
{"file": {
  "_class": "voyager.api.discovery.path.PatternListFilter",
  "value": "**/*.aaa"
}}

Exclude filenames that contain the string "temp"

This option allows users to exclude indexng of temp files.  

{"file": {
  "_class": "voyager.api.discovery.path.NameFilter",
  "match": {
    "_class": "voyager.api.util.ContainsMatcher",
    "pattern": "temp"
    }
  }
}