GroupDocs.Search 24.12.0

dotnet add package GroupDocs.Search --version 24.12.0                
NuGet\Install-Package GroupDocs.Search -Version 24.12.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="24.12.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Search --version 24.12.0                
#r "nuget: GroupDocs.Search, 24.12.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.
// Install GroupDocs.Search as a Cake Addin
#addin nuget:?package=GroupDocs.Search&version=24.12.0

// Install GroupDocs.Search as a Cake Tool
#tool nuget:?package=GroupDocs.Search&version=24.12.0                

Advanced Document Search & Indexing .NET API

Package version Package downloads .NET

banner


Product Page Docs API Ref Examples Blog Releases Support License


GroupDocs.Search for .NET is a powerful full-text search API that allows you to search through over 70 document formats in your applications. To make it possible to search instantly across thousands of documents, they must be added to the index.

  • No additional software is required to search through documents of supported formats.
  • Great variety of indexing and search options are provided to meet any requirements.
  • Wide selection of full-text search types is available in text or object form queries.
  • Externally pluggable text recognition in images and built-in reverse image search are supported.
  • High indexing and search performance is achieved by unique algorithms and data structures, optimizations and multi-threaded execution.
  • Various ways of visualizing search results in the text of documents are supported.
  • Index scaling and load balancing are provided out of the box.

Supported Document Formats

https://docs.groupdocs.com/search/net/supported-document-formats/

Supported Features

Supported Search Types

Getting Started

1. Create an index

First of all, you need to create an index. Documents will be processed and added to the index in a special format that provides very high search speed. The following example shows how to create an index on disk.

string indexFolder = @"c:/MyIndex/";
Index index = new Index(indexFolder);

2. Add files to the index

Once the index is created, you can add documents to it that you want to search. Adding documents to the index takes some time to convert the data into a searchable format. The following example shows how to perform indexing synchronously.

string documentsFolder = @"c:/MyDocuments/";
index.Add(documentsFolder);

3. Search in the index

After indexing your documents, you can search the index. The example below shows how to perform simple search in the index.

string query = "Einstein";
SearchResult result = index.Search(query);

4. Highlight search results

Search results can be seen highlighted in the text of the entire document or in fragments of text. The following example shows how to highlight search results in the text of an entire document in HTML format.

if (result.DocumentCount > 0)
{
    FoundDocument document = result.GetFoundDocument(0);
    OutputAdapter outputAdapter = new FileOutputAdapter(OutputFormat.Html, @"c:\Highlighted.html");
    DocumentHighlighter highlighter = new DocumentHighlighter(outputAdapter);
    index.Highlight(document, highlighter);
}

Below is a complete example code for a fuzzy search with an acceptable number of differences of 2 characters.

string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";
string query = "Deoxyribonucleic";

// Creating an index in the specified folder
Index index = new Index(indexFolder);

// Indexing documents from the specified folder
index.Add(documentsFolder);

// Creating the fuzzy search algorithm
SearchOptions options = new SearchOptions();
options.FuzzySearch.Enabled = true;
options.FuzzySearch.FuzzyAlgorithm = new TableDiscreteFunction(2);

// Search in index
SearchResult result = index.Search(query, options);

Search for different word forms

The following listing shows a complete code example for searching for different word forms in the index.

string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";

// Creating an index in the specified folder
Index index = new Index(indexFolder);

// Indexing documents from the specified folder
index.Add(documentsFolder);

// Enabling search for word forms
SearchOptions options = new SearchOptions();
options.UseWordFormsSearch = true;

// Search in the index
SearchResult result = index.Search("relative", options);

// The following words can be found:
// relative
// relatives
// relatively

The following code example demonstrates all stages of the reverse image search.

string indexFolder = @"c:\MyIndex";
string documentFolder = @"c:\MyDocuments";

// Creating an index
Index index = new Index(indexFolder);

// Setting the image indexing options
IndexingOptions indexingOptions = new IndexingOptions();
indexingOptions.ImageIndexingOptions.EnabledForContainerItemImages = true;
indexingOptions.ImageIndexingOptions.EnabledForEmbeddedImages = true;
indexingOptions.ImageIndexingOptions.EnabledForSeparateImages = true;

// Indexing documents in a document folder
index.Add(documentFolder, indexingOptions);

// Setting the image search options
ImageSearchOptions imageSearchOptions = new ImageSearchOptions();
imageSearchOptions.HashDifferences = 10;
imageSearchOptions.MaxResultCount = 100;
imageSearchOptions.SearchDocumentFilter =
    SearchDocumentFilter.CreateFileExtension(".zip", ".png", ".jpg");

// Creating a reference image for search
SearchImage searchImage = SearchImage.Create(@"c:\MyDocuments\image.png");

// Search in the index
ImageSearchResult result = index.Search(searchImage, imageSearchOptions);

Product Page Docs API Ref Examples Blog Releases Support License


Tags

Aspose | GroupDocs | Advanced Document Search | Indexing API | .NET Search Library | Semantic Search API | Boolean Search | Fuzzy Search | Metadata Search | Entity Recognition API | Sentiment Analysis | Custom Entity Extraction | Document Classification API | Full-Text Search | Field Search | Regular Expressions Search | Proximity Search | Custom Search Ranking | Indexing Optimization | Distributed Search Network | Reverse Image Search | Search API | .NET Document Search | Document Indexing API | GroupDocs.Search for .NET | Text Search API | Search Results Highlighting | Document Metadata Search | Snippets Extraction | Wildcard Search | Search API for .NET

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
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
24.12.0 322 12/18/2024
24.11.0 841 11/29/2024
24.10.0 1,139 10/30/2024
24.9.0 1,433 9/11/2024
24.8.0 1,202 8/22/2024
24.6.0 1,170 6/20/2024
24.5.0 729 5/14/2024
24.4.0 1,473 4/18/2024
24.3.0 3,833 3/20/2024
24.2.1 948 2/29/2024
24.2.0 755 2/28/2024
24.1.0 578 1/26/2024
23.12.0 2,067 12/4/2023
23.11.0 3,491 11/23/2023
23.10.1 2,060 10/20/2023
23.10.0 1,520 10/2/2023
23.6.0 4,493 6/15/2023
23.2.0 4,339 2/28/2023
22.11.0 2,501 11/24/2022
22.10.1 2,513 10/12/2022
22.10.0 1,550 10/7/2022
21.8.1 42,012 8/23/2021
21.8.0 1,643 8/18/2021
21.3.0 43,718 3/18/2021
21.2.0 27,976 2/18/2021
20.11.0 37,066 11/19/2020
20.8.0 70,885 8/17/2020
20.6.0 65,049 6/23/2020
20.4.0 67,981 4/15/2020
20.1.0 54,615 1/31/2020
19.10.1 58,097 11/6/2019
19.10.0 1,042 10/2/2019
19.5.1 865 7/15/2019
19.5.0 831 5/31/2019
19.3.0 862 3/6/2019
19.2.0 944 2/5/2019
18.12.0 1,115 12/11/2018
18.9.0 1,171 9/6/2018
18.8.0 1,340 8/8/2018
18.7.0 1,221 7/14/2018
18.6.0 1,285 6/14/2018
18.5.0 1,177 5/16/2018
18.4.0 1,329 4/9/2018
18.2.0 1,291 2/8/2018
18.1.0 1,295 1/9/2018
17.12.0 1,510 12/7/2017
17.11.0 1,284 11/9/2017
17.10.0 1,160 10/3/2017