1. GroupDocs Documentation
  2. /
  3. GroupDocs.Search Product Family
  4. /
  5. GroupDocs.Search for Python via .NET

GroupDocs.Search for Python via .NET

groupdocs-search-python-net-home PyPI package PyPI downloads

Release notes Download the wheels Online app

GroupDocs.Search for Python via .NET is a full-text search API: build an index over a folder of documents, then search it with keyword, phrase, wildcard, regular-expression, boolean, fuzzy, synonym, homophone and faceted queries, and highlight what was found. It indexes the text and metadata of more than 80 formats, including Word processing, spreadsheets, presentations, PDF, email, eBooks, archives and images, with no MS Office or OpenOffice installation required.

Quick example

from groupdocs.search import Index

# Create an index in a folder, index a folder of documents, and search it
with Index("./index") as index:
    index.add("./documents")
    result = index.search("relativity")
    print("Documents found:", result.document_count)

Features

  • Persistent index: Index files, folders and streams into an index on disk or in memory, and reopen it on the next run; update() reindexes only the documents that changed.
  • Rich queries: Keyword, phrase, wildcard, regular-expression, boolean, faceted, date-range and numeric-range search, written as text or built as objects.
  • Find what was meant: Fuzzy search tolerates typos and OCR noise, and synonym, homophone and word-form search, spell checking and keyboard layout correction widen a query.
  • Highlighting: Mark the found words in the whole document or in short fragments, as HTML or plain text.
  • Events and Python callbacks: Follow indexing, skip documents and supply passwords from Python handlers, and plug in your own text extractors, OCR engine and logger.
  • Index maintenance: Merge, optimize and check indexes, delete and rename documents, and update an index made by an older version.
  • Images: Reverse image search, and the text of images through an OCR engine you connect.

Supported File Formats

GroupDocs.Search indexes more than 80 file formats. For a complete list, see the full list of supported formats.

  • Word Processing (DOC, DOCX, DOCM, DOT, DOTX, RTF, ODT, OTT, TXT, MD)
  • Spreadsheets (XLS, XLSX, XLSM, XLSB, XLTX, ODS, CSV, TSV)
  • Presentations (PPT, PPTX, PPTM, PPS, PPSX, POT, POTX, ODP)
  • Fixed-Layout (PDF)
  • Markup (HTML, HTM, XHTML, MHTML, XML)
  • eBooks (EPUB, FB2, CHM)
  • Email (EML, EMLX, MSG, PST, OST)
  • Images (JPG, PNG, BMP, GIF, TIFF, WEBP, EMF, WMF, PSD, DJVU)
  • Archives (ZIP)
  • Other (OneNote, Visio, Microsoft Project, DICOM, MP3, WAV, AVI, MOV, TORRENT)

Getting Started

To get started, refer to the System Requirements, Supported Document Formats, Installation, and Quick Start Guide sections for setup instructions.

Developer Guide

For practical code examples and explanations of the index-and-search workflow, see the Developer Guide section. It covers creating and updating indexes, every search type, search results and highlighting, dictionaries, events and Python callbacks, and search networks.

AI Agents and LLM Integration

The package ships an AGENTS.md reference for AI coding assistants, and the documentation is available to them through an MCP server and as machine-readable text. See AI agents and LLM integration.

Technical Support

If you experience any issues or have suggestions, please refer to the Technical Support topic. This topic provides multiple support channels tailored to your needs.

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.