Perform text search and indexing on PDF, Microsoft Office, OpenOffice and many other document file formats.
Quickly locate information in large document collections with advanced full-text search capabilities.
Customize search features like synonyms, fuzzy search, and stemming to enhance accuracy and results.
GroupDocs.Search provides powerful tools for indexing and searching text in popular document formats. Simplify and enhance document management with advanced search functionality.
Perform fast and accurate text searches across indexed documents.
Utilize features like fuzzy search, synonyms, and stemming for more precise results.
Index and search content in Microsoft Office, PDF, OpenOffice, and other common formats.
Quickly build and maintain indexes for large document collections.
GroupDocs.Search code examples
// Create an instance of the Index class, specifying the folder for storing indexes.
Index index = new Index("\\Index Folder");
//Specify the path to the documents where the search will be performed.
index.Add("\\Documents Folder");
//Create an instance of the SearchOptions object.
SearchOptions options = new SearchOptions();
//Perform the search for the desired text.
SearchResult result = index.Search("ipsum dolor", options);
//Handle and process the search results.
if (result.DocumentCount > 0){
Console.WriteLine("Documents: " + result.DocumentCount);
for (int i = 0; i < result.DocumentCount; i++)
{
FoundDocument document = result.GetFoundDocument(i);
Console.WriteLine("Document: " + document.DocumentInfo.FilePath);
Console.WriteLine("Found: " + document.FoundFields.Length);
}
}
// Create an instance of the Index class, specifying the folder for storing indexes.
Index index = new Index("\\Index Folder");
//Specify the path to the documents where the search will be performed.
index.add("\\Documents Folder");
//Create an instance of the SearchOptions object.
SearchOptions options = new SearchOptions();
//Perform the search for the desired text.
SearchResult result = index.search("ipsum dolor", options);
//Handle and process the search results.
if (result.getDocumentCount() > 0){
System.out.println("Documents: " + result.getDocumentCount());
for (int i = 0; i < result.getDocumentCount(); i++)
{
FoundDocument document = result.getFoundDocument(i);
System.out.println("Document: " + document.getDocumentInfo().getFilePath());
System.out.println("Found: " + document.getFoundFields().length);
}
}
const searchLib = require('@groupdocs/groupdocs.search');
// Create an instance of the Index class, specifying the folder for storing indexes.
const index = new searchLib.Index('\\Index Folder');
//Specify the path to the documents where the search will be performed.
index.add('\\Documents Folder');
//Create an instance of the SearchOptions object.
const options = new searchLib.SearchOptions();
//Perform the search for the desired text.
const result = index.search('ipsum dolor', options);
//Handle and process the search results.
if (result.getDocumentCount() > 0){
console.log('Documents: ' + result.getDocumentCount());
for (int i = 0; i < result.getDocumentCount(); i++)
{
const document = result.getFoundDocument(i);
console.log('Document: ' + document.getDocumentInfo().getFilePath());
console.log('Found: ' + document.getFoundFields().length);
}
}
GroupDocs.Search supports almost all widely used file formats
Discover key metrics showcasing our performance, reach, and growth.
We provide compatibility with over 70 popular document formats.
GroupDocs.Search for .NET has been downloaded more than 500,000 times on NuGet.
Java developers have downloaded GroupDocs.Search over 12,000 times from Maven.
Developers and leading businesses worldwide rely on our products for innovative solutions.
GroupDocs libraries are trusted by leading brands and organizations worldwide.
GroupDocs.Search is compatible with the following operating systems and frameworks:
Explore documentation, code samples, and community support to enhance your experience.
Find answers to common questions about GroupDocs.Search.
Explore GroupDocs.Search with our free web application. Perform text searches and indexing on over 70 popular file formats directly in your browser—completely free.
Search within PDF, Excel, Word, PowerPoint, and other file types straight from your web browser.
Upload DOCX to perform advanced text searches without needing to install software.
Test PDFs indexing and retrieval capabilities on various formats for free.