GroupDocs.Search at a glance

Node.js JavaScript library for text search

Illustration search

Node.js Indexing and Search Operations

Indexing in GroupDocs.Search for Node.js via Java collects, stores, and parses data for precise and efficient search operations. These indexes are frequently used to perform searches.

Merge Multiple Indexes to Enhance Search Efficiency

GroupDocs.Search for Node.js via Java API allows the merging of multiple indexes into one. Frequent modifications create several delta indexes, which can slow down search performance. Our solution merges these delta indexes into a common index, containing all the information from the merged delta indexes, significantly improving search efficiency while keeping the delta indexes unchanged. Various functionalities can be configured to fine-tune this process.

Recognize Search Queries from Different Keyboard Layouts

GroupDocs.Search for Node.js via Java recognizes search queries that do not match the keyboard layout. Currently, 88 languages and 164 different keyboard layouts are supported.

Search Using Morphological Word Forms

With GroupDocs.Search for Node.js via Java, you can search for various word forms, such as singular and plural nouns, or all forms of a verb. English and non-English languages can be customized for specific word forms.

Platform independence

GroupDocs.Search for Node.js via Java supports all popular operating systems and package managers.

Windows
macOS
Linux
NPM
NuGet
Amazon
Docker
Azure
VS Code
Eclipse
IntelliJ

Supported file formats

GroupDocs.Search for Node.js via Java enables processing a wide range of file formats. Explore the full list.

  • Portable: PDF
  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM
  • Excel: XLS, XLSX, XLSM, XLT, XLTX, XLTM, XLSB, XLA, XLAM, CSV, TSV
  • PowerPoint: PPT, PPTX, POT, POTX, PPS, PPSX, PPTM, PPSM, POTM
  • OpenDocument: ODT, ODP, ODS, OTT, OTS
  • Text: TXT, RTF

Media Formats

  • Popular image formats: BMP, JP2, PNG, EMF, WMF, JPG, PSD
  • Multi-page images: GIF, WEBP, TIFF
  • Audio: MP3, WAV
  • Video: AVI, MOV, QT, FLV, ASF

Other

  • Email: PST, OST, MSG, EML, EMLX
  • Microsoft Visio: VSD, VSS
  • Web: XML, HTM, HTML, XHTML, MHT, MHTML
  • Others: TORRENT, ZIP, DCM, DJVU, EPUB, FB2

GroupDocs.Search for Node.js via Java Features

Control business document content using our advanced search engine, supporting popular file formats including PDF, DOCX, XLSX, PPTX, and more.

Feature icon

Flexible Parameters

Use Date Range & Case Sensitivity as Search Parameters

Feature icon

Spell Check Search

Use Search Phrases with Spell Check and Wildcards & Skip Special Characters in Queries

Feature icon

Results Filtering

Set up Document Filtering in Search Results

Feature icon

Import & Export

Perform Import or Use List to Modify Characters during Indexing & Export to a File

Feature icon

Skip Unnecessary Data

Selectively Skip Indexing for Specific Files & Skip Specific Words to Index Faster

Feature icon

URL Processing

Extract HTML Formatted Text to a File & Generate URL to Navigate Search Results in HTML

Feature icon

Rapid Search

Divide Search into Smaller Chunks to Rapidly Search Large Indexes

Feature icon

Stream Processing

Index Documents from Streams and Data Structures

Feature icon

Handle Misspelling

Enable Exact Number of Occurrences for each Found Word to Offer Alternative Word Suggestions in case of Misspelling

Feature icon

Archive Support

Index Zipped Archives inside other ZIP Archives & Retrieve List of Indexed Files in an Archive

Feature icon

Disk Space Saving

Save Space with Compact Indexing & Index Password Secured Documents

Feature icon

Custom Synonyms

Add English Synonyms to Default Synonym Dictionary

Code samples

Explore GroupDocs.Search for Node.js via Java functionalities with examples

Use ‘fuzzy’ search to enhance productivity

Enjoy flexible GroupDocs.Search for Node.js via Java functionality to enhance documents content control by sophisticated search algorithms. Learn more.

How to process search result

// Create an index
const index = new Index('c:/IndexFolder');
index.add('c:/DocumentFolder');

// Set up search options
var options = new SearchOptions();
options.getFuzzySearch().setEnabled(true);
options.getFuzzySearch().setFuzzyAlgorithm(new TableDiscreteFunction(3));

// Search for documents containing the word 'water' or the phrase 'Lorem ipsum'
var query = "water OR \"Lorem ipsum\"";
var result = index.search(query, options);

// Process search result
console.log("Documents: " + result.getDocumentCount());
console.log("Total occurrences: " + result.getOccurrenceCount());
for (int i = 0; i < result.getDocumentCount(); i++) {
    FoundDocument document = result.getFoundDocument(i);
    console.log('Document: ${document.getDocumentInfo().getFilePath()}');
    console.log('Occurrences: ${document.getOccurrenceCount()}');
    }

Regular expressions are available for advanced search scenarios

GroupDocs.Search for Node.js via Java allows us to use regular expressions in order to narrow search result. Dive into advanced search techniques.

How to search using regular expressions

// Create an index
const index = new Index('c:/IndexFolder');
index.add('c:/DocumentFolder');

// Search for the phrase in text form

// The first caret character at the beginning indicates that this is a regular expression search query
var query = "^^(.)\\1{1,}";
// Search for two or more identical characters at the beginning of a word
var result = index.search(query);
 English