GroupDocs.Search for Node.js via Java

Case-Sensitive Search

GroupDocs.Search for Node.js via Java lets you easily implement advanced case-sensitive search functionality in your Node.js applications.

Steps for Performing Case-Sensitive Searches in PDF Files

GroupDocs.Search makes it easy to carry out case-sensitive searches in PDF files, enhancing your Node.js via Java workflows.

  1. Set up a folder to store the search index.
  2. Select the folder containing PDF files.
  3. Run the search and get the results.
  4. Process and use the results.
const searchLib = require('@groupdocs/groupdocs.search')

// Specify the path for the index folder
const index = new searchLib.Index("c:/MyIndex");

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

// Enable case-sensitive search in the settings
const options = new groupdocs.search.SearchOptions();
options.setUseCaseSensitiveSearch(true);

// Execute the search
const result = index.search("Lorem", options);
npm i @groupdocs/groupdocs.search
click to copy
copied
More examples Documentation

Key Features for Document Search and Indexing

With GroupDocs.Search for Node.js via Java, you can easily search and index text in over 70 file formats. Access and organize information effortlessly using advanced search tools.

Core Features of GroupDocs.Search

Comprehensive Text Search

Find text in various document types like PDFs, Word files, spreadsheets, and presentations. Use options such as exact matches, fuzzy searches, and wildcards for accurate results.

Efficient Data Indexing

Create and manage indexes to speed up searches. Indexing helps you organize and quickly locate data in large document collections.

Supports Multiple Languages

Search documents in over 80 languages with support for diverse keyboard layouts and word variations, ensuring accurate search results.

Customizable Search Settings

Adjust search settings, including case sensitivity, date filters, and exclusion of specific terms or data during indexing.

Example: Case-Sensitive Search Implementation

This example demonstrates how to perform case-sensitive searches for PDF documents.

JavaScript

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

// Define the folder for the search index
const index = new searchLib.Index("c:/MyIndex");
    
// Provide the path to the document folder
index.add("c:/MyDocuments");

// Set up a search query
const wordQuery = searchLib.SearchQuery.createWordQuery("Lorem");

// Activate case-sensitive search settings
const options = new groupdocs.search.SearchOptions();
options.setUseCaseSensitiveSearch(true);

// Search for the text in documents
const result = index.search(wordQuery, options);

// Process and handle the results
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 powerful library for searching and indexing text in documents. It supports over 70 formats, including PDFs, Word, Excel, PowePoint, images, and ZIP files, enabling efficient handling of large amounts of data.
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

Explore advanced features for fast and precise document searching.

Compatible Document Formats

GroupDocs.Search supports over 70 document formats. Customize your search options and save time with indexing.

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