Unbxd Knowledge Base
  • Documentation

›Search & Browse API

Chapter 1

    Product Overview

    • Unbxd Product Overview
    • Unbxd Technical Product Overview
    • Unbxd Integration Overview

Chapter 2

    Feed Review

    • Feed Review Stages
    • Feed Compatibility Review
    • Feed Product Review
    • Feed Data Integrity Review
    • Feed Logic Review

    Feed & Schema Processing

    • Process Feed
    • Process Schema

    Feed Indexing

    • Feed & Schema Indexing

    Search & Browse API

    • Search & Browse API

Chapter 3

    Analytics

    • Types of analytics integration
    • API based integration
    • JS based integration
    • HTML based integration
    • GTM based integration

Chapter 4

    Recommendation Widgets

    • Recommendation

Chapter 5

    AutoSuggest

    • Types of Autosuggest

Chapter 6

    First Integration

    • Integration Prerequisite
    • Scope of integration
    • Meet Your Customers

Chapter 7

    Inter Team Cordination

    • Inter Team Co-ordination
    • Work with Engineering Team
    • Work with Relevancy Team
    • Work with Quality Assurance Team

Chapter 8

    Take Customer Live

    • Before Go Live
    • Go Live Day
    • Post Go Live

Chapter 9

    Account Handover

    • Account Conversion Numbers
    • Account Handover

Top 100 Issues

  • Top 100 Integration Questions

Search & Browse API

This document is in Beta stage and we have try to cover all topics in right hierarchy yet indepth. To make this document better, we need your help. Please give your feedback by rating the stars at the end of each topic. For more updates join slack channel #unbxd-knowledgebase

Use this document for internal purpose only. It is not suppose to be shared with customers


After product catalog is indexed, client can use Search and Browse API to power their search and category pages. Indexed catalog can be viewed through search api using ?q=* query parameter

Consider the catalog at below link

https://search.unbxd.io/ad547a90aeeefe153a23ca942148fbcb/bonmarche-co-uk-stage3861566995969/search?q=*

Take a look at its correspondng website

Search Usecase

Simple Query

Search for particular product by typing query in the search box

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt

Filter Query

Filtering the search api results based on the given product attribute

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&filter=size_uFilter:8

Multiple Filters ( AND Join )

Filtering the search api results based on multiple filters

https://search.unbxd.com/search?q=tshirt&filter=size_uFilter:8&filter=color_uFilter:Blue

Multiple Filters ( OR Join )

Filtering the search api results based on multiple filters joined by OR condition

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)

OR Join is not supported between two different filters

Search Multiple Filters ( Range Filters )

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&filter=price_uFilter:[10 TO 50]

Category filters

Filtering search results based on the category they belong to

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&category-filter:"Home>Womens"

Sorting

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&filter=price_uFilter:[10 TO 50]&sort=salesrank asc

Facets Creation

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&facet=true&facet.field=size

It will create facets on field size. Facets can also be created and published through console

Multiple facets creation

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&facet=true&facet.field=size&facet.field=color

It will create facets on field size and color. Facets can also be created and published through console

Multilevel Category facets creation

Code

Shell
$> curl http://search.unbxd.io/api_key/site_key/search?q=tshirt&facet=true&facet.field=categoryPath

Note, multi level category facets is created on categoryPath field. It is unbxd defined attribute which contains all category paths a product belongs to.

Did you find it useful? Rate it

Browse Usecase

Simple Browse

Fetch all products on a particular category

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"Home>Women"&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID"&pagetype=boolean

Filter Query

Filtering the browse api results based on the given product attribute

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN"&filter=size_uFilter:8&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID"&filter=size_uFilter:8&pagetype=boolean

Multiple Filters ( AND Join )

Filtering the browse api results based on multiple filters

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN"&filter=size_uFilter:8&filter=color_uFilter:Blue&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID"&filter=size_uFilter:8&filter=color_uFilter:Blue&pagetype=boolean

Multiple Filters ( OR Join )

Filtering the browse api results based on multiple filters joined by OR condition

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN"&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID"&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&pagetype=boolean

OR Join is not supported between two different filters

Multiple Filters ( Range Filters )

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN"&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&filter=price_uFilter:[10 TO 50]&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID"&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&filter=price_uFilter:[10 TO 50]&pagetype=boolean

Category filters

Filtering browse results based on the category they belong to

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN>TOPS"&category-filter:"Home>Womens"&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID>TOPSID"&category-filter-id:"HomeID>WomensID"&pagetype=boolean

Sorting

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN>TOPS"&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&filter=price_uFilter:[10 TO 50]&sort=salesrank asc&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID>TOPSID"&filter=size_uFilter:8&filter=color_uFilter:(Blue OR Grey)&filter=price_uFilter:[10 TO 50]&sort=salesrank asc&pagetype=boolean

Facets Creation

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN&facet=true&facet.field=size&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID&facet=true&facet.field=size&pagetype=boolean

Multiple facets creation

Code

categoryPath
categoryPathId
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPath:"HOME>WOMEN&facet=true&facet.field=size&facet.field=color&pagetype=boolean
$> curl http://search.unbxd.io/api_key/site_key/category?p=categoryPathId:"HOMEID>WOMENID&facet=true&facet.field=size&facet.field=color&pagetype=boolean

Did you find it useful? Rate it

← Feed & Schema IndexingTypes of analytics integration →
  • Search Usecase
    • Simple Query
    • Filter Query
    • Multiple Filters ( AND Join )
    • Multiple Filters ( OR Join )
    • Search Multiple Filters ( Range Filters )
    • Category filters
    • Sorting
    • Facets Creation
    • Multiple facets creation
    • Multilevel Category facets creation
  • Browse Usecase
    • Simple Browse
    • Filter Query
    • Multiple Filters ( AND Join )
    • Multiple Filters ( OR Join )
    • Multiple Filters ( Range Filters )
    • Category filters
    • Sorting
    • Facets Creation
    • Multiple facets creation
Unbxd Knowledge Base
Knowledge Base
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Contributors
Amit Aggarwal
Version
0.1 ( change log )0.5 ( change log )0.8 ( change log )
Unbxd Knowledge Base
Copyright © 2019 Unbxd Software Limited