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

Update ingest command #163

Merged
merged 3 commits into from
Dec 15, 2022
Merged

Update ingest command #163

merged 3 commits into from
Dec 15, 2022

Conversation

sensei100
Copy link
Collaborator

No description provided.

@sensei100 sensei100 requested a review from dkinzer December 14, 2022 15:10
@sensei100 sensei100 marked this pull request as draft December 14, 2022 15:10
@sensei100
Copy link
Collaborator Author

@dkinzer I tried doing what you did in cob_az_index, but this isn't quite working. It starts running, but then I get this error:
INFO Traject::Indexer with 1 processing threads, reader: TrajectPlus::JsonReader and writer: Traject::SolrJsonWriter
error: unexpected token at ''

Can you help figure out what else needs to happen?

@@ -33,12 +33,13 @@ class App
end

if options["use-fixtures"]
CobWebIndex::CLI.ingest_fixtures(opts)
opts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your issue may be coming from this line

else
CobWebIndex::CLI.ingest(opts.merge(ingest_path: args[0], delete_collection: true))
opts.merge(ingest_path: args[0], delete_collection: true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be opts.merge!

@sensei100 sensei100 marked this pull request as ready for review December 15, 2022 18:39
@dkinzer dkinzer merged commit e6b56c3 into main Dec 15, 2022
@dkinzer dkinzer deleted the DEVO-654-ruby-upgrade branch December 15, 2022 18:43
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

Successfully merging this pull request may close these issues.

2 participants