GroupDocs.Search for .NET

Search for phrases in documents

Find specific phrases quickly with GroupDocs.Search for .NET. Integrate efficient search functionality into your .NET applications.

How to search phrases in PPTX documents

GroupDocs.Search simplifies searching in PPTX documents. Use various options to refine search results in .NET applications.

  1. Set up the search index folder.
  2. Specify the folder containing PPTX files.
  3. Configure search settings.
  4. Retrieve and process search results.
// Path to store the search index
Index index = new Index("c:/MyIndex");

// Folder containing documents
index.Add("c:/MyDocuments");

// Configure search options
SearchQuery word1 = SearchQuery.CreateWordQuery("lorem");
SearchQuery word2 = SearchQuery.CreateWordQuery("ipsum");
SearchQuery word3 = SearchQuery.CreateWordQuery("dolor");

SearchQuery query = SearchQuery.CreatePhraseSearchQuery(word1, word2, word3);

// Execute the search
SearchResult result = index.Search(query);
dotnet add package GroupDocs.Search
click to copy
copied
More examples Documentation

Discover .NET document search engine

GroupDocs.Search for .NET enables phrase searches across 70+ file formats. Easily locate and manage data with advanced search capabilities.

Key features of GroupDocs.Search

Phrase search

Search for exact phrases in business documents, including PDFs, Word files, presentations, and spreadsheets. Use wildcards and other options if the exact phrase is unknown.

Efficient data indexing

Create and reuse search indexes to speed up document searches. Indexing structures data efficiently, making phrase searches faster.

Multi-language support

Search documents in over 80 languages. Supports different keyboard layouts and morphological word forms for better search accuracy.

Flexible search options

Customize searches with features like case sensitivity, fuzzy and homophone search, document filtering, and more.

Using advanced search techniques

Learn how to create queries for searching in PPTX.

C#

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

// Create a query for a specific phrase
SearchQuery word1 = SearchQuery.CreateWordQuery("Lorem");
SearchQuery wildcard = SearchQuery.CreateWildcardQuery(1, 7);
SearchQuery word2 = SearchQuery.CreateWordQuery("dolor");

SearchQuery query = SearchQuery.CreatePhraseSearchQuery(word1, wildcard, word2);

// Retrieve the search results
SearchResult result = index.Search(query);

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

GroupDocs.Search features

GroupDocs.Search for .NET is a powerful library for indexing and searching text in documents. It supports over 70 file formats, including PDFs, Word documents, Excel sheets, images, and ZIP files, enabling 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.

Advanced features

Utilize powerful and efficient search functionalities.

Phrase search in business documents

GroupDocs.Search supports searches in 70+ document formats. Use advanced options and indexing to streamline your search process.

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