Configuration
Open System > Semantic Search Configuration in Pimcore Studio. The screen is admin-only.
These are the query-time settings of semantic search — they apply to the search modes, the grid
filter and the global endpoint alike. They are a separate configuration record, not part of the
embeddings configuration: own root node
pimcore_backend_power_tools.semantic_search, own settings-store scope
backend_power_tools_semantic_search (record id default_semantic_search, seeded by the installer and
migration Version20261008120000), own config_location entry and own
Studio API.
Nothing here touches a mapping, a vector or an identity key: changing these settings needs neither a re-embed nor an index recreation. Like every Pimcore config save, saving the record restarts the messenger workers.
Candidates
How many nearest neighbours a search retrieves before filters, paging and the score threshold are applied.
| Field | Option | Default | Description |
|---|---|---|---|
| Listing candidate cap | candidate_cap | 10000 (min 1, max 10000) | Candidates per listing search (grid, search modal): OpenSearch k, Elasticsearch num_candidates (the knn query clause has no k; num_candidates is its per-shard match bound). Lower values are faster on large indexes but end the result set earlier; 10000 is the engine maximum. |
| Global search candidate cap | global_search_candidate_cap | 150 (min 1, max 10000) | Candidates per index for the global endpoint. It runs without listing filters across every embedding-bearing index, so it keeps a small cap; the target's default minimum score applies to these candidates. |
The cap bounds the candidate set that every page, the total and the score threshold work on: the grid total never exceeds it, even when more documents would pass the threshold. Both engines apply it per shard, so the cap is exact only for single-shard indexes. A lower cap trades completeness for latency; it does not change scores.
Default minimum score
Each target — Text search and Image search — carries its own default threshold, because their scores live on different scales. The screen names the usage and model each target resolves to, so you can see what a threshold is calibrated against.
| Field | Option | Default | Description |
|---|---|---|---|
| Text search → Default minimum score | targets.text.default_min_score | null | Default threshold in percent (cosine similarity × 100) for the text target (semantic_text_search usage). null uses the built-in default, 20. |
| Image search → Default minimum score | targets.image.default_min_score | null | The same for the image target (image_search usage). null uses the built-in default, 8. |
The default applies when a search request carries no minScore of its own, see
Threshold contract. Resolution order: the request's minScore,
then the target's default_min_score, then the built-in default of the target's usage — 20 for
semantic_text_search, 8 for image_search, calibrated on the demo label set on 2026-10-07. A
configured 0 disables the default cut-off.
Two things to re-check after a change elsewhere:
- Score bands depend on the model pair. Re-check the value after changing the model of the target's usage.
- The percent/engine-score conversion follows the quantization profile. After changing a model's quantization, percentages and thresholds are only correct once the index has been rebuilt. Vectors are assumed unit-normalised by the inference service; the bundle does not normalise them.
YAML override
Like the other configurations, this one is location-aware. A semantic_search node shadows the stored
record and turns the editor read-only.
pimcore_backend_power_tools:
semantic_search: # yaml override: shadows the stored record, API turns read-only
candidate_cap: 10000 # 1..10000, listing searches
global_search_candidate_cap: 150 # 1..10000, global semantic search endpoint (per index)
targets:
text: { default_min_score: ~ } # percent 0..100, ~ = built-in default
image: { default_min_score: 12 }
config_location:
semantic_search:
write_target:
type: settings-store # default; also: symfony-config, disabled
read_target:
type: ~ # same semantics as the embeddings entry
NaN, infinite and out-of-range values are rejected in the YAML and on save. In a hand-edited settings
row a threshold outside 0..100 is ignored and the caps are clamped to 1..10000.
Runtime reads — grid filter, score column, settings block, global endpoint, and async workers such as
export or batch edit — load the record once per request or worker message (kernel.reset), so a save is
picked up by the next request or message.
Configuration API
Admin-only (IsGranted admin), like the duplicates configuration:
| Method | Path | operationId |
|---|---|---|
GET | /pimcore-studio/api/bundle/backend-power-tools/semantic-search-configuration/configurations/{configurationId} | bundle_backend_power_tools_semantic_search_configuration_get |
PUT | same | bundle_backend_power_tools_semantic_search_configuration_update |
configurationId is default_semantic_search. Response (BundleBackendPowerToolsSemanticSearchConfiguration):
{
"id": "default_semantic_search",
"isWriteable": true,
"candidateCap": 10000,
"globalSearchCandidateCap": 150,
"text": { "defaultMinScore": null, "builtInMinScore": 20, "usage": "semantic_text_search", "model": "nomic-text-v2", "queryModel": null },
"image": { "defaultMinScore": 12, "builtInMinScore": 8, "usage": "image_search", "model": "siglip2-vision", "queryModel": "siglip2-text" }
}
defaultMinScoreis the configured value (null= the built-in default applies);builtInMinScore,usage,modelandqueryModelare read-only (model and query model of the usage in the embeddings configuration).isWriteableisfalsewhen a YAMLsemantic_searchnode shadows the store or the write target isdisabled— the same rules as the embeddings configuration.PUTbody (BundleBackendPowerToolsUpdateSemanticSearchConfiguration):{ "candidateCap"?: int, "globalSearchCandidateCap"?: int, "text"?: { "defaultMinScore": number|null }, "image"?: { "defaultMinScore": number|null } }. Merge-safe: an omitted member keeps its stored value, a sent target replaces its threshold,nullclears it.defaultMinScoreis required in a sent target: an empty or malformed target is a422; omit the target to keep it. Returns the full configuration.GETreports the values as applied at search time: the caps clamped to 1..10000, a stored threshold outside 0..100 asnull. APUTmerges those sanitized values, so a hand-edited row does not fail it.- Status codes:
404unknownconfigurationId;422out-of-range or non-finite values; not writeable (isWriteablefalse, including a YAML-shadowed record) →NotWriteableException, nothing is written.
