Views
While the collection is the data repository, views enable users to manage the way the data in the collection are customized and displayed on the interface. In other words, users can control the way data appears on their search sites and even optimize the search results based on their preferences.
By creating multiple views; you could create a search page for the same data based on various parameters like design, method, price, features, brand, popularity, etc. Tuning the views option is an interesting way of performing A/B testing on your search parameters.
For example: Let’s assume that you own an eCommerce site and a News website. Each site has its collection. The data from the data source stored in the collection can be added while creating a view. That way, your search site can display search results from your eCommerce as well as your News websites. You can also create conditions/rules to display search results from either one of the websites or vice versa.
It is also possible to optimize your search results in Views. One can set up rules for capturing the synonyms of the search keyword and displaying similar search results. In addition, you can also optimize the search results by adjusting the field weight and using the mapping feature.
Managing Views
When a collection is added to a view, all data sources that belong to that particular collection will be a part of the view. Create more views with any number of variations of data source type collection. For example, Keyspider has a Web, XML, and API data source type collection.
You could create a web and API data collection in one view and all three data source type collections in another view. You could tune search results for each view for the same collection’s data without reindexing or recreating separate search engines.
Creating a view
You can create a new view in the ‘All Views’ section. It is advised to replicate the view name as mentioned in the front end and choose a relevant collection to map the view accordingly.
- To create a view, click the Views icon provided in the side navigation bar.
- Click on All Views
- You will find Create View in the right top corner
- Define the View with a name, description.
- Choose the relevant Collection
- Complete the process by saving the selection.