-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Allow for Partial Updating Objects #158
Comments
This would be helpful for people who want to frequently update their Algolia records based on data from several of my plugins... I could probably provide several other real-world use cases in addition to the one @onebrightlight mentioned. 🙂 |
Yup. This would be nice. FWIW, I do this kind of thing on a nightly cron using
Same kind of thing should work for ratings, etc. I would think, but it would be nice baked in. @onebrightlight With your example, it seems like you'd still need to do this on a cron, right? Batching is what really saves you the operations, and partial updates just let you fit more in a batch. |
@timkelty yes, it’d still need to be a cronjob for me. Are you saying that it can’t be a partial or batch job in that case? |
Nope, just clarifying. That's exactly what I'm doing in my example above (I run |
Just wondered if there was any movement on this one - I update popularity metrics of my algolia entries via another (node) script, which means that when an entry is saved, those attributes are simply overwritten and I'd need to wait for the script to run again before they're updated. I'd love Scout to just update the attributes defined in scout, leaving anything else in-tact. Would that be possible? |
Currently AFAICT Scout only allows full updating of objects in Algolia. I was wondering if we could instead update individual properties in an object as mentioned in their docs.
Use case: Page view ranking is an important part of our indexes, but given the number of relationships and additional fields we have on each standard record, pushing a nightly or even weekly update of those page views would be costly in terms of operations. It would be better if we could just update the pageview attribute of every one of those records.
The text was updated successfully, but these errors were encountered: