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

Return task object after ms_index! #271

Closed
mech opened this issue Jul 21, 2023 · 1 comment · Fixed by #289
Closed

Return task object after ms_index! #271

mech opened this issue Jul 21, 2023 · 1 comment · Fixed by #289
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mech
Copy link

mech commented Jul 21, 2023

Description

I wish that indexing can return task object so I can get back the taskUid and perform lookup to see if indexing succeeded or not

Basic example

c = Company.first
task = c.ms_index!

task_id = task["taskUid"]

# Later I can check
MeiliSearch::Rails.client.task(task_id)

Currently if indexing failed for whatever reason, it could be misconfiguration, it is hard to tell.

@brunoocasali brunoocasali added enhancement New feature or request good first issue Good for newcomers labels Jul 24, 2023
@brunoocasali
Copy link
Member

Good idea @mech 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants