README.md in ngt-0.2.2 vs README.md in ngt-0.2.3

- old
+ new

@@ -27,11 +27,11 @@ ``` Create an index ```ruby -index = Ngt::Index.create(path, dimensions) +index = Ngt::Index.new(dimensions) ``` Insert objects ```ruby @@ -45,17 +45,17 @@ ``` Save the index ```ruby -index.save +index.save(path) ``` Load an index ```ruby -index = Ngt::Index.new(path) +index = Ngt::Index.load(path) ``` Get an object by id ```ruby @@ -94,12 +94,11 @@ objects = [] 100.times do |i| objects << dim.times.map { rand(100) } end -index = Ngt::Index.create("tmp", dim) +index = Ngt::Index.new(dim) index.batch_insert(objects) -index.save query = objects[0] result = index.search(query, size: 3) result.each do |res|