#
# Copyright (C) 2000 - 2024 Silverpeas
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# As a special exception to the terms and conditions of version 3.0 of
# the GPL, you may redistribute this Program in connection with Free/Libre
# Open Source Software ("FLOSS") applications as described in Silverpeas's
# FLOSS exception.  You should have received a copy of the text describing
# the FLOSS exception, and it is also available here:
# "http://www.silverpeas.org/docs/core/legal/floss_exception.html"
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#

# The pool size for cached XML parsers. This impact the performance of the indexing process.
# If empty, the default pool size of Tika (a toolkit for detecting and extracting metadata and
# structured text content) is used.
tika.saxParserPoolSize = 10

# maxFieldLength is a lucene property.
# Gives the maximum number of terms that will be indexed for a single field
# in a document. This limits the amount of memory required for indexing,
# so that collections with very large files
# will not crash the indexing process by running out of memory.
# By default, no more than 10,000 terms will be indexed for a field.
lucene.maxFieldLength = 10000

# mergeFactor is a lucene property.
# Determines how often segment indexes are merged by addDocument().
# With smaller values, less RAM is used while indexing,
# and searches on unoptimized indexes are faster,
# but indexing speed is slower.
# With larger values more RAM is used while indexing
# and searches on unoptimized indexes are slower, but indexing is faster.
# Thus larger values (> 10) are best for batched index creation,
# and smaller values (< 10) for indexes that are interactively maintained.
# This must never be less than 2. The default value is 10.
lucene.mergeFactor = 5

# maxMergeDocs is a lucene property.
# Determines the largest number of documents ever merged by addDocument().
# Small values (e.g., less than 10,000) are best for interactive indexing,
# as this limits the length of pauses while indexing to a few seconds.
# Larger values are best for batched indexing and speedier searches.
# The default value is Integer.MAX_VALUE.
lucene.maxMergeDocs = 1000000000

# maxPreviewContent is an indexengine properies
# It limits the number of characters in the preview
# Of the result pages
maxPreviewContent = 200

# maxTitleContent is indexengine properties
# It limits the number of characters in the title
# of the result pages
maxTitleContent = 50

# TimeOutParameter is indexengine properties
# it limits the time to parse a file
TimeOutParameter = 30000

#activate "did you mean" Indexing
enableDymIndexing = false

# A file can induces indexation errors because of an un-parsable content.
# This parameters permits to ignore the content of a such file by checking a REGEXP pattern on its mimetype.
# If the pattern matches, then the file content is ignored.
# If empty, the default pattern "(?i).*(protected|encrypted).*" is applied.
index.file.content.mimetype.ignore.pattern =

# server name to identify origin of indexed documents
server.name = Silverpeas

snowball.active = true
snowball.stemmer.fr = French
snowball.stemmer.de = German
snowball.stemmer.en = English
snowball.stemmer.es = Spanish
snowball.stemmer.it = Italian
snowball.stemmer.pt = Portuguese
