GroupDocs.Search.NETFramework
24.12.0-alpha-20241218035522
dotnet add package GroupDocs.Search.NETFramework --version 24.12.0-alpha-20241218035522
NuGet\Install-Package GroupDocs.Search.NETFramework -Version 24.12.0-alpha-20241218035522
<PackageReference Include="GroupDocs.Search.NETFramework" Version="24.12.0-alpha-20241218035522" />
paket add GroupDocs.Search.NETFramework --version 24.12.0-alpha-20241218035522
#r "nuget: GroupDocs.Search.NETFramework, 24.12.0-alpha-20241218035522"
// Install GroupDocs.Search.NETFramework as a Cake Addin #addin nuget:?package=GroupDocs.Search.NETFramework&version=24.12.0-alpha-20241218035522&prerelease // Install GroupDocs.Search.NETFramework as a Cake Tool #tool nuget:?package=GroupDocs.Search.NETFramework&version=24.12.0-alpha-20241218035522&prerelease
Advanced Document Search & Indexing .NET API
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.
- Text recognition on images and 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
- Create index on disk or in memory: The search index can be stored on disk or entirely in memory to speed up its operation.
- Character replacement during indexing: Can be used to convert all text to lowercase characters or to remove diacritics from text.
- Specifying a type for each character: Different types of characters are processed and indexed in different ways.
- Custom text extractors: Possibility of implementing an extractor of any document format in addition to those supplied out of the box.
- Removing documents from index: Ability to remove documents from the index.
- Document attributes: This is a special feature designed for marking indexed documents with text labels without the need for re-indexing.
- Document filtering during indexing: The ability to filter documents for indexing by various file properties, as well as combine such filters with different logic.
- Document renaming: Renaming indexed documents without the need for reindexing.
- Extraction in separate process: Data for indexing can be extracted from documents in a separate process.
- Separate data extraction: Possibility to separate the operations of extracting data from a document and adding the extracted data to the index.
- Indexing additional fields: Additional fields can be added to each indexed document in addition to those already in the document file itself.
- Indexing from different sources: Documents can be indexed from different sources: file, stream, structure.
- Indexing metadata of documents: It is possible to index document content and metadata together or separately.
- Indexing password protected documents: Indexing password-protected documents with password transfer in various ways.
- Indexing with stop words: Stop words are frequently used words that do not carry a semantic meaning and can be removed from an index to reduce its size.
- Merge indexes: Merging indexes to improve search performance.
- OCR support: Ability to connect an external module for optical character recognition on images, either separate or embedded in documents.
- Index optimization: Optimization increases search performance in the index.
- Storing text of indexed documents: Accelerates text generation with search results highlighting.
- Text file encoding detection: Automatically detects encoding of a text file.
- Update index: This operation is used to reindex documents that have been changed, deleted or added to indexed folders.
- Index scaling: Scaling the index becomes necessary when the number of indexed documents increases significantly.
Supported Search Types
- Simple word search: Searches for the exact occurrence of a word in the indexed documents.
- Boolean search: Combines multiple search terms using logical operators AND, OR, NOT.
- Regular expression search: Uses patterns and expressions to search for complex text structures.
- Faceted search: Searches on specific document fields.
- Case sensitive search: Differentiates between uppercase and lowercase characters in the search query.
- Flexible fuzzy search: Finds words with similar spelling, allowing for minor typos or spelling errors.
- Synonym search: Searches for words and their synonyms to expand search results.
- Homophone search: Finds words that sound the same but have different spellings.
- Wildcard search: Uses special wildcard characters to match varying characters or word fragments.
- Phrase search with wildcards: Searches for a specific phrase, allowing for variations in the distance between words in the sequence.
- Search for different word forms: Matches different grammatical forms of a word, such as plural or tense variations.
- Date range search: Searches in documents dates from a given range in given date formats.
- Numeric range search: Searches in documents integer numbers from a given range.
- Search by chunks (pages): Sequential search in the index segment by segment.
- Combining different types of search into one search query: Mixes multiple search types, such as combining boolean and wildcard searches in a single query.
- Alias substitution in search queries: Replaces defined aliases with their full meanings during the search.
- Spell check during search: Automatically corrects minor spelling mistakes in the search query.
- Keyboard layout correction during search: Adjusts the search query for different keyboard layouts or language settings.
- Search queries in text or flexible object form: Search queries can be built in text form or in a more flexible object form.
- Highlighting search results: Search results can be highlighted in the text of the entire document or in small fragments of text, in plain text or HTML format.
- Multiple simultaneous thread safe search: Performs multiple independent searches simultaneously.
- Thread safe search during indexing, updating, or merging operations: Ensures safe searching while the index is being modified.
- Reverse image search: Searches for images that are similar to a given reference image.
Getting Started
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/"; // Specify the path to the index folder
Index index = new Index(indexFolder); // Creating an index in the specified folder
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/"; // Specify the path to a folder containing documents to search
index.Add(documentsFolder); // Synchronous indexing documents from the specified folder
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"; // Specify a search query
SearchResult result = index.Search(query); // Search in the index
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 the entire document.
if (result.DocumentCount > 0)
{
FoundDocument document = result.GetFoundDocument(0); // Getting the first found document
OutputAdapter outputAdapter = new FileOutputAdapter(OutputFormat.Html, @"c:\Highlighted.html"); // Creating an output adapter to a file in HTML format
DocumentHighlighter highlighter = new DocumentHighlighter(outputAdapter); // Creating a highlighter object
index.Highlight(document, highlighter); // Generating an HTML output document with search results highlighted
}
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- Microsoft.NETFramework.ReferenceAssemblies (>= 1.0.3)
- Newtonsoft.Json (>= 13.0.3)
- System.Diagnostics.DiagnosticSource (>= 7.0.0)
- System.Drawing.Common (>= 5.0.3)
- System.Formats.Asn1 (>= 9.0.0)
- System.Numerics.Vectors (>= 4.5.0)
- System.Security.Permissions (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
- System.Text.Json (>= 8.0.3)
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.12.0-alpha-20241218035522 | 0 | 6 days ago |
24.12.0-alpha-20241216062436 | 1 | 8 days ago |
24.12.0-alpha-20241212125216 | 1 | 11 days ago |
24.12.0-alpha-20241209033832 | 1 | 15 days ago |
24.12.0-alpha-20241206075210 | 1 | 17 days ago |
24.12.0-alpha-20241206010753 | 1 | 18 days ago |
24.12.0-alpha-20241204084542 | 1 | 20 days ago |
24.12.0-alpha-20241203075310 | 1 | 21 days ago |
24.12.0-alpha-20241202090352 | 1 | 21 days ago |
24.11.0-alpha-20241128090235 | 0 | 25 days ago |