GroupDocs.Search 26.11.0

Prefix Reserved
dotnet add package GroupDocs.Search --version 26.11.0
                    
NuGet\Install-Package GroupDocs.Search -Version 26.11.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GroupDocs.Search" Version="26.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GroupDocs.Search" Version="26.11.0" />
                    
Directory.Packages.props
<PackageReference Include="GroupDocs.Search" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GroupDocs.Search --version 26.11.0
                    
#r "nuget: GroupDocs.Search, 26.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GroupDocs.Search@26.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GroupDocs.Search&version=26.11.0
                    
Install as a Cake Addin
#tool nuget:?package=GroupDocs.Search&version=26.11.0
                    
Install as a Cake Tool

GroupDocs.Search for .NET

GroupDocs.Search is a high-performance .NET API for indexing and full-text search of PDFs, Office files, emails, and many other documents across platforms. This package automatically selects the correct runtime assemblies for your target framework.

Quick Start

using (Index index = new Index(@"C:\MyIndex"))
{
	index.Add(@"C:\MyDocuments");
	SearchResult result = index.Search("Einstein");
	Console.WriteLine($"Documents found: {result.DocumentCount}");
}

Runtime Selection (TFM Split)

GroupDocs.Search is a lightweight router (metapackage). When you install it, NuGet pulls exactly one runtime package matching your project’s target framework.

Available Runtime Packages

Package Target Framework
GroupDocs.Search.Net462 .NET Framework 4.6.2
GroupDocs.Search.Net48 .NET Framework 4.8
GroupDocs.Search.NetStandard21 .NET Standard 2.1
GroupDocs.Search.Net60 .NET 6.0
GroupDocs.Search.Net80 .NET 8.0
GroupDocs.Search.Net100 .NET 10.0

You can also install a specific runtime package directly if you want full control.

Examples

Searching for a word in documents

This code creates an index in a folder (C:\MyIndex), adds the documents from another folder (C:\MyDocuments) to it, and searches the index for the word Einstein. The numbers of found documents and occurrences are then displayed in the console.

using System;
using GroupDocs.Search.Results;
using Index = GroupDocs.Search.Index; // Avoids a conflict with System.Index (.NET Core 3.0 and later)

// Create or open an index in the specified folder
using (Index index = new Index(@"C:\MyIndex"))
{
	// Add documents from the specified folder to the index
	index.Add(@"C:\MyDocuments");

	// Search the index for the word
	SearchResult result = index.Search("Einstein");

	// Output the numbers of found documents and occurrences
	Console.WriteLine($"Documents found: {result.DocumentCount}");
	Console.WriteLine($"Occurrences found: {result.OccurrenceCount}");
}

Searching for a word with fuzzy matching

This code searches the index for the word Deoxyribonucleic, allowing up to 2 differences in a word, so words with spelling mistakes are found as well. The number of found documents is then displayed in the console.

using System;
using GroupDocs.Search.Options;
using GroupDocs.Search.Results;
using Index = GroupDocs.Search.Index; // Avoids a conflict with System.Index (.NET Core 3.0 and later)

// Create or open an index and add documents to it
using (Index index = new Index(@"C:\MyIndex"))
{
	index.Add(@"C:\MyDocuments");

	// Enable fuzzy search with up to 2 differences in a word
	SearchOptions options = new SearchOptions();
	options.FuzzySearch.Enabled = true;
	options.FuzzySearch.FuzzyAlgorithm = new TableDiscreteFunction(2);

	// Search the index for the word and its misspellings
	SearchResult result = index.Search("Deoxyribonucleic", options);

	// Output the number of found documents
	Console.WriteLine($"Documents found: {result.DocumentCount}");
}

Highlighting search results in a document

This code searches the index for the word Einstein and saves the text of the first found document with highlighted occurrences to an HTML file (Highlighted.html).

using GroupDocs.Search.Common;
using GroupDocs.Search.Highlighters;
using GroupDocs.Search.Options;
using GroupDocs.Search.Results;
using Index = GroupDocs.Search.Index; // Avoids a conflict with System.Index (.NET Core 3.0 and later)

// Create or open an index and add documents to it
using (Index index = new Index(@"C:\MyIndex"))
{
	index.Add(@"C:\MyDocuments");

	// Search the index for the word
	SearchResult result = index.Search("Einstein");

	if (result.DocumentCount > 0)
	{
		// Save the text of the first found document with highlighted occurrences
		FoundDocument document = result.GetFoundDocument(0);
		OutputAdapter outputAdapter = new FileOutputAdapter(OutputFormat.Html, "Highlighted.html");
		Highlighter highlighter = new DocumentHighlighter(outputAdapter);
		index.Highlight(document, highlighter);
	}
}

Features

  • Index documents on disk or in memory
  • Search for words and phrases with Boolean operators
  • Search with fuzzy matching, wildcards, and regular expressions
  • Search for synonyms, homophones, and word forms
  • Search by document fields, date ranges, and numeric ranges
  • Correct spelling and keyboard layout in search queries
  • Highlight search results in HTML or plain text
  • Search for similar images
  • Index text in images with a pluggable OCR engine
  • Update, merge, and optimize indexes
  • Scale search across a network of nodes

Supported Formats (high level)

This API supports a broad set of document formats, including:

  • Word Processing: DOC, DOCX, DOCM, RTF, ODT, TXT
  • Spreadsheets: XLS, XLSX, XLSM, XLSB, ODS, CSV
  • Presentations: PPT, PPTX, PPS, PPSX, ODP
  • PDF: PDF
  • Emails: EML, MSG, PST, OST
  • Images: JPG, BMP, PNG, TIFF, GIF
  • Archives: ZIP
  • Web: HTML, XHTML, MHTML, XML
  • e-Books: CHM, EPUB, FB2

For the full list, see the product documentation.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.11.0 0 11/16/2026
26.10.0 344 10/12/2026
26.8.0 368 8/5/2026
26.7.2 177 7/22/2026
26.7.1 162 7/21/2026
26.7.0 195 7/15/2026
26.6.1 208 6/10/2026
26.6.0 176 6/5/2026
25.11.0 1,278 11/14/2025
25.9.0 446 9/15/2025
25.5.0 1,077 5/5/2025
25.4.0 658 4/4/2025
25.2.0 864 2/26/2025
25.1.0 829 1/27/2025
24.12.0 826 12/18/2024
24.11.0 1,238 11/29/2024
24.10.0 1,599 10/30/2024
24.9.0 1,699 9/11/2024
Loading failed