Exception: Parse::Core::VectorSearchable::IndexDriftError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message, findings: [])
  @findings = findings
  super(message)
end

Instance Attribute Details

#findingsArray<String> (readonly)

Returns human-readable drift findings.

Returns:



67
68
69
# File 'lib/parse/model/core/vector_searchable.rb', line 67

def findings
  @findings
end