What is the difference between add_action and add_filter in WordPress?

Summary The primary difference between add_action and add_filter in WordPress lies in their purpose and functionality. add_action is used to execute a function at a specific point in WordPress, allowing developers to perform actions or inject custom code. On the other hand, add_filter is utilized to modify or filter data, enabling developers to alter the … Read more

In Vespa, how to implement field-specific Lucene analyzer chains for fields in the same language?

Summary This postmortem analyzes the architectural challenge of implementing field-specific Lucene analyzer chains for fields sharing the same language in Vespa, based on a user migration scenario from Solr. The core issue is that Vespa’s LuceneLinguistics component configures analysis at the language level rather than the field level, creating a gap for users replicating complex … Read more

Pass a logger to boost::json::tag_invoke

Summary A developer faced a limitation when serializing/deserializing a custom type with boost::json::tag_invoke. Specifically, they needed to pass a logger instance into the tag_invoke function to log warnings about missing JSON fields during permissive deserialization. The issue stems from strict function signature matching required by ADL (Argument Dependent Lookup) in the boost::json namespace. You cannot … Read more