Cartup docs
  • Introduction
  • Browse Topics
  • Getting Started
  • Recommendation Configuration
    • Get Recommendation Types
    • Create Recommendation
      • Rules
    • Get Recommendation
    • Update Recommendation
    • Delete Recommendation
    • Create Themes
    • Get Theme List
    • Get Theme
    • Update Theme
    • Delete Theme
  • Recommendations
  • About Recommendations
  • Crosssell Products
  • Content Based Recommendation
  • Trending Product
  • Trending in category
  • Viewed also viewed
  • Recentviews
  • Category Based Recommendations
  • Bought Category Items
  • Bought also bought
  • Viewed Category Items
  • Inspired By Browser History
  • Based on Wishlist
  • Search
  • Search Configurations
  • Create Search Config
  • Get Search Config
  • Update Search Config
  • Delete Search Config
  • Upload Synonym
  • Upload Stop Word
  • Upload OneWay Synonym
  • Get synonym csv file
  • Get OneWay Synonym csv file
  • Get Stopwords csv file
  • Delete Synonym CSV file
  • Delete OneWaySynonym CSV file
  • Delete Stopwords CSV file
  • Search Suggestions
    • Get Search suggestions
  • Search Result
    • Get Search result
  • Shopify app configuration
  • Events Configuration
  • Shopify Widget Configuration
    • Create Widget
    • Verify the Widget
    • To create widget theme
  • Shopify badging configuration
    • To verify default badges
    • To create new badges
      • Create badge
      • Verify the badge
  • Shopify search configuration
    • To verify default search
    • To reconfigure your search
      • AI personalization & Ranking
      • Synomyns & Rules
      • Auto Facets
      • Advanced
    • To create search bar theme
    • To create search results theme
  • Shopify plp configuration
    • To configure plp
    • Verify plp
    • To create plp result theme
  • Events
  • Mobile Integration
  • iOS Integration
  • Android Integration
Powered by GitBook
On this page

Was this helpful?

Get Search Config

Get Search Config

Get the all search information.

End Point

GET https://api.cartup.ai/v1/conf/search

‌

Query Parameters

Name
Type
Description

request*

String

Request Object (Refer below)

Headers

Name
Type
Description

Accept*

String

application/json

Content_type*

String

application/json

X-Cartup-Access-Token*

String

$CARTUP_API_KEY

X-Cartup-orgId*

String

$CARTUP_ORD_ID

{
    "errMsg": null,
    "id": "fa673540-57ba-4e02-8c16-28ee0513ae38-searchconf",
    "orgId": "test-fa673540-57ba-4e02-8c16-28ee0513ae38",
    "docType": "searchconf",
    "spellcheck": true,
    "includeWidgets": [
        "crosssell",
        "recentviews"
    ],
    "facetList": [
        {
            "facets": [
                {
                    "displayType": "link",
                    "type": "price",
                    "repoFieldName": "price_d",
                    "displayName": "Price",
                    "value": [
                        {
                            "index": 0,
                            "alias": null,
                            "name": "0 - 20",
                            "value": "[0 TO 20]"
                        },
                        {
                            "index": 1,
                            "alias": null,
                            "name": "20 - 60",
                            "value": "[21 TO 60]"
                        },
                        {
                            "index": 2,
                            "alias": null,
                            "name": "60 - 100",
                            "value": "[61 TO 100]"
                        },
                        {
                            "index": 3,
                            "alias": null,
                            "name": "101 - *",
                            "value": "[101 TO 100]"
                        }
                    ],
                    "operator": "="
                }
            ],
            "category": "default"
        },
        {
            "facets": [
                {
                    "displayType": "link",
                    "type": "Gender",
                    "repoFieldName": "gender_ss",
                    "displayName": "Gender",
                    "value": null,
                    "operator": "="
                }
            ],
            "category": "Tops"
        },
        {
            "facets": [
                {
                    "displayType": "link",
                    "type": "color",
                    "repoFieldName": "color_s",
                    "displayName": "Color",
                    "value": null,
                    "operator": null
                },
                {
                    "displayType": "link",
                    "type": "size",
                    "repoFieldName": "pant_fit_s",
                    "displayName": "Pant Fit",
                    "value": null,
                    "operator": null
                }
            ],
            "category": "cloth"
        }
    ],
    "paginationCount": 20,
    "searchableFields": [
        {
            "repoFieldName": "namel_t",
            "displayName": "name",
            "order": 0,
            "orderBy": null
        },
        {
            "repoFieldName": "description_t",
            "displayName": "description",
            "order": 1,
            "orderBy": null
        }
    ],
    "searchSynonym": null,
    "sortEntity": {
        "sortEntities": [
            {
                "key": "Price High to Low",
                "value": "price desc",
                "type": "integer"
            }
        ]
    },
    "indexLang": "en",
    "queryLang": "en",
    "personalization": true,
    "reranking": true,
    "synonym": true,
    "stopWords": true-a6fe-49e4-88fc-874843279d66-searchconf"
}
{
    "errMsg": "request json is not present in request params",
    "id": null,
    "orgId": null,
    "docType": null,
    "spellcheck": false,
    "includeWidgets": null,
    "facetList": null,
    "paginationCount": null,
    "searchableFields": null,
    "searchSynonym": null,
    "sortEntity": null,
    "indexLang": null,
    "queryLang": null,
    "personalization": null,
    "reranking": null,
    "synonym": null,
    "stopWords": null
}

‌

Curl example

curl --request GET https://api.cartup.ai/v1/conf/search?request={"orgId":"850a8b8f-a6fe-49e4-88fc-874843279d66"}'
--header 'Accept: application/json' \  
--header 'Content-Type: application/json' \  
--header 'X-Cartup-Access-Token: $CARTUP_API_KEY'
--header 'X-Cartup-orgId : $CARTUP_ORD_ID'

‌Request Object

Key
Type
Description
Required

orgId

String

Your Org ID

Yes

Request samples

{
    "errMsg": null,
    "id": "fa673540-57ba-4e02-8c16-28ee0513ae38-searchconf",
    "orgId": "test-fa673540-57ba-4e02-8c16-28ee0513ae38",
    "docType": "searchconf",
    "spellcheck": true,
    "includeWidgets": [
        "crosssell",
        "recentviews"
    ],
    "facetList": [
        {
            "facets": [
                {
                    "displayType": "link",
                    "type": "price",
                    "repoFieldName": "price_d",
                    "displayName": "Price",
                    "value": [
                        {
                            "index": 0,
                            "alias": null,
                            "name": "0 - 20",
                            "value": "[0 TO 20]"
                        },
                        {
                            "index": 1,
                            "alias": null,
                            "name": "20 - 60",
                            "value": "[21 TO 60]"
                        },
                        {
                            "index": 2,
                            "alias": null,
                            "name": "60 - 100",
                            "value": "[61 TO 100]"
                        },
                        {
                            "index": 3,
                            "alias": null,
                            "name": "101 - *",
                            "value": "[101 TO 100]"
                        }
                    ],
                    "operator": "="
                }
            ],
            "category": "default"
        },
        {
            "facets": [
                {
                    "displayType": "link",
                    "type": "Gender",
                    "repoFieldName": "gender_ss",
                    "displayName": "Gender",
                    "value": null,
                    "operator": "="
                }
            ],
            "category": "Tops"
        },
        {
            "facets": [
                {
                    "displayType": "link",
                    "type": "color",
                    "repoFieldName": "color_s",
                    "displayName": "Color",
                    "value": null,
                    "operator": null
                },
                {
                    "displayType": "link",
                    "type": "size",
                    "repoFieldName": "pant_fit_s",
                    "displayName": "Pant Fit",
                    "value": null,
                    "operator": null
                }
            ],
            "category": "cloth"
        }
    ],
    "paginationCount": 20,
    "searchableFields": [
        {
            "repoFieldName": "namel_t",
            "displayName": "name",
            "order": 0,
            "orderBy": null
        },
        {
            "repoFieldName": "description_t",
            "displayName": "description",
            "order": 1,
            "orderBy": null
        }
    ],
    "searchSynonym": null,
    "sortEntity": {
        "sortEntities": [
            {
                "key": "Price High to Low",
                "value": "price desc",
                "type": "integer"
            }
        ]
    },
    "indexLang": "en",
    "queryLang": "en",
    "personalization": true,
    "reranking": true,
    "synonym": true,
    "stopWords": true
}

‌

PreviousCreate Search ConfigNextUpdate Search Config

Last updated 3 years ago

Was this helpful?