Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not use import to delete missings source objects #930

Open
lyb124553153 opened this issue Feb 27, 2024 · 0 comments
Open

can not use import to delete missings source objects #930

lyb124553153 opened this issue Feb 27, 2024 · 0 comments

Comments

@lyb124553153
Copy link

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:

 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:

  • Chewy version 7.5.1
  • Elasticsearch version
  • Ruby version 2.6.3
  • Rails version 6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant