GroupDocs.Search for Node.js via Java

Smart document search solution

Easily locate text in different document formats using GroupDocs.Search for Node.js via Java. Create advanced search queries within your Node.js applications.

Perform search in PDF files

GroupDocs.Search allows you to execute searches in PDF files, refining results in Node.js via Java applications.

  1. Define a storage folder for the search index.
  2. Select a folder with PDF files.
  3. Set additional search parameters.
  4. Run the search and analyze results.
const searchLib = require('@groupdocs/groupdocs.search')

// Specify the directory for search index storage
const index = new searchLib.Index("c:/MyIndex");

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

// Enable homophone search for words that sound similar
const options = new searchLib.SearchOptions();
options.setUseHomophoneSearch(true);

// Run a complex search query
const result = index.search("metis", options);
npm i @groupdocs/groupdocs.search
click to copy
copied
More examples Documentation

Advanced search & indexing capabilities

GroupDocs.Search for Node.js via Java provides powerful text search and indexing tools across 70+ document formats, making it easy to find and organize information.

Key Benefits of GroupDocs.Search

Comprehensive text search

Locate text in multiple document types, including PDFs, Word documents, PowerPoint presentations, and spreadsheets. Use exact matches, fuzzy search, and wildcards for refined results.

Efficient indexing for large data

Speed up searches by creating structured indexes, making it easier to retrieve information from large document collections.

Supports 80+ languages

Search across documents in different languages, with automatic recognition of various word forms and keyboard layouts.

Custom search settings

Adjust search options such as case sensitivity, date filters, and word exclusions to get precise results.

Using search for PDF documents

This example shows how to use search queries within PDF documents.

JavaScript

const searchLib = require('@groupdocs/groupdocs.search')

// Set the directory for search indexing
const index = new searchLib.Index("c:/MyIndex");
    
// Provide the file path for document storage
index.add("c:/MyDocuments");

// Enter the password for protected files
index.getDictionaries().getDocumentPasswords().add("protected.pdf", '123456');

// Enable fuzzy search for similar word detection
const options = new searchLib.SearchOptions();
options.getFuzzySearch().setEnabled(true);
options.getFuzzySearch().setFuzzyAlgorithm(new searchLib.SimilarityLevel(0.8));

// Extract search results
const result = index.search("Loarem", options);

// Process and review the results
console.log('Documents: ' + result.getDocumentCount());
console.log('Occurrences: ' + result.getOccurrenceCount());
npm i @groupdocs/groupdocs.search
click to copy
copied
More examples Documentation

Introduction to GroupDocs.Search

GroupDocs.Search for Node.js via Java is a high-performance library for full-text search and document indexing. It supports 70+ file types, including PDF, Word, PowerPoint, Excel, images, and ZIP archives, ensuring fast and accurate 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

Discover high-speed search features designed to enhance efficiency and accuracy.

Search in a variety of documents

GroupDocs.Search works with over 70 file formats, including office documents, ensuring quick and accurate searches with indexing support.

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