Mapping is used to create an end-user search result page data set. The mapping of a source allows you to set one or many rules sequentially to process an incoming item in that source to determine how to use its metadata to populate fields in the search results page.
While the default mapping options can prove useful in multiple ways, you also have an option to conduct an amplified editing process in the mapping. Each mapping has a unique API key to access it from the front-end search page. You also get to set the map field parameter that you wish to return in the API to the end-user search result page. This mechanism can aid in easily processing the API data on the search page.
- The edit option is available in the Mapping section.
- You can customize the end-user API by choosing relevant map fields here. Only the map fields selected here will reflect in the end-user API.
- You can also update and refresh the API key in the edit option.
API updation can come in handy when a third party has been provided access to your backend for conducting specific technical activities. Once their involvement in your website is complete, updating and refreshing API can help sustain the security.
Map Fields help you define the different components that should be displayed on the search result page. We will derive various metadata tags from the data source and map it as a unique map field.
Every view will have default mapping fields, which include body, title, and URL. While these fields can’t be edited, other relevant map fields can be customized to present the suitable information required for the end-user to drive action.
- The mapping option is available under Views provided in the side navigation bar.
- To add a new map field, click on the blue button on the right top corner of the Mapping section.
- Define the map field here with an appropriate name.
- Choose the search result display preferences – the result, count, or a combination of both.
- Result Modifier – This option should be selected when you want the data to be displayed on the search engine results page. Eg – Price tags
- Count Modifier – This choice is ideal when you intend to display the count of the map field on the search result page. Eg – Testimonials count, Product Variants, review count, PDF count.
- The result, Count Modifier – When both the result and the count modifier seem to be relevant to hold a place in the search page display, you can choose this option. Eg – Category_name(count), Brand_name(count)
- Meta Fields – When the crawler visits webpages, it extracts standard sets of meta tags available. The option allows you to alter the set of meta fields the crawler extracts to create ideal documents.
- Map the meta fields (the already crawled content meta tags) with custom map fields.
- The default query filter available in the map field includes less than, greater than, equal to, and containing.
- Contains – On choosing this option and providing a value against it, only the search results from the specified value or source.
- Greater than, Equal to, and Less than – You can define the values of the map field to display the results in the search page accordingly.
- Select the source and complete the mapping process.