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 by query #22

Merged
merged 4 commits into from
Aug 2, 2024
Merged

Update by query #22

merged 4 commits into from
Aug 2, 2024

Conversation

marcosgz
Copy link
Owner

@marcosgz marcosgz commented Aug 2, 2024

Add update_by_query to transport and index api

AddressesIndex.update_by_query(
  body: {
    params: {
      city_name: city.name
    },
    script: {
      source: 'ctx._source.city_name = params.city_name',
      lang: 'painless'
    },
    query: {
      term: {
        city_id: city.id
      }
    }
  },
  refresh: true
)

@marcosgz marcosgz merged commit 7594581 into main Aug 2, 2024
29 of 32 checks passed
@marcosgz marcosgz deleted the marcosgz/update_by_query branch August 2, 2024 17:49
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.

1 participant