Skip to main content

Settings

Get settings of an index. For a conceptual overview of index settings, refer to our Index API Reference.


Get index settings

GET /indexes/{index_name}/settings

Path parameters

NameTypeDescription
index_nameStringname of the index

Example

=== "Marqo Open Source" === "cURL"

curl -XGET http://localhost:8882/indexes/my-first-index/settings

=== "Python"

results = mq.index("my-first-index").get_settings()

=== "Marqo Cloud" For Marqo Cloud, you will need to access the endpoint of your index and replace your_endpoint with this. To do this, visit Find Your Endpoint. You will also need your API Key. To obtain this key visit Find Your API Key. === "cURL"

curl -XGET your_endpoint/indexes/my-first-index/settings \
-H 'x-api-key: XXXXXXXXXXXXXXX'

=== "Python"

results = mq.index("my-first-index").get_settings()

Response: 200

{
"annParameters": {
"parameters": {
"efConstruction": 512,
"m": 16
},
"spaceType": "prenormalized-angular"
},
"filterStringMaxLength": 20,
"imagePreprocessing": {},
"model": "hf/e5-base-v2",
"normalizeEmbeddings": true,
"textPreprocessing": {
"splitLength": 2,
"splitMethod": "sentence",
"splitOverlap": 0
},
"treatUrlsAndPointersAsImages": false,
"type": "unstructured",
"vectorNumericType": "float"
}