toptal / chewy

High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
MIT License
1.88k stars 364 forks source link

can not use import to delete missings source objects #930

Open lyb124553153 opened 6 months ago

lyb124553153 commented 6 months ago

Be clear, concise and precise in your description of the problem. Open an issue with a descriptive title and a summary in grammatically correct, complete sentences.

Use the template below when reporting bugs. Please, make sure that you're running the latest stable Chewy and that the problem you're reporting hasn't been reported (and potentially fixed) already.

Before filing the ticket you should replace all text above the horizontal rule with your own words.


Expected behavior

According to this document [ documents with missing source object ids will be

deleted from index:](https://github.com/toptal/chewy/blob/master/lib/chewy/index/adapter/orm.rb#L55)

 MessagesIndex.import [1] # inactive users will be deleted from index

Actual behavior

irb(main):001:0> MessagesIndex.import [1]
Traceback (most recent call last):
        1: from (irb):1
ArgumentError (wrong number of arguments (given 1, expected 0))

Steps to reproduce the problem

class MessagesIndex  < Chewy::Index
end 
MessagesIndex.import [1]

Version Information

Share here essential version information such as: