Derek Parnell
09/15/2025, 10:03 AMproducts table with a popularity field, but no specific id field, so Typesense created it for me. I created 3 documents but deleted 1,3, and then created #4, leaving on 2,4 as documents. I created a simple products_click_event rule to update the popularity field, where the source and destination were both products and then using curl, fired the event to update #2. The response was "ok", but the popularity wasn't changed.
Looking at the example in the documentation, on a whim, I fired the event for doc_id 1124 and it updated product 2, and 1125 updated product 4. This didn't make sense to me. I deleted the rule, recreated it, and fired for doc_id 2 and now it worked.
I updated my stories collection to have a popularity field, created the rule stories_click_event and then fired the event for one of my documents, using its document id. Similar to the products example, the response was "ok", but the popularity wasn't changed. I deleted and recreated the rule, but same "no change".
One thing to note is that the id field on stories is being created in a custom way, instead of Typesense managing it.
Regardless, I'm not sure where to go with this, or why products_click_event worked after I deleted/recreated the rule, but not the first time, or why the stories_click_event doesn't work at all. Any and all help is appreciated!Fanis Tharropoulos
09/15/2025, 10:21 AMDerek Parnell
09/15/2025, 10:47 AM--analytics-flush-interval=10Fanis Tharropoulos
09/15/2025, 10:58 AMDerek Parnell
09/15/2025, 10:58 AMFanis Tharropoulos
09/15/2025, 10:58 AMDerek Parnell
09/15/2025, 10:59 AMFanis Tharropoulos
09/15/2025, 11:00 AMDerek Parnell
09/15/2025, 11:03 AMDerek Parnell
09/16/2025, 12:49 PM