Technical documentation - URL for search

This guide describes how to refer to search results using URL.

This functionality is available in version 5.0 (new UI) and later.

Usage

Basig usage is to add attribtues to the url where search term and categories are accepted. The categories need to match the configured categories in profile.config.

https://www.mysite.com/AssertWeb/en/site/NewSearch?query=1234567890

Adding categories URL should look like this.

https://www.mysite.com/AssertWeb/site/NewSearch?query=1234567890&category=Product,PartAndKit

In this case the categories Product and PartAndKit must be defined in the SearchManager in profile.config.

Advanced usage 

For advanced usage where facets are selected it is possible to include a json detailing search criterias. Sample json is as below.

https://www.mysite.com/AssertWeb/en-GB/site/NewSearch?selection= {"queryText":"qd","selectedCategories":["PartAndKit"],"selectedFacets":[{"id":"PresentationName","values":[{"name":"query","value":"bracket"}]},{"id":"Colour","values":[{"name":"query","value":"black"}],"column":true}]}

It is also possible to combine the two methods.