{"componentChunkName":"component---src-templates-docs-page-index-js","path":"/docs/apps/instant-search/synonyms/","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":"Synonyms","slug":"en/docs/apps/instant-search/synonyms/","id":"275","seo_title":"Setting Synonyms in Instant Search of Afosto","seo_description":"Setting up synonyms","locale":"en","localizations":[{"locale":"nl-NL","slug":"docs/apps/instant-search/synoniemen"}],"blocks":[{"contents":[{"body":"If several words have the same meaning in your data set, you can create a list of synonyms. This will make your search results more relevant.\n\nIn general, a search on one word will give the same results as a search on one of its synonyms.\n\nThere is one exception to this rule, more on this below.\n\n## Adding synonyms\n\nTo add synonyms, go to settings in the app. Then click on the 'synonyms' tab. The screen below will appear. \n\n![afosto.app__t=4607585555578880(Macbook Screenshot) (3).png](https://qcqcdn.com/afosto/afosto_app_t_4607585555578880_Macbook_Screenshot_3_23a9cab36f/afosto_app_t_4607585555578880_Macbook_Screenshot_3_23a9cab36f.png)\n\nClick on **add synonym**. The pop-up below will appear, allowing you to add a synonym.\n\n![afosto.app__t=4607585555578880(Macbook Screenshot) (6).png](https://qcqcdn.com/afosto/afosto_app_t_4607585555578880_Macbook_Screenshot_6_f31588fac1/afosto_app_t_4607585555578880_Macbook_Screenshot_6_f31588fac1.png)\n\nThere are two types of synonyms you can enter in Instant Search. They are:  \n\n* One way synonym\n* Two-way synonym\n\n## One-way synonym\n\nUse this if you want a word to be synonymous with another, but not the other way around.\n  \nphone => iphone\n\nA search for phone will return documents that contain iphone as if they contained the word phone. However, if you search for iphone, documents that contain phone will be lower in the results because no match can be found.\n\n\n## Two-way synonym\n\nBy associating one or more synonyms with each other, they are considered the same in both directions.\n\nshoe <=> boot <=> slipper <=> trainers\n\nIf one searches with one of these words, all synonyms are considered the same and appear in the search results. \n\nIf you search for shoe, boot is found, and if you search for slipper, shoe is found. In the example in the screenshot, we have made \"Shawshank redemption\" synonymous with \"Best movie\" and vice versa. \n\nOnce you have entered your synonym, click on **add**. \n\n![afosto.app__t=4607585555578880(Macbook Screenshot) (5).png](https://qcqcdn.com/afosto/afosto_app_t_4607585555578880_Macbook_Screenshot_5_2d53c27f89/afosto_app_t_4607585555578880_Macbook_Screenshot_5_2d53c27f89.png)\n\nSee screenshot below. If you search for 'Best movie', the film 'The shawshank redemption' will appear as the first result. This is the synonym we added above.\n\n![afosto.app_instant-search_view_movies_t=5719193282412544(Macbook Screenshot) (2).png](https://qcqcdn.com/afosto/afosto_app_instant_search_view_movies_t_5719193282412544_Macbook_Screenshot_2_a948580476/afosto_app_instant_search_view_movies_t_5719193282412544_Macbook_Screenshot_2_a948580476.png)\n\n## Synonyms with several words\n\nNote that synonyms with more than two words are treated differently than synonyms between single words. \n\nIf a multi-word phrase is considered a synonym of another word or phrase, the exact search always takes precedence over its synonym(s). If you enter \"SF\" as a search term, results containing \"San Francisco\" will also be returned. However, they will be considered less relevant than those containing \"SF\". The reverse is also true.\n\nTIP  \n  \nMulti-word synonyms are limited to a maximum of three words.  \nFor example, while you could make \"League of Legends\" and \"LOL\" synonyms, you cannot do that for \"The Lord of the Rings\" and \"LOTR\".\n  \n\n## Normalisation of words\n\nAll synonyms are lowercased and de-unicoded during indexing.  \n\nA search for \"resume\" would return all documents containing \"resume\" or \"CV\" in addition to all documents containing \"Résumé\", \"resumé\", \"cv\", etc., not altered by capitalization or accent marks.\n\n\n\n"}],"id":"757","type":"text"}]}}},"pageContext":{"slug":"en/docs/apps/instant-search/synonyms/","id":275}},"staticQueryHashes":["4039036176"]}