Match fields
import requests
url = "https://{FUSION HOST}/api/suggestions/collections/{collectionId}/schema/fields"
response = requests.get(url)
print(response.text)[
{
"name": "product_color",
"docCount": 9999,
"type": "string"
},
{
"name": "product_title",
"docCount": 9999,
"type": "string"
},
{
"name": "product_brand",
"docCount": 9999,
"type": "string"
},
{
"name": "product_locale",
"docCount": 9999,
"type": "string"
},
{
"name": "product_description",
"docCount": 9999,
"type": "string"
}
]Match fields
Search a collection’s schema and list matching fields, the number of documents that include each field, and each field’s data type.
GET
/
suggestions
/
collections
/
{collectionId}
/
schema
/
fields
Match fields
import requests
url = "https://{FUSION HOST}/api/suggestions/collections/{collectionId}/schema/fields"
response = requests.get(url)
print(response.text)[
{
"name": "product_color",
"docCount": 9999,
"type": "string"
},
{
"name": "product_title",
"docCount": 9999,
"type": "string"
},
{
"name": "product_brand",
"docCount": 9999,
"type": "string"
},
{
"name": "product_locale",
"docCount": 9999,
"type": "string"
},
{
"name": "product_description",
"docCount": 9999,
"type": "string"
}
]Was this page helpful?
⌘I