MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / convertLargeNumbers

Method convertLargeNumbers

internal/search/search.go:323–327  ·  view source on GitHub ↗

convertLargeNumbers converts big.Int values to strings for Typesense compatibility

(config CollectionConfig, data map[string]interface{})

Source from the content-addressed store, hash-verified

321
322// convertLargeNumbers converts big.Int values to strings for Typesense compatibility
323func (t *TypesenseClient) convertLargeNumbers(config CollectionConfig, data map[string]interface{}) {
324 for _, field := range config.BigIntFields {
325 t.convertNumberField(data, field)
326 }
327}
328
329// convertNumberField converts a single numeric field to string format
330func (t *TypesenseClient) convertNumberField(data map[string]interface{}, field string) {

Callers 1

HandleNotificationMethod · 0.95

Calls 1

convertNumberFieldMethod · 0.95

Tested by

no test coverage detected