Product Discovery Search
When you click the search icon associated with a Product Discovery collection, you will be redirected to the default hybrid search plugin tailored for viewing product information.
To access Product Discovery plugin please use the following link in your build.
https://localhost:8443/product-discovery/index.html
Prerequisite
- Download ,install and configure SearchBlox Service
- Please create an Product Discovery Collection and index CSV or JSON datasets.
Features of Product Discovery Plugin
You can search all products directly by providing the terms.

-
The settings you can perform on Product Discovery Search are listed here:
-
Search Setting : Weight ratio of
keyword:vector
search for hybrid search can be controlled within the Product Discovery SearchSettings
.
-
Grid View: Results can be viewed in Grid View.
-
List View: Results can be viewed in List View.
-
Plugin Settings: Toggled to use SearchAI features like:
-
Facets: Facets can be viewed by clicking on filter button as shown in the image.
-
Fields in facets.js
The content of facet.js are as shown:
window.facets = {
"facets": [
{
"field": "colname",
"display": "Collection Name",
"size": "100"
},
{
"field": "contenttype",
"display": "File Type",
"size": "100"
},
{
"field": "keywords",
"display": "keywords",
"size": "100"
},
{
"field": "topics",
"display": "Topics",
"size": "10000"
},
{
"field": "lastmodified",
"display": "Last Modified",
"dateRange": [
{
"name": "Last 24 hours",
"calendar": "days",
"value": "1"
},
{
"name": "Past Week",
"calendar": "days",
"value": "7"
},
{
"name": "Past Month",
"calendar": "months",
"value": "1"
},
{
"name": "Past Year",
"calendar": "years",
"value": "1"
}
]
}
],
"customDateSettings": {
"enabled": true,
"customDateField": "lastmodified",
"customDateDisplayText": "Date"
},
"collection": [],
"sortBtns": [
{
"field": "date",
"display": "Date",
"sort": false,
"sort1": false,
"sortDir": "desc"
},
{
"field": "mrank",
"display": "Relevance",
"sort": true,
"sort1": true,
"sortDir": "asc"
},
],
"facetFiltersOrder": [
"colname", "contenttype", "topics", "keywords"
],
"checkboxesInFacet": true,
"checkboxFacets": ["topics", "keywords"],
"facetsFiltersDisplay": true,
"facetFiltersType": "AND",
"filtersSearchInput": {
"enabled": true,
"minFilters": 5
},
"loadMoreButton": true,
"matchAny": "off",
"pageSize": "10",
"showAutoSuggest": true,
"autoSuggestLimit": "5",
"suggestSearch": false,
"defaultCname": "",
"adsDisplay": true,
"featuredResultsCount": "3",
"urlDisplay": true,
"pdfOverlay": false,
"relatedQuery": false,
"relatedQueryFields": {
"apikey": "",
"field": "content",
"operator": "and",
"limit": "5",
"terms": "10",
"type": "phrase",
"col": "",
},
"smartFAQSettings": {
"enabled": false,
"count": 3,
"loadMoreCount": 0,
"limit": 10
},
"suggestSmartFAQs": {
"enabled": false,
"limit": 3
},
"smartSuggest": {
"enable": false,
"domain": "",
"isSBDomain": true,
"cname": "",
"limit": "5",
"language": "en"
},
"trendingSearch": {
"enabled": false,
"cname":"",
"limit": "5"
},
"topQuery": true,
"topQueryFields": {
"apikey": "",
"col": "",
"limit": "5",
},
"dataToBeDisplayed": {
"1": {
"title": "Title",
"description": "Description"
},
"other": {
"description": "Description"
},
"displayAll": true
},
"descriptionCharLimit": {
"enabled": true,
"limit": 260
},
"chatBot": {
"enabled": false,
"domain": "",
"name": "",
"idleTimeOut": 30, //in minutes
"suggestions": false,
},
"assist":{
"enabled": true,
"limit": 4,
},
"tuneTemplate": "WEB",
"voiceSearch": false,
"voiceSearchAPI": "",
"debug": false,
"defaultType": "AND",
"apikey": "",
"autologout": true,
"recommendations": {
"enabled": true,
"domain": "",
"limit": 4,
},
"hybridSearchDefaults": {
"controlsEnabled": true,
"vectorWeight": 0.2,
"vectorThreshold": 0.6
},
"productFields": {
"name": "title",
"category": "category",
"description": "description",
"image": "image",
"price": "price",
"url": "url",
},
"pluginDomain": "",
};
Updated 2 days ago