GroupDocs.Search for .NET

Boolean logic text search

GroupDocs.Search for .NET makes it simple to create advanced search queries using boolean operators (AND, OR, NOT) within your .NET applications.

How to search PPTX document content using boolean logic

GroupDocs.Search makes searching PPTX document content straightforward. It provides Boolean logic search conditions to refine results in .NET applications.

  1. Specify the folder to store the search index.
  2. Choose the folder containing PPTX files.
  3. Run the search and retrieve results.
  4. Process the results.
// Set the path to the index folder
Index index = new Index("c:/MyIndex");

// Specify the folder containing documents to search
index.Add("c:/MyDocuments");

// Run a search using a complex query
SearchResult result = index.Search("lorem AND impsum");
dotnet add package GroupDocs.Search
click to copy
copied
More examples Documentation

Explore advanced features for document search and indexing

The GroupDocs.Search for .NET library simplifies text search and indexing for more than 70 file formats. Easily locate and manage information with advanced search tools.

Main features of GroupDocs.Search

Powerful text search

Search for text across various file types, including PDFs, Word documents, PowePoint presentations, and spreadsheets. Use features like exact matches, fuzzy searches, and wildcards to refine results.

Index large data sets

Create and maintain indexes for quicker searches. Indexing structures and organizes data, making it easier to search extensive document collections.

Supports multiple languages

Search documents in over 80 languages, with support for different keyboard layouts and morphological word forms to enhance search accuracy.

Customizable search options

Adjust search settings with features like case sensitivity, date range filters, and the ability to exclude specific words or data during indexing.

Using advanced boolean search queries

This example demonstrates how to apply boolean queries for searching PPTX documents.

C#

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

// Create a search query using Boolean logic
SearchQuery wordQuery1 = SearchQuery.CreateWordQuery("Lorem");
SearchQuery wordQuery2 = SearchQuery.CreateWordQuery("ipsum");
SearchQuery booleanQuery = SearchQuery.CreateAndQuery(wordQuery1, wordQuery2);

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

// Process the search results
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 comprehensive library for searching and indexing text in documents. It supports over 70 file formats, such as PDF, Word, PowerPoint, Excel, images, and ZIP files, enabling efficient processing of large amounts of information.
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.

Discover key features

Explore advanced and efficient search functionalities.

Search across popular document formats

GroupDocs.Search supports over 70 file formats. Customize search rules and leverage indexing to save time and effort.

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