```ruby
require 'rummager'

desc "Apply metadata from the json file"
task :tag_metadata do
  Indexer::MetadataTagger.amend_indexes_for_file(file_path)
end
```

Call 'amend_all_metadata' in tag_metadata task
user
```ruby
require 'rummager'

desc "Apply metadata from the json file"
task :tag_metadata do
  Indexer::MetadataTagger.amend_all_metadata
end
```
assistant