# Advanced search archive documents This article explains how to make advanced search within the archive that contains several documents for any electronic signatures with GroupDocs.Signature API. [**GroupDocs.Signature**](https://products.groupdocs.com/signature/net) searches all documents of an archive in one call: compose a list of [SearchOptions](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/searchoptions/) objects, such as BarcodeSearchOptions or QrCodeSearchOptions, and pass it to the Search method. The result is a [SearchResult](https://reference.groupdocs.com/signature/net/groupdocs.signature.domain/searchresult/) object. Each item of its Succeeded list is a [DocumentResultSignature](https://reference.groupdocs.com/signature/net/groupdocs.signature.domain/documentresultsignature/) for one archive document with the signatures found in it, and the Failed list holds the documents that could not be processed. Here are the steps to search for the values within the archive document with GroupDocs.Signature: * Create new instance of [Signature](https://reference.groupdocs.com/signature/net/groupdocs.signature/signature) class and pass source document path as a constructor parameter. * Instantiate the various [SearchOptions](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/searchoptions) objects according to your requirements. Here there's ability to compose list of any search options types. * Call [Search](https://reference.groupdocs.com/signature/net/groupdocs.signature/signature/search) method of [Signature](https://reference.groupdocs.com/signature/net/groupdocs.signature/signature) class instance and pass list of the [SearchOptions](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/searchoptions) to it. This example shows how to make advanced search for any data within the archive documents. ```csharp using (var signature = new Signature("archive.zip")) { // create list of signature options var bcOptions = new BarcodeSearchOptions(BarcodeTypes.Code128); var qrOptions = new QrCodeSearchOptions(QrCodeTypes.QR); // setup search options List listOptions = new List() { bcOptions, qrOptions }; // search archive for documents var searchResult = signature.Search(listOptions); // check the result Console.WriteLine("\nList of successfully processed documents:"); int number = 1; foreach (DocumentResultSignature document in searchResult.Succeeded) { Console.WriteLine($"Document #{number++}: {document.FileName}. Processed: {document.ProcessingTime}, mls"); foreach (BaseSignature temp in document.Succeeded) { Console.WriteLine($"\t\t#{temp.SignatureId}: {temp.SignatureType}"); } } if (searchResult.Failed.Count > 0) { Console.WriteLine("\nList of failed documents:"); number = 1; foreach (DocumentResultSignature document in searchResult.Failed) { Console.WriteLine($"ERROR in Document #{number++}-{document.FileName}: {document.ErrorMessage}, mls"); } } } ``` {{< alert style="info" >}} To catch errors that the search raises as exceptions, see [Searching for document signatures with exception handling]({{< ref "signature/net/developer-guide/advanced-usage/searching/searching-for-document-signatures-with-exception-handling.md" >}}). {{< /alert >}} ## More resources ### GitHub Examples You may easily run the code above and see the feature in action in our GitHub examples: * [GroupDocs.Signature for .NET examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET) * [GroupDocs.Signature for Java examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java) * [Document Signature for .NET MVC UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET-MVC) * [Document Signature for .NET App WebForms UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET-WebForms) * [Document Signature for Java App Dropwizard UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Dropwizard) * [Document Signature for Java Spring UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Spring) ### Free Online Apps Along with the full-featured .NET library, we provide simple but powerful free online apps. To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the **[GroupDocs.Signature App Product Family](https://products.groupdocs.app/signature/family)**.