Product Discovery Search

When you click the search icon for a Product Discovery collection, it opens the default hybrid search page. This page is designed to display and explore product details easily.

You can open the Product Discovery plugin using the provided link in your build.
https://localhost:8443/product-discovery/index.html

Prerequisite

Features of Product Discovery Plugin

You can search all products by simply entering the search terms.

  • The available settings for Product Discovery Search are listed here.

  • Search Setting: In the Product Discovery Search Settings, you can control the keyword-to-vector weight ratio used in hybrid search.


    • **Grid View: You can view the results in a grid View.

    • **List View: You can view the results in a list View.

    • **Plugin Settings: You can turn on SearchAI features using the plugin settings.

    • **Facets: You can view facets by clicking the filter button.



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": "",
};

📘

NOTE:

To make any modification on the plugin ,click on the below link
Product Discovery Plugin