{"componentChunkName":"component---src-templates-docs-page-index-js","path":"/docs/apps/instant-search/sources/","result":{"data":{"site":{"siteMetadata":{"logo":"https://content.afosto.io/5719193282412544/brand/AFO-Logo-compleet-kleur-RGBat4x.png","siteUrl":"https://afosto.com","siteName":"Afosto.com","twitter":"https://twitter.com/afosto","facebook":"https://twitter.com/afosto","company":{"foundingDate":"2014","founders":["Tjeuke horsten","Peter Bakker"],"phoneNumber":"050 711 95 19","email":"support@afosto.com"},"address":{"streetAddress":"Kieler Bocht 15C","locality":"Groningen","region":"GR","postalCode":"9723 JA","country":"NL"}}},"strapi":{"doc":{"title":"Manage sources","slug":"en/docs/apps/instant-search/sources/","id":"267","seo_title":"Setting up sources in Afosto Instant Search","seo_description":"Setting up data sources in Instant Search from Afosto","locale":"en","localizations":[{"locale":"nl-NL","slug":"docs/apps/instant-search/bronnen/"}],"blocks":[{"contents":[{"body":"Data sources are the sources that you can connect search engines to. Think of a collection of products or a collection of pages. A source is divided into documents. Each separate product or page is called a document.  All documents are divided into attributes. An attribute is for example the product name, product description or brand. Below we explain how to add a source. You can manage sources in the **admin** section of Instant Search. \n\nIn the overview, click on '**Add source**'. At the moment we only support CSV files or CSV feeds as file format for the source. \n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_1054788446/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_1054788446.png)\n\nA new screen will open where you can set up and add the source. First of all, you need to give the source a **name**. This name must be unique. Then, you need to click on 'Set up CSV integration' to start setting up a CSV file or feed as a source. \n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (1).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_1_b4f804f3b1/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_1_b4f804f3b1.png)\n\nIn the pop-up that opens, you can choose an existing CSV integration (if you have already uploaded a file, for example) or you can create a new integration. To create a new integration, click on '**New CSV integration**'.\n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (2).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_2_c26f07c15f/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_2_c26f07c15f.png)\n\nOnce you have clicked on 'New CSV integration', a screen will open where you can enter a URL or upload a file. In this manual we will use the example of '**Upload file**'.  Select the file on your computer and drag it to the upload area on the screen. \n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (3).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_3_ae8dd1cdf3/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_3_ae8dd1cdf3.png)\n\nWait until the file is uploaded and then select the **separator**. In our movies.csv file this is the **comma**. Click on '**next**'.\n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (4).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_4_6c9884cd35/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_4_6c9884cd35.png)\n\nYou will now see a screen with an overview of all your columns in the file. Check these and if nothing is missing click on '**Add**'.\n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (5).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_5_42da9a0dba/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_5_42da9a0dba.png)\n\nEach source has 3 mandatory fields that must be linked to the columns from the CSV file. Select these columns. Please note that the '**Reference**' must be a unique value from your dataset. Then click on '**Add**'.\n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (6).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_6_51aae1c90b/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_6_51aae1c90b.png)\n\nAfter setting up the required fields, you have the possibility to change the data type of a field or to rename/label it. In the screenshot below the field type of 'release_year' is changed to number. This has the advantage that it can be filtered by means of a slider and that the dataset can be sorted in ascending or descending order. \n\n![admin.afosto.app_instant-search_search-engines_t=4607585555578880(Macbook Screenshot) (7).png](https://qcqcdn.com/afosto/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_7_ac75effc1a/admin_afosto_app_instant_search_search_engines_t_4607585555578880_Macbook_Screenshot_7_ac75effc1a.png)\n\nYou are now finished setting up your source. Instant Search will start setting up your source to be ready for searching. Once you have set up your source, you can return to the **app environment** to test the search. To do so, click on 'Instant Search' in the left menu bar and you will see that the newly added resource has become available in the overview. \n\n![instant-search.jpg](https://qcqcdn.com/afosto/instant_search_3da6119000/instant_search_3da6119000.jpg)\n\n"}],"id":"752","type":"text"}]}}},"pageContext":{"slug":"en/docs/apps/instant-search/sources/","id":267}},"staticQueryHashes":["4039036176"]}