Skip to content

Commit c0e7173

Browse files
committed
Handle symbol keys in documents in import endpoint
1 parent 4e8c5cf commit c0e7173

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/typesense/documents.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_many(documents, options = {})
3232
# @param [Array,String] documents An array of document hashes or a JSONL string of documents.
3333
def import(documents, options = {})
3434
documents_in_jsonl_format = if documents.is_a?(Array)
35-
documents.map { |document| Oj.dump(document) }.join("\n")
35+
documents.map { |document| Oj.dump(document, mode: :compat) }.join("\n")
3636
else
3737
documents
3838
end

lib/typesense/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Typesense
4-
VERSION = '0.14.0'
4+
VERSION = '0.14.1'
55
end

0 commit comments

Comments
 (0)