FileLocator Pro .NET Library
Show/Hide TOC

# SearchConfigurationSearchThreadCount Property

Gets or sets the numbers of threads that can be used to search the contents of files.

## Definition

Namespace: Mythicsoft.Search.Core
Assembly: Mythicsoft.Search.Core (in Mythicsoft.Search.Core.dll) Version: 9.3.830.1
C#

    public int SearchThreadCount { get; set; }

C++

    public:
    property int SearchThreadCount {
    	int get ();
    	void set (int value);
    }

#### Property Value

Int32

## Remarks

The default value for SearchThreadCount is -1, which specifies that the number of search threads should equal the number of CPU cores on the machine. The maximum search thread count is 1024 but in most cases should not exceed the number of CPU cores on the machine.

Warning: Increasing the number of search threads may have a detrimental affect on search performance. It is only advisable if the machine the search engine is running on contains multiple CPU cores and/or has hard drives configured for fast multiple read access (e.g. SSDs, RAID arrays etc). If the machine does not have much memory and/or slow file access then increasing the thread count may actually reduce search performance.

## See Also

#### Reference

SearchConfiguration Class
Mythicsoft.Search.Core Namespace