Skip to content

Instantly share code, notes, and snippets.

View GroupDocsSearch's full-sized avatar

GroupDocs_Search GroupDocsSearch

View GitHub Profile

How to Set Date Format for Date Range Searches via .NET API

GroupDocs.Search .NET API allows computer programmers to add custom searching capability inside their .NET application. Moreover, programmers can easily Specify date range search formats with ease.

The following C# code example shows how to specify date range search formats for searching document inside .NET Apps.

View a list of all supported document input and output file formats supported by GroupDocs.Search for .NET: https://docs.groupdocs.com/search/net/supported-document-formats/

APIs to Use

How to Search Document by Setting Date Range inside .NET Apps?

Using GroupDocs.Search .NET API software developers can search various types of document by setting date range. It allows generating date wise search queries with just a couple of lines of C# code.

The following .NET code example demonstrates how to search document by applying date range inside .NET Applications.

View a list of all supported document conversion file formats https://docs.groupdocs.com/conversion/net/supported-document-formats/

Installation

// Supported file formats: https://docs.groupdocs.com/search/java/supported-document-formats/
ISearchDocumentFilter filter1 = SearchDocumentFilter.createFilePathRegularExpression("Einstein", Pattern.CASE_INSENSITIVE);
ISearchDocumentFilter filter2 = SearchDocumentFilter.createFileExtension(".fb2", ".epub");
ISearchDocumentFilter andFilter = SearchDocumentFilter.createAnd(filter1, filter2);
ISearchDocumentFilter filter3 = SearchDocumentFilter.createFilePathRegularExpression("Einstein", Pattern.CASE_INSENSITIVE);
ISearchDocumentFilter filter4 = SearchDocumentFilter.createFileExtension(".doc", ".docx", ".pdf");
ISearchDocumentFilter orFilter = SearchDocumentFilter.createOr(filter3, filter4);

How to Apply Document Filters in Search Results using Java API

GroupDocs.Search Java API helps software developers to create powerful applications with searching capabilities using Java API. Developers can pass document filters to identify the documents and display as a result of the search.

The following Java code example demonstrates how to set a document filter for searching inside Java Applications.

View a list of all supported document input and output file formats supported by GroupDocs.Search for Java: https://docs.groupdocs.com/search/java/supported-document-formats/

APIs to Use

How to Combine Search Document Filters inside .NET Apps

GroupDocs.Search .NET API allows computer programmers to add custom searching capability inside their .NET application. It is also possible to apply document filters to control which of the documents found should be returned as a result of the search. The following .NET code example demonstrates how to combine search document filters inside .NET Apps.

View a list of all supported document input and output file formats supported by GroupDocs.Search for .NET: https://docs.groupdocs.com/search/net/supported-document-formats/

APIs to Use

How to Set Document Filter in Searching inside .NET Applications

GroupDocs.Search .NET API helps software developers to add searching capabilities inside their .NET application. It is now possible to identify which documents found in the search should be returned as a result of the search by setting a document filter. The following .NET code example demonstrates how to set a document filter for searching inside .NET Applications.

View a list of all supported document conversion file formats https://docs.groupdocs.com/conversion/net/supported-document-formats/

Installation

Download GroupDocs.Search for.NET from https://downloads.groupdocs.com/search/net or install the whole package directly from Nuget https://www.nuget.org/packages/GroupDocs.search/ into your workplace.

// Supported file formats: https://docs.groupdocs.com/search/java/supported-document-formats/
String indexFolder = "c:\\MyIndex\\";
String documentsFolder = "c:\\MyDocuments\\";
Index index = new Index(indexFolder);
index.add(documentsFolder);
SearchOptions options = new SearchOptions();

Phrase Search Combination with Other Searches inside Java Apps

GroupDocs.Search Java API has provided complete support for advanced searching capabilities empowering software developers to create complex search queries by combining phrase search with other types of searches inside their own Java applications.

The following Java code example demonstrates how to combine both wildcards representing words and characters with just a couple of line of code.

View a list of all supported document input and output file formats supported by GroupDocs.Search for Java: https://docs.groupdocs.com/search/java/supported-document-formats/

APIs to Use

Make Phrase Search using Wildcards in Text & Object Form in Java Apps

GroupDocs.Search Java API gives software professional the capability to add to advanced searching functionality inside their Java application. It allows to perform search for exact phrase inside various documents file formats such as PDF, HTML, DOC, DOCX, RTF, XLSX, CSV, PPTX & Email messages etc.

The following Java code example shows how consumers can use wildcards in phrase search queries in text as well as object form inside Java Apps.

View a list of all supported document input and output file formats supported by GroupDocs.Search for Java: https://docs.groupdocs.com/search/java/supported-document-formats/

APIs to Use

Make Phrase Search Operations in Text & Object Form inside Java Apps

GroupDocs.Search for Java has included complete functionalities for advanced searching which enables software developers to create powerful software applications with searching capabilities and ease of use with very less effort and cost.

The following Java code example shows how to accomplish Phrase searching in text & object form inside Java Applications.

View a list of all supported document input and output file formats supported by GroupDocs.Search for Java: https://docs.groupdocs.com/search/java/supported-document-formats/

APIs to Use