# How to Run Examples This article describes how to build a project with GroupDocs.Search for .NET from scratch and how to run the examples from GitHub. ## Build project from scratch * Open Visual Studio and go to **File** -> **New** -> **Project**. * Select appropriate project type - Console App, ASP.NET Web Application etc. * Install **GroupDocs.Search for .NET** from Nuget or official GroupDocs website following this [guide]({{< ref "search/net/getting-started/installation.md" >}}). * Code your first application with **GroupDocs.Search for .NET** like this: **C#** ```csharp string indexFolder = @"c:\MyIndex\"; string documentsFolder = @"c:\MyDocuments\"; // NOTE: Put here actual path for your documents string query = "Einstein"; Index index = new Index(indexFolder); // Creating an index in the specified folder or opening an existing one index.Add(documentsFolder); // Indexing documents from the specified folder SearchResult result = index.Search(query); // Searching in index foreach (FoundDocument document in result) { Console.WriteLine(document.DocumentInfo.FilePath); } ``` * Build and Run your project. * List of found documents will appear in the console. {{< alert style="info" >}}In the evaluation mode, only the first 10 found documents can be retrieved: since version 26.11, an enumeration of a search result with *foreach* throws [LicenseRestrictionException](https://reference.groupdocs.com/search/net/groupdocs.search.exceptions/licenserestrictionexception/) after the first 10 documents, as the [GetFoundDocument](https://reference.groupdocs.com/search/net/groupdocs.search.results/searchresult/getfounddocument/) method does for a document number of 10 or greater. See [Evaluation limitations and licensing]({{< ref "search/net/getting-started/evaluation-limitations-and-licensing.md" >}}).{{< /alert >}} ## Download examples from GitHub The complete examples package of **GroupDocs.Search** is hosted on [GitHub](https://github.com/groupdocs-search/GroupDocs.Search-for-.NET). You can either download the ZIP file from [here](https://codeload.github.com/groupdocs-search/GroupDocs.Search-for-.NET/zip/master) or clone the repository using your favorite Git client. In case you download the ZIP file, extract the folders on your local disk. The extracted files and folders will look like following image: ![](https://docs.groupdocs.com/search/net/images/how-to-run-examples.jpg) In extracted files and folders, you can find the following solution file: * CSharp solution file Open the solution in a version of Visual Studio that supports the target framework of the examples project (see [System requirements]({{< ref "search/net/getting-started/system-requirements.md" >}})). The **Data** folder contains all the sample document files used in the examples. To run the examples, open the solution file in Visual Studio and build the project. To add missing references for **GroupDocs.Search** see [Installation]({{< ref "search/net/getting-started/installation.md" >}}). All the functions are called from **Program.cs**. Un-comment the function you want to run and comment the rest. ![](https://docs.groupdocs.com/search/net/images/how-to-run-examples_1.jpg) ## Contribute If you would like to add or improve an example, we encourage you to contribute to the project. All examples in this repository are open source and can be freely used in your own applications. To contribute, you can fork the repository, edit the code and create a pull request. We will review the changes and include it in the repository if found helpful.