Introduction / FirstSpirit Server configuration / Configuration files (FirstSpirit Server) / FirstSpirit Server (fs-server.conf) / Search configuration

Area: Search Configuration

###########################
# search configuration
###########################
search.maxFieldLength=50000
search.flushBeforeReindex=true
search.indexQueue.maxRunning=
search.indexQueue.queueCapacity=
search.indexQueue.rejection=BLOCK

############################
# lucene for internal search
############################
lucene_index_version=7
lucene_index_flush_time=120
lucene_flush_before_search=true

search.maxFieldLength

Limits the number of tokens per field while indexing. A token is a single occurrence of a term in an indexed field.

search.flushBeforeReindex

Specifies whether the current index should be cleared and rebuilt during a reindexing instead of creating a second index in parallel. This reduces memory consumption, but search results may be incomplete until the reindexing is finished.

search.indexQueue.maxRunning

Defines the number of concurrently running threads during indexing. The default value is equal to the number of processors multiplied by a factor of 4.

search.indexQueue.queueCapacity

Specifies the maximum number of elements that are still waiting for indexing. The default value is equal to the number of processors multiplied by a factor of 20.

search.indexQueue.rejection

Should the maximum number of waiting elements for indexing be reached, additional elements will be handled according to the strategy chosen here.

  • BLOCK: The process is blocked until the previous elements have been processed.
  • EXECUTE: The longest waiting element is processed and the new one is added to the queue.
  • REJECT: The new element is not accepted. Note, that this setting may lead to an incomplete search index!

lucene_index_version

The parameter specifies the desired index version for all projects. Once a project is opened that has been indexed with a different version, a new, complete indexing of the project starts automatically.

Possible values:

lucene_index_flush_time

When indexing elements, the collected data is persisted at regular intervals and is then available for searching in the clients. This parameter indicates the length of the interval in seconds.

lucene_flush_before_search

If this parameter is set to true, the index will be automatically persisted regardless of the time period defined in lucene_index_flush_time, as soon as a search query is initiated. This makes changes in the search immediately visible.

© 2005 - 2025 Crownpeak Technology GmbH | All rights reserved. | FirstSpirit 2025.4 | Data privacy