GroupDocs.Search for Node.js via Java

Find text in business documents

GroupDocs.Search for Node.js via Java provides powerful and flexible search functionality for documents. Easily integrate text search into Node.js applications.

How to perform a search in PDF documents

GroupDocs.Search makes searching text in PDF documents simple and efficient for Node.js via Java applications.

  1. Create a directory to store the search index.
  2. Choose the folder that contains the documents.
  3. Set search options to include only PDF files.
  4. Run the search and retrieve the results.
const searchLib = require('@groupdocs/groupdocs.search')

// Define a directory for storing the search index
const index = new searchLib.Index("c:/MyIndex");

// Specify the folder containing searchable documents
index.add("c:/MyDocuments");

// Restrict search to specific file formats
const options = new searchLib.SearchOptions();
options.SearchDocumentFilter = 
    searchLib.SearchDocumentFilter.createFileExtension(".pdf");

// Retrieve and process search results
const result = index.search("Lorem");
npm i @groupdocs/groupdocs.search
click to copy
copied
More examples Documentation

Advanced search capabilities

GroupDocs.Search for Node.js via Java enhances document search efficiency by indexing over 70 file formats. Optimize content retrieval with advanced search techniques.

Key features of GroupDocs.Search

Comprehensive text search

Extract and locate text in popular document formats, such as PDFs, Word files, spreadsheets, and presentations. Supports fuzzy search, homophones, and wildcard queries.

Optimized indexing for performance

Accelerate searches by creating reusable indexes. Enhances speed and efficiency when working with large document collections.

Multi-language support

Search through documents in over 80 languages. Recognizes keyboard layouts and word variations for better accuracy.

Customizable search options

Fine-tune search results with filters, regular expressions, case sensitivity, and other flexible settings.

Filter searchable documents

Learn how to refine document searches using filters.

JavaScript

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

// Configure an index to exclude unwanted file formats
IndexSettings settings = new IndexSettings();
DocumentFilter fileExtensionFilter = 
  searchLib.DocumentFilter.createFileExtension(".odp", ".png", ".rtf");

DocumentFilter invertedFilter = 
  searchLib.DocumentFilter.createNot(fileExtensionFilter);
settings.setDocumentFilter(invertedFilter);

Index index = new searchLib.Index("c:/MyIndex", settings);
    
// Specify the directory containing documents
index.add("c:/MyDocuments");

// Process search output for further use
const result = index.Search("Lorem", options);

// Process search output for further use
console.log('Documents: ' + result.getDocumentCount());
console.log('Occurrences: ' + result.getOccurrenceCount());
npm i @groupdocs/groupdocs.search
click to copy
copied
More examples Documentation

What is GroupDocs.Search?

GroupDocs.Search for Node.js via Java is a robust search and indexing library that enables fast text retrieval in documents. It supports over 70 file formats, including PDFs, Word, Excel, and PowerPoint, ensuring precise and efficient searches.
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.

Key functionalities

Perform fast and precise text searches across documents.

Search in diverse document formats

GroupDocs.Search supports over 70 file types, allowing efficient text search across various office and business documents.

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