GroupDocs.Search for .NET

Advanced document text search

GroupDocs.Search for .NET simplifies text search in popular document formats, allowing you to create powerful search queries in your .NET applications.

How to perform text search in DOCX documents

GroupDocs.Search enables advanced content search operations in DOCX documents, allowing refined search results in .NET applications.

  1. Set up the folder to store the search index.
  2. Choose the folder containing DOCX files.
  3. Configure additional search options.
  4. Run the search and review results.
// Define the path for the search index
Index index = new Index("c:/MyIndex");

// Select the folder containing documents to be searched
index.Add("c:/MyDocuments");

// Enable homophone search to find words that sound alike
SearchOptions options = new SearchOptions();
options.UseHomophoneSearch = true;

// Execute a complex search query
SearchResult result = index.Search("metis", options);
dotnet add package GroupDocs.Search
click to copy
copied
More examples Documentation

Advanced search and indexing features

GroupDocs.Search for .NET enhances text search and indexing across more than 70 file formats, providing efficient tools for locating and managing information.

Key Features of GroupDocs.Search

Powerful text search

Search for text across multiple document types, including PDFs, Word documents, PowerPoint presentations, and spreadsheets. Use features like exact matches, fuzzy search, and wildcards to refine your results.

Fast indexing for large data sets

Create and manage search indexes for quick retrieval of information. Indexing optimizes searches across extensive document collections.

Multi-language support

Perform searches in over 80 languages, with support for different keyboard layouts and word variations to improve accuracy.

Customizable search settings

Fine-tune search parameters with options like case sensitivity, date range filters, and word exclusions for better results.

Executing advanced search queries

This example demonstrates how to apply search queries for DOCX documents.

C#

// Define the folder for the search index
Index index = new Index("c:/MyIndex");
    
// Specify the path to the document files
index.Add("c:/MyDocuments");

// Provide a password for protected documents
index.Dictionaries.DocumentPasswords.Add("protected.docx", "123456");

// Enable fuzzy search to find similar words
SearchOptions options = new SearchOptions();
options.FuzzySearch.Enabled = true;
options.FuzzySearch.FuzzyAlgorithm = new SimilarityLevel(0.8);

// Retrieve search results
SearchResult result = index.Search("Loarem", options);

// Process the search output
Console.WriteLine("Documents: " + result.DocumentCount);
Console.WriteLine("Occurrences: " + result.OccurrenceCount);
dotnet add package GroupDocs.Search
click to copy
copied
More examples Documentation

What is GroupDocs.Search?

GroupDocs.Search for .NET is a powerful library designed for full-text search and indexing in documents. It supports over 70 file formats, including PDF, Word, PowerPoint, Excel, images, and ZIP files, ensuring fast and accurate search results.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Search for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Explore key features

Take advantage of advanced and high-performance search functionalities.

Search across your business documents

GroupDocs.Search supports more than 70 file formats, including office documents, enabling quick and efficient searches with indexing capabilities.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English