Other configuration parameters

PropertyTypeDescription

spring.jpa.properties.hibernate.search.analyzer

String

This parameter is used to change the default Apache Lucene Search Engine Analyzer.

org.apache.lucene.analysis.standard.StandardAnalyzer

More information at Configuring Lucene Analyzer.

This parameter must be set on $TOMCAT_HOME/openkm.properties file.

spring.jpa.properties.hibernate.search

Boolean

This parameter can be used to disable Hibernate Search completely. This mean you won't be able to search document or folders.

This parameter must be set on $TOMCAT_HOME/openkm.properties file.

system.ocr.rotate

String

This parameter forces OCR to process on the document rotated.

The feature is useful for example in upside down scanned pages, where standard OCR direction will fails.

The parameter is a collection of degrees separated by character ";"

90;180;270;

More information at Configuring OCR engine.

system.ocr.spell.check

Boolean

When is enabled the text extracted by OCR is validated by spell checker.

The application must have an enabled dictionary, see the parameter "system.openoffice.dictionary" at LibreOffice configuration parameters.

system.document.name.mismatch.check

Boolean

This parameter is used to enable or disable the name check when a new version of a document is uploaded.

max.search.results

Integer

This parameter sets the limits of the search results. For example a value of 500 means will never get more than 500 results of any query.

500

The reason why the number of results is limited is that some queries can retrieve a huge number of results, specially when the queries are done across api methods.

system.keyword.lowercase

Boolean

This parameter is used to force all keyword to lowercase.

The application is case sensitive, that means a user can set two keywords like "keyone" and "KeyOne" and for the application these two keywords are distinct. To prevent this problem is always good idea force all keyword to lowercase.

tomcat.connector.uri.encoding

String

By default Tomcat Connector encoding is set to "ISO-8859-1" but you can change it with this parameter.

When you set the "URIEncoding" parameter in Tomcat to "UTF-8", you also need to set this parmeter to "UTF-8".

URIEncoding="UTF-8"

ISO-8859-1

mail.session.debug

Boolean

Enable mail session debug. It's useful to detect problems when application is not sending mails.

mobile.theme

String

There're five mobile themes ( "a", "b", "c", "d", "e" ).

More information about themes at jQuery mobile themes.

b

plugin.debug

Boolean

When enabled show debug information about application plugin feature.

principal.hide.connection.roles

Boolean

Hide "ROLE_USER" and "ROLE_ADMIN" roles from available roles list.

By default the hidden roles are set by "default.user.role" and "default.admin.role" parameters value. Usually "ROLE_USER" and "ROLE_ADMIN".

principal.database.filter.inactive.users

Boolean

Deprecated from version 8.1.12

Hide inactive users for available users list.

restrict.file.name

String

Restrict file name extension that  are not allowed.

Each file name extension is separated by character ";".

*~;*.bak

restrict.file.mime

Boolean

Restrict file name extension based on existing ones at Administration > MIME types.

restrict.duplicated.documents

Boolean

Is not allowed to upload more than one time the same document.

Internally the verification is based on the document checksum value.

native.sql.optimizations

Boolean

For best performance, some database operations are done with SQL rather than HQL.

repository.stats.optimization

Boolean

When is enabled the Administration > Statistics results need less time and resources to be calculated.

repository.content.checksum

Boolean

When is enabled is calculated the document checksum for each upload document.

system.pdf.force.ocr

Boolean

Force to processing all PDF files with the OCR engine.

stack.metadata.hidden.properties

List

Filter metadata fields at metadata stack view on frontend UI.

show.records.in.tree

Boolean

When is enabled show record nodes at tree stack view on frontend UI.

system.catdoc.xls2csv

String

Native XLS to CSV converter tool. Used in NativeMsExcelTextExtractor. In Debian and other Ubuntu based distros is included in the catdoc package.

/usr/bin/xls2csv ${fileIn}

system.maintenance

Boolean

When is enabled the application goes to "maintence mode", that mean nobody except the okmAdmin user will be able to login.

system.strings

String

Configure Strings tool.

/usr/bin/strings ${fileIn}

system.zbar

 String

Configure bar code extractor tool.

/usr/bin/zbarimg

system.profiling

Boolean

The Profiling stats feature gives low level value information to the administrator to find out application performance problems.

You also can enable profiling from Administration > Utilities > Profiling stats.

system.ftp.port

Integer

FTP port.

On linux only root user is able to binding ports like 21, that's why on this OS is good idea binding ftp at another port.

system.ftp.server

Boolean

When is enabled the application enables the FTP server feature.

user.keywords.cache

Boolean

When enabled the keyword of the nodes are cached.

The feature provide best perfomance with less database access.

user.item.cache

Boolean

When enabled the application cached the number of nodes owned by the user.

The feature provide best perfomances with less database access for calculating the nodes owned by each user.

max.search.clauses

Integer

Set the maximum number of allowed clauses in a search.

max.search.results

Integer

Set the limit of the results returned by a search to the repository.

search.suggestion.minimal.results

Integer

The minimal search results to provide suggestions. By default is 5.

search.suggestion.returned.words

Integer

The number of suggested words. By default is 3.

checkin.comment.mandatory

Boolean

Force to set comment when uploading new document ( create or update actions ).

stack.metadata.adapter

String

Set the metadata stack implementation.

com.openkm.plugin.stack.metadata.GenericStackMetadataAdapter

system.diffpdf

String

Configure DiffPDF tool.

Windows

You need the command line version from https://www.qtrac.eu/diffpdfc.html 

C:\openkm\extra\diffpdf\diffpdf.exe -qr ${fileOut} ${fileIn1} ${fileIn2}

Linux

/home/openkm/tomcat-8.5.63/bin/diffpdf ${fileIn1} ${fileIn2} ${fileOut}

More info at Diffpdf raises ConversionException error while loading shared libraries: libpoppler-qt4.so.4

Bash script sample

#!/bin/bash
#echo "p1: $1";
#echo "p2: $3";
#echo "p2: $3";
#echo "library path: $LD_LIBRARY_PATH";

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openkm/tomcat/lib/diffpdf
/opt/openkm/tomcat/bin/diffpdf $1 $2 $3
#unset LD_LIBRARY_PATH

version.append.download

Boolean

Append the document version in the document file name when downloading a document from OpenKM.

webservices.visible.properties

List

List of configuration properties what are granted to view by users without administrator grants from webservices.

rss.news

Boolean

Enable or disable new in the login page.

rss.news.box.width

Integer

Width of the news box in the login page.

300

rss.news.max.size

Integer

Maximum number of news retrieved from the news server.

10

News are cached from OpenKM server and refreshed one time by day. That means any change on this parameter will take effect tomorrow or restarting OpenKM service.

rss.news.visible

Integer

Number of visible news at the same time.

1

trash.retention.days

 Integer

It indicates the maximum number of days nodes in the trash will be available until automatic purge will be executed. Default value is 0 indicates unlimited.

There's a Crontab task named "Purge Old Trash Nodes" what does it action.

30

file.plan

Boolean

Enable or disable the file plan feature.

false

decimal.pattern

String

Set the decimal pattern.

.

browser.natural.sort

Boolean

Enable or disable natural sort.

Natural sort is done at database engine level.

For MySQL and MariaDB download and install natural_sort.sql in your database.

For another database engine, you need to create your own function named "okmNaturalSort(String, Integer, String)".

min.free.disk.percent

Integer

This is the minimum percentage used to alert about low free disk space.

20

search.by.attachment.parent

Boolean

Enable or disable the search of documents in emails ( attachments ).

false

property.group.element.default.access

Boolean

When is set to true all the metadata fields are shown to the users, when false none of the metadata fields are shown.

Sample scenarios:

  • When value is set to true, all the metadata fields are shown by default. In this scenario have sense using revokeUser and revokeRole.
  • When value is set to false, all the metadata fields are not shown by default. In this scenario have sense using grantUser and grantRole.

Additional information at Metadata Security element

true

 

Table of contents [ Hide Show ]