serviceConfiguration.json

System configuration file with parameters determining the behavior of the CONTENTANALYZER service.

Characteristics

Profile NameserviceConfiguration.json
Referenced by Servicescontentanalyzer,api
Storage LocationGit system directory 

Parameters

The following parameters are available:

Parameter SectionParameterDescription
contentanalyzer

Section of Parameters determining the default behavior of the CONTENTANALYZER service. The analysis of the content and/or mimeType can be requested or not, depending on defined conditions. If a condition matches during an import process, the content and/or mimeType will be analyzed.

Note: Within the import request body, this configuration can be overwritten by specifying the options parameters accordingly. The analysis of content and/or mimeType can be requested or suppressed even if the opposite behavior is configured in the file serviceConfiguration.json.






skipDecides whether the service is used (false) or bypassed (true).
analyzeA list of property groups defining a specific behavior of the service depending on a conditions. For each condition, the determination of the mimeType and the text extraction can be activated or deactivated.



predicateA condition specified in Spring Expression Language (SpEL).
mimetypeDecides whether the mimeType will be determined (true) or not determined (false) if the condition matches.
content

Decides whether the synchronous full-text extraction will be determined (true) or not determined (false) if the condition matches.

Default configuration:

Default serviceConfiguration.json
{"services": {
       "contentanalyzer": {
         "analyze": [				
          {
            "predicate": "spel:(properties != null && properties['Name'] != null && properties['Name']['value'] == 'disable') ? true : false",
            "mimetype": true,
            "content": false
          },				
          {
            "predicate": "spel:(contentStreams != null && contentStreams.size() > 0 && contentStreams[0]['range'] != null && contentStreams[0]['range'].length() > 0) ? true : false",
            "mimetype": false,
            "content": false
          }
          ]
        }
      }
    }