When adding a record to an index, use JSON.stringify

This lets you index non-string values