Exception: Parse::Core::VectorSearchable::IndexDriftError
- Inherits:
-
StandardError
- Object
- StandardError
- Parse::Core::VectorSearchable::IndexDriftError
- Defined in:
- lib/parse/model/core/vector_searchable.rb
Overview
Raised (under Parse::VectorSearch.index_drift_policy = :raise)
when first-query verification finds the deployed vectorSearch
index disagreeing with the model declaration — wrong
numDimensions, wrong similarity, or a registered
tenant-scope field missing from the index's filter paths.
Under the default :warn policy the same findings emit a
single [Parse::VectorSearch:DRIFT] warning instead.
Instance Attribute Summary collapse
-
#findings ⇒ Array<String>
readonly
Human-readable drift findings.
Instance Method Summary collapse
-
#initialize(message, findings: []) ⇒ IndexDriftError
constructor
A new instance of IndexDriftError.
Constructor Details
#initialize(message, findings: []) ⇒ IndexDriftError
Returns a new instance of IndexDriftError.
68 69 70 71 |
# File 'lib/parse/model/core/vector_searchable.rb', line 68 def initialize(, findings: []) @findings = findings super() end |