### Installing Lucene Search Service using installutil (CMD) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This command installs the SenseNet Lucene Search Service as a Windows Service on the virtual machine. It uses the .NET Framework's `installutil` tool, which registers the executable as a service. Ensure the user identity running the service has access to the sensenet security database. ```cmd installutil SenseNet.Search.Lucene29.Centralized.Service.exe ``` -------------------------------- ### Configuring Lucene29 Indexing and Query Engines (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This XML configuration snippet, located within the `` section of the web.config, specifies the indexing and query engine implementations for the Sense/Net Lucene29 search. It sets `IndexingEngine` to `SenseNet.Search.Lucene29.Lucene29CentralizedIndexingEngine` and `QueryEngine` to `SenseNet.Search.Lucene29.Lucene29CentralizedQueryEngine`, directing the web servers to use the centralized search service for these operations. ```XML ``` -------------------------------- ### Configuring Local Lucene Search Engine (C#) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This C# snippet demonstrates how to programmatically configure the sensenet repository to utilize the local Lucene search engine. It uses the RepositoryBuilder API, requiring a specified indexDirectoryPath for storing index files locally. ```csharp repositoryBuilder.UseLucene29LocalSearchEngine(indexDirectoryPath); ``` -------------------------------- ### Configuring Security Data and Message Providers (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This XML snippet within the `` section allows for explicit configuration of security data and message providers. While default values (MSMQ and Entity Framework) are usually sufficient, this section enables customization of `SecurityDataProvider` and `SecurityMessageProvider` if alternative implementations are required for security-related operations. ```XML ``` -------------------------------- ### Configuring Service Tracing Categories (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This `sensenet/tracing` configuration enables and specifies the categories for real-time tracing within the centralized search service. The `TraceCategories` key accepts a semicolon-separated list of categories like `Query`, `Index`, `Security`, and `System`, which helps in debugging and monitoring service activities. Trace logs are typically generated in the `DetailedLog` folder within the App_Data directory. ```XML ``` -------------------------------- ### Configuring Security Database Connection String (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This XML snippet configures the connection string for the security database, typically the content repository database, where security-related tables are stored. The `name` attribute is `SecurityStorage`, and the `connectionString` attribute must be replaced with the actual database connection details. This is crucial for the search service to access security information. ```XML ``` -------------------------------- ### Configuring Centralized Lucene Search Engine (C#) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This C# snippet illustrates how to programmatically configure the sensenet repository to connect to a centralized Lucene search service. This approach eliminates local indexes, directing all query and indexing operations to an external WCF service. ```csharp repositoryBuilder.UseLucene29CentralizedSearchEngine(); ``` -------------------------------- ### Configuring DefaultTopAndGrowth for Lucene Search (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This XML snippet configures the DefaultTopAndGrowth setting within the lucene29 section. It defines a comma-separated list of values that control the growing number of search results loaded in batches, with 0 indicating that all results should be loaded if criteria are not met by previous batches. ```xml ``` -------------------------------- ### Configuring LuceneRAMBufferSizeMB (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This XML configuration sets the LuceneRAMBufferSizeMB key, which specifies the amount of RAM (in megabytes) that Lucene may use for buffering added documents and deletions. This buffer is used before the data is flushed to the index directory. ```xml ``` -------------------------------- ### Configuring WCF Service Base Address (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This XML snippet configures the base address for the WCF service hosted by the centralized search service. It specifies the network protocol (net.tcp), hostname, port, and service path, which is essential for clients to connect to the search service. The `baseAddress` attribute defines the endpoint where the service will be accessible. ```XML ``` -------------------------------- ### Configuring MSMQ Security Channel Queue Name (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This `appSettings` configuration defines the MSMQ queue name used for security messaging, allowing the centralized search service to receive security update messages. The `value` attribute must be set to the specific MSMQ queue name, and this setting is required on both the service and all web servers to enable communication for security activities. ```XML ``` -------------------------------- ### Defining Lucene29 Configuration Section (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This XML configuration snippet shows how to define the sensenet/lucene29 section group within a .NET application's configuration file (e.g., web.config). This section is essential for adding and managing various Lucene-specific settings. ```xml
``` -------------------------------- ### Setting Index Lock File Wait Timeout (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This configuration determines the duration, in seconds, that the system will wait for other processes or the current writer to clean up the index lock file during startup or shutdown. In a development environment, setting this to a lower value can significantly speed up scenarios involving frequent site restarts in Visual Studio. ```XML ``` -------------------------------- ### Configuring WCF Client Endpoint for Search Service (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/search-service.md This `system.serviceModel` configuration defines the WCF client endpoint used by web servers to communicate with the centralized search service. It specifies the `net.tcp` binding, the service address, and the contract (`ISearchServiceContract`), ensuring proper client-side connectivity. The `address` attribute must match the base address configured on the service side. ```XML ``` -------------------------------- ### Specifying Lucene Query Engine (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This XML configuration sets the QueryEngine key in the lucene29 section, defining the full class name of the Lucene query engine implementation. This engine is responsible for retrieving query results, with the default being the local query engine. ```xml ``` -------------------------------- ### Configuring Lucene Lock Delete Retry Interval (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This setting specifies the number of seconds the system waits while attempting to delete an existing index lock file during the startup process. For development environments, reducing this value can help accelerate the startup and shutdown cycles when frequently restarting the site in Visual Studio. ```XML ``` -------------------------------- ### Specifying Lucene Indexing Engine (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This XML configuration sets the IndexingEngine key in the lucene29 section, specifying the full class name of the Lucene indexing engine implementation. This engine is responsible for writing document data to the index, with the default being the local indexing engine. ```xml ``` -------------------------------- ### Configuring LuceneMergeFactor (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This XML snippet configures the LuceneMergeFactor setting, which determines how often segment indices are merged by addDocument(). Smaller values use less RAM and result in faster searches on unoptimized indices but slower indexing, while larger values offer faster indexing at the cost of more RAM and slower unoptimized searches. ```xml ``` -------------------------------- ### Setting Index Lock File Removal Notification Email (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This parameter defines the email address of an operator to whom a notification email should be sent if the index lock file was not cleaned up by another process during startup, potentially indicating that the index is locked. For this feature to function, the sender address must be configured in the `notification` config section using the `NotificationSender` entry. ```XML ``` -------------------------------- ### Configuring Lucene Max Merge Docs (XML) Source: https://github.com/sensenet/sn-search-lucene29/blob/develop/docs/lucenesearch.md This setting controls the largest segment (by document count) that Lucene may merge with other segments. Smaller values (e.g., less than 10,000) are optimal for interactive indexing to limit pause durations, while larger values are better suited for batched indexing and improved search performance. It expects an integer value. ```XML ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.